diff options
| author | Pieter Wuille <[email protected]> | 2014-09-04 02:02:44 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-04 02:04:51 +0200 |
| commit | 145d5be896db4e8fda17039bed26100e38fae2f0 (patch) | |
| tree | 82c0a250144990617038c84d10e71b6fa905ecc5 /src/rpcblockchain.cpp | |
| parent | checkpoints.cpp depends on main, it can use mapBlockIndex directly (diff) | |
| download | discoin-145d5be896db4e8fda17039bed26100e38fae2f0.tar.xz discoin-145d5be896db4e8fda17039bed26100e38fae2f0.zip | |
Introduce BlockMap type for mapBlockIndex
Diffstat (limited to 'src/rpcblockchain.cpp')
| -rw-r--r-- | src/rpcblockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 83fe62935..4b3beae20 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -392,7 +392,7 @@ Value gettxout(const Array& params, bool fHelp) if (n<0 || (unsigned int)n>=coins.vout.size() || coins.vout[n].IsNull()) return Value::null; - std::map<uint256, CBlockIndex*>::iterator it = mapBlockIndex.find(pcoinsTip->GetBestBlock()); + BlockMap::iterator it = mapBlockIndex.find(pcoinsTip->GetBestBlock()); CBlockIndex *pindex = it->second; ret.push_back(Pair("bestblock", pindex->GetBlockHash().GetHex())); if ((unsigned int)coins.nHeight == MEMPOOL_HEIGHT) |