aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorEric Lombrozo <elombrozo@gmail.com>2013-06-23 19:00:18 -0700
committerEric Lombrozo <elombrozo@gmail.com>2013-06-23 19:59:35 -0700
commit1959997afb0c710f238ae33fc8c656ab9b5470c8 (patch)
treeb5dca96bb07627ca6055d0680b737a04bae09ad7 /src/main.h
parentf3ae51dcced8a16175426051ce888130cc2493af (diff)
downloadbitcoin-1959997afb0c710f238ae33fc8c656ab9b5470c8.tar.xz
Pulled AddToBlockIndex out of CBlock.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h5
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);