mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
parent
9b49bfda81
commit
ce66871308
@ -1755,6 +1755,13 @@ static DisconnectResult DisconnectBlock(const CBlock& block, CValidationState& s
|
||||
// move best block pointer to prevout block
|
||||
view.SetBestBlock(pindex->pprev->GetBlockHash());
|
||||
|
||||
if (fSpentIndex) {
|
||||
if (!pblocktree->UpdateSpentIndex(spentIndex)) {
|
||||
AbortNode("Failed to delete spent index");
|
||||
return DISCONNECT_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
if (fAddressIndex) {
|
||||
if (!pblocktree->EraseAddressIndex(addressIndex)) {
|
||||
AbortNode(state, "Failed to delete address index");
|
||||
|
Loading…
Reference in New Issue
Block a user