aboutsummaryrefslogtreecommitdiff
path: root/src/rpcwallet.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-10-15 16:31:46 -0700
committerGavin Andresen <[email protected]>2013-10-15 16:31:46 -0700
commit9e70bff67a581e62a77c40ec5dd3900c62fb86ba (patch)
treed495796c3608c5e3eba2f0c3734474e8395ff641 /src/rpcwallet.cpp
parentMerge pull request #3080 from Diapolo/sendcoins-paymentreq (diff)
parentMove CBlockLocator to core.h (diff)
downloaddiscoin-9e70bff67a581e62a77c40ec5dd3900c62fb86ba.tar.xz
discoin-9e70bff67a581e62a77c40ec5dd3900c62fb86ba.zip
Merge pull request #3083 from sipa/chainlocator
CBlockLocator improvements & move to core
Diffstat (limited to 'src/rpcwallet.cpp')
-rw-r--r--src/rpcwallet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp
index 433cc8b73..f7341f7b6 100644
--- a/src/rpcwallet.cpp
+++ b/src/rpcwallet.cpp
@@ -1169,7 +1169,9 @@ Value listsinceblock(const Array& params, bool fHelp)
uint256 blockId = 0;
blockId.SetHex(params[0].get_str());
- pindex = CBlockLocator(blockId).GetBlockIndex();
+ std::map<uint256, CBlockIndex*>::iterator it = mapBlockIndex.find(blockId);
+ if (it != mapBlockIndex.end())
+ pindex = it->second;
}
if (params.size() > 1)