diff options
| author | practicalswift <[email protected]> | 2017-03-09 13:34:54 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-07-25 13:46:52 +0200 |
| commit | 6e8c48dc593d8b6e5cebd15a980074715223b572 (patch) | |
| tree | 7977c539a2e3a2d344d156fc53fde9848dc84ca1 /src/miner.cpp | |
| parent | Merge #10865: Move CloseSocket out of SetSocketNonBlocking and pass socket as... (diff) | |
| download | discoin-6e8c48dc593d8b6e5cebd15a980074715223b572.tar.xz discoin-6e8c48dc593d8b6e5cebd15a980074715223b572.zip | |
Add const to methods that do not modify the object for which it is called
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 79016bfd3..6f41f8633 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -224,7 +224,7 @@ void BlockAssembler::onlyUnconfirmed(CTxMemPool::setEntries& testSet) } } -bool BlockAssembler::TestPackage(uint64_t packageSize, int64_t packageSigOpsCost) +bool BlockAssembler::TestPackage(uint64_t packageSize, int64_t packageSigOpsCost) const { // TODO: switch to weight-based accounting for packages instead of vsize-based accounting. if (nBlockWeight + WITNESS_SCALE_FACTOR * packageSize >= nBlockMaxWeight) |