diff options
author | Antoine Riard <ariard@student.42.fr> | 2019-07-24 15:41:41 -0400 |
---|---|---|
committer | Antoine Riard <ariard@student.42.fr> | 2019-11-05 12:59:16 -0500 |
commit | 10b4729e33f76092bd8cfa06d1a5e0a066436f76 (patch) | |
tree | 7ef80f8890067aa49125583624db014a0d6ec1e2 /src/validation.cpp | |
parent | 50591f6ec61b802cf4193cdbefcc85ad75716e8d (diff) |
Pass block height in Chain::BlockConnected/Chain::BlockDisconnected
To do so we update CValidationInterface::BlockDisconnect to take a
CBlockIndex pointing to the block being disconnected.
This new parameter will be use in the following commit to establish
wallet height.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 11072b6038..7be97df78a 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2435,7 +2435,7 @@ bool CChainState::DisconnectTip(BlockValidationState& state, const CChainParams& UpdateTip(pindexDelete->pprev, chainparams); // Let wallets know transactions went from 1-confirmed to // 0-confirmed or conflicted: - GetMainSignals().BlockDisconnected(pblock); + GetMainSignals().BlockDisconnected(pblock, pindexDelete); return true; } |