diff options
author | Eric Lombrozo <elombrozo@gmail.com> | 2013-06-23 19:00:18 -0700 |
---|---|---|
committer | Eric Lombrozo <elombrozo@gmail.com> | 2013-06-23 19:59:35 -0700 |
commit | 1959997afb0c710f238ae33fc8c656ab9b5470c8 (patch) | |
tree | b5dca96bb07627ca6055d0680b737a04bae09ad7 /src/main.h | |
parent | f3ae51dcced8a16175426051ce888130cc2493af (diff) |
Pulled AddToBlockIndex out of CBlock.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.h b/src/main.h index 2c59644551..e44844a79e 100644 --- a/src/main.h +++ b/src/main.h @@ -703,9 +703,6 @@ public: } - // Add this block to the block index, and if necessary, switch the active block chain to this - bool AddToBlockIndex(CValidationState &state, const CDiskBlockPos &pos); - // Context-independent validity checks bool CheckBlock(CValidationState &state, bool fCheckPOW=true, bool fCheckMerkleRoot=true) const; @@ -732,6 +729,8 @@ bool DisconnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex // Apply the effects of this block (with given index) on the UTXO set represented by coins bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, CCoinsViewCache& coins, bool fJustCheck = false); +// Add this block to the block index, and if necessary, switch the active block chain to this +bool AddToBlockIndex(CBlock& block, CValidationState& state, const CDiskBlockPos& pos); |