HomePhabricator

Use the Coin abstraction to undo spends.

Description

Use the Coin abstraction to undo spends.

Summary:
This is useful during reorg. It is based on work by Pieter Wuille and a continuation of D342 .

It include special serialization and deserialization routines to ensure backward compatibility with existing on disk undo data.

Test Plan:

make check
../qa/pull-tester/rpc-test.py

Did a 5000 block deep reorg on testnet using invalidateblock/reconsiderblock

Reviewers: freetrader, kyuupichan, sickpig, awemany, #bitcoin_abc

Reviewed By: freetrader, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D368

Details

Provenance
deadalnixAuthored on Jul 21 2017, 08:24
deadalnixPushed on Aug 29 2017, 16:43
Reviewer
Restricted Project
Differential Revision
D368: Use the Coin abstraction to undo spends.
Parents
rABCd6cdd9454092: Include height and coinbase flag in all txos.
Branches
Unknown
Tags
Unknown