diff options
| author | Shibe <[email protected]> | 2021-02-08 04:54:51 +0400 |
|---|---|---|
| committer | Shibe <[email protected]> | 2021-02-08 16:52:55 +0400 |
| commit | ef9242b9ec46a28690e49debe2c2364bb70be702 (patch) | |
| tree | b012eaa7e97e3ae70d99027ec5e31f3d08febc20 /src/chain.h | |
| parent | Merge pull request #1705 from rnicoll/block-download-timeout (diff) | |
| download | discoin-ef9242b9ec46a28690e49debe2c2364bb70be702.tar.xz discoin-ef9242b9ec46a28690e49debe2c2364bb70be702.zip | |
Don't re-check AuxPoW when sending data to peers
Checking scrypt PoW is expensive and needless in this case. All block
headers are already checked when they are accepted, and they will be
checked again on the receiving end.
Diffstat (limited to 'src/chain.h')
| -rw-r--r-- | src/chain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chain.h b/src/chain.h index 7b568eebb..882fdd34d 100644 --- a/src/chain.h +++ b/src/chain.h @@ -263,7 +263,7 @@ public: return ret; } - CBlockHeader GetBlockHeader(const Consensus::Params& consensusParams) const; + CBlockHeader GetBlockHeader(const Consensus::Params& consensusParams, bool fCheckPOW = true) const; uint256 GetBlockHash() const { |