Skip to content

Commit

Permalink
tsize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk18 committed Feb 22, 2018
1 parent 0a81bd9 commit 8e939ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/CryptoNoteCore/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1809,10 +1809,9 @@ void Core::fillBlockTemplate(BlockTemplate& block, size_t medianSize, size_t max
fee = 0;

size_t maxTotalSize = (125 * medianSize) / 100;


maxTotalSize = std::min(maxTotalSize, maxCumulativeSize) - currency.minerTxBlobReservedSize();
size_t blockSizeLimit =maxCumulativeSize;

size_t blockSizeLimit =maxTotalSize;

logger(Logging::DEBUGGING) << "blockSizeLimit:"<<blockSizeLimit;

Expand Down

0 comments on commit 8e939ce

Please sign in to comment.