mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Document ConnectBlock connectTrace postconditions
This commit is contained in:
parent
2d6e5619af
commit
dd0df81ebd
@ -2164,6 +2164,10 @@ struct ConnectTrace {
|
|||||||
/**
|
/**
|
||||||
* Connect a new block to chainActive. pblock is either NULL or a pointer to a CBlock
|
* Connect a new block to chainActive. pblock is either NULL or a pointer to a CBlock
|
||||||
* corresponding to pindexNew, to bypass loading it again from disk.
|
* corresponding to pindexNew, to bypass loading it again from disk.
|
||||||
|
*
|
||||||
|
* The block is always added to connectTrace (either after loading from disk or by copying
|
||||||
|
* pblock) - if that is not intended, care must be taken to remove the last entry in
|
||||||
|
* blocksConnected in case of failure.
|
||||||
*/
|
*/
|
||||||
bool static ConnectTip(CValidationState& state, const CChainParams& chainparams, CBlockIndex* pindexNew, const std::shared_ptr<const CBlock>& pblock, ConnectTrace& connectTrace)
|
bool static ConnectTip(CValidationState& state, const CChainParams& chainparams, CBlockIndex* pindexNew, const std::shared_ptr<const CBlock>& pblock, ConnectTrace& connectTrace)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user