diff options
| author | Pieter Wuille <[email protected]> | 2012-07-08 00:06:34 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-10-20 23:08:57 +0200 |
| commit | 64dd46fd05de1dd8ff5066e192e1345f733c6a1f (patch) | |
| tree | 40b287fafe4b309c0dd6e20cc44746e04d267f3c /src/rpcrawtransaction.cpp | |
| parent | Batch block connection during IBD (diff) | |
| download | discoin-64dd46fd05de1dd8ff5066e192e1345f733c6a1f.tar.xz discoin-64dd46fd05de1dd8ff5066e192e1345f733c6a1f.zip | |
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.
Diffstat (limited to 'src/rpcrawtransaction.cpp')
| -rw-r--r-- | src/rpcrawtransaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 647384f33..72a89c08c 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -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); |