diff options
| author | Matt Corallo <[email protected]> | 2016-12-04 00:17:30 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-12-04 00:17:30 -0800 |
| commit | 2d6e5619afa2d43a37a0a38daf33f58965ddfa80 (patch) | |
| tree | 9bdc85dfd1048bc7d7f2d535d9f63b3b373ef4d9 /src/validation.h | |
| parent | Make the optional pblock in ActivateBestChain a shared_ptr (diff) | |
| download | discoin-2d6e5619afa2d43a37a0a38daf33f58965ddfa80.tar.xz discoin-2d6e5619afa2d43a37a0a38daf33f58965ddfa80.zip | |
Switch pblock in ProcessNewBlock to a shared_ptr
This (finally) fixes a performance regression in
b3b3c2a5623d5c942d2b3565cc2d833c65105555
Diffstat (limited to 'src/validation.h')
| -rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index 2d055d190..3a2b51bfe 100644 --- a/src/validation.h +++ b/src/validation.h @@ -233,7 +233,7 @@ static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 550 * 1024 * 1024; * @param[out] fNewBlock A boolean which is set to indicate if the block was first received via this call * @return True if state.IsValid() */ -bool ProcessNewBlock(const CChainParams& chainparams, const CBlock* pblock, bool fForceProcessing, const CDiskBlockPos* dbp, bool* fNewBlock); +bool ProcessNewBlock(const CChainParams& chainparams, const std::shared_ptr<const CBlock> pblock, bool fForceProcessing, const CDiskBlockPos* dbp, bool* fNewBlock); /** * Process incoming block headers. |