mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-26 15:36:19 +01:00
Add LookupBlockIndex function
This commit is contained in:
@@ -167,10 +167,7 @@ void TransactionRecord::updateStatus(const CWalletTx &wtx)
|
||||
// Determine transaction status
|
||||
|
||||
// Find the block the tx is in
|
||||
CBlockIndex* pindex = nullptr;
|
||||
BlockMap::iterator mi = mapBlockIndex.find(wtx.hashBlock);
|
||||
if (mi != mapBlockIndex.end())
|
||||
pindex = (*mi).second;
|
||||
const CBlockIndex* pindex = LookupBlockIndex(wtx.hashBlock);
|
||||
|
||||
// Sort order, unrecorded transactions sort to the top
|
||||
status.sortKey = strprintf("%010d-%01d-%010u-%03d",
|
||||
|
||||
Reference in New Issue
Block a user