mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Rename ReconsiderBlock func to reflect real behavior
This commit is contained in:
parent
addb9d2a09
commit
657e07efa3
@ -3011,7 +3011,7 @@ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, C
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ReconsiderBlock(CBlockIndex *pindex) {
|
||||
bool ResetBlockFailureFlags(CBlockIndex *pindex) {
|
||||
AssertLockHeld(cs_main);
|
||||
|
||||
int nHeight = pindex->nHeight;
|
||||
|
@ -464,7 +464,7 @@ CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& loc
|
||||
bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, CBlockIndex *pindex);
|
||||
|
||||
/** Remove invalidity status from a block and its descendants. */
|
||||
bool ReconsiderBlock(CBlockIndex *pindex);
|
||||
bool ResetBlockFailureFlags(CBlockIndex *pindex);
|
||||
|
||||
/** The currently-connected chain of blocks (protected by cs_main). */
|
||||
extern CChain chainActive;
|
||||
|
@ -980,7 +980,7 @@ UniValue reconsiderblock(const UniValue& params, bool fHelp)
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found");
|
||||
|
||||
CBlockIndex* pblockindex = mapBlockIndex[hash];
|
||||
ReconsiderBlock(pblockindex);
|
||||
ResetBlockFailureFlags(pblockindex);
|
||||
}
|
||||
|
||||
CValidationState state;
|
||||
|
Loading…
Reference in New Issue
Block a user