Do not store Merkle branches in the wallet.
commit391dff16fe9ace90fc0f3308a5c63c453370e713
authorPieter Wuille <pieter.wuille@gmail.com>
Tue, 11 Aug 2015 19:03:31 +0000 (11 21:03 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Tue, 22 Sep 2015 16:51:07 +0000 (22 18:51 +0200)
tree3337a40ad6bca7c57560c45d091bb9ebfd6523cf
parente59d2a80f9167031521d882394a08b02fa9d0343
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.
12 files changed:
doc/release-notes.md
src/chainparams.cpp
src/core_memusage.h
src/main.cpp
src/miner.cpp
src/primitives/block.cpp
src/primitives/block.h
src/test/miner_tests.cpp
src/test/pmt_tests.cpp
src/wallet/wallet.cpp
src/wallet/wallet.h
src/wallet/walletdb.cpp