diff options
| author | Pieter Wuille <[email protected]> | 2015-08-11 21:03:31 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-09-22 18:51:07 +0200 |
| commit | 391dff16fe9ace90fc0f3308a5c63c453370e713 (patch) | |
| tree | 3337a40ad6bca7c57560c45d091bb9ebfd6523cf /src/miner.cpp | |
| parent | Merge pull request #6315 (diff) | |
| download | discoin-391dff16fe9ace90fc0f3308a5c63c453370e713.tar.xz discoin-391dff16fe9ace90fc0f3308a5c63c453370e713.zip | |
Do not store Merkle branches in the wallet.
Assume that when a wallet transaction has a valid block hash and transaction position
in it, the transaction is actually there. We're already trusting wallet data in a
much more fundamental way anyway.
To prevent backward compatibility issues, a new record is used for storing the
block locator in the wallet. Old wallets will see a wallet file synchronized up
to the genesis block, and rescan automatically.
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index b2a356e52..42c8bb970 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -368,7 +368,7 @@ void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned assert(txCoinbase.vin[0].scriptSig.size() <= 100); pblock->vtx[0] = txCoinbase; - pblock->hashMerkleRoot = pblock->BuildMerkleTree(); + pblock->hashMerkleRoot = pblock->ComputeMerkleRoot(); } ////////////////////////////////////////////////////////////////////////////// |