diff options
| author | Pieter Wuille <[email protected]> | 2016-04-20 14:53:36 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-05-17 00:40:55 +0200 |
| commit | d253ec4baa21cc292cf72d453f71b4043b53e591 (patch) | |
| tree | afe9cea25c59f4ec2d896bd75320dd1e8a52e832 /src/main.cpp | |
| parent | Merge #8059: Remove unneeded feerate param from RelayTransaction/AcceptToMemo... (diff) | |
| download | discoin-d253ec4baa21cc292cf72d453f71b4043b53e591.tar.xz discoin-d253ec4baa21cc292cf72d453f71b4043b53e591.zip | |
Make ProcessNewBlock dbp const and update comment
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 09f82312a..981d98771 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3398,7 +3398,7 @@ static bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state } /** Store block on disk. If dbp is non-NULL, the file is known to already reside on disk */ -static bool AcceptBlock(const CBlock& block, CValidationState& state, const CChainParams& chainparams, CBlockIndex** ppindex, bool fRequested, CDiskBlockPos* dbp) +static bool AcceptBlock(const CBlock& block, CValidationState& state, const CChainParams& chainparams, CBlockIndex** ppindex, bool fRequested, const CDiskBlockPos* dbp) { AssertLockHeld(cs_main); @@ -3474,7 +3474,7 @@ static bool IsSuperMajority(int minVersion, const CBlockIndex* pstart, unsigned } -bool ProcessNewBlock(CValidationState& state, const CChainParams& chainparams, const CNode* pfrom, const CBlock* pblock, bool fForceProcessing, CDiskBlockPos* dbp) +bool ProcessNewBlock(CValidationState& state, const CChainParams& chainparams, const CNode* pfrom, const CBlock* pblock, bool fForceProcessing, const CDiskBlockPos* dbp) { { LOCK(cs_main); |