mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Transaction hash caching
Use CBlock's vMerkleTree to cache transaction hashes, and pass them along as argument in more function calls. During initial block download, this results in every transaction's hash to be only computed once.
This commit is contained in:
@@ -517,7 +517,7 @@ Value sendrawtransaction(const Array& params, bool fHelp)
|
||||
// Not in block, but already in the memory pool; will drop
|
||||
// through to re-relay it.
|
||||
} else {
|
||||
SyncWithWallets(tx, NULL, true);
|
||||
SyncWithWallets(hashTx, tx, NULL, true);
|
||||
}
|
||||
RelayMessage(CInv(MSG_TX, hashTx), tx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user