HomePhabricator

Add test for CWalletTx::GetImmatureCredit() returning stale values.

Description

Add test for CWalletTx::GetImmatureCredit() returning stale values.

Summary:
Add test for cached immature credit flag not being cleared in
CWalletTx::MarkDirty() bug, which was fixed in
https://github.com/bitcoin/bitcoin/pull/8717, commit a560378.

Bacport of core's PR9359

Test Plan:

make check

Reviewers: schancel, #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox

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

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Dec 16 2016, 02:37
deadalnixCommitted on Jan 13 2018, 01:20
deadalnixPushed on Jan 13 2018, 01:51
Reviewer
Restricted Project
Differential Revision
D941: Add test for CWalletTx::GetImmatureCredit() returning stale values.
Parents
rSTAGINGf2feb2421ab1: Added missing test cases for SigHashType
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/2480