Skip to content

Commit

Permalink
[refactor]: explicitly cast packageSize to uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaelsadeeq committed Jul 7, 2024
1 parent 3714692 commit dca1495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ void BlockAssembler::addPackageTxs(const CTxMemPool& mempool, int& nPackagesSele
// contain anything that is inBlock.
assert(!inBlock.count(iter->GetSharedTx()->GetHash()));

uint64_t packageSize = iter->GetSizeWithAncestors();
uint32_t packageSize = static_cast<uint32_t>(iter->GetSizeWithAncestors());
CAmount packageFees = iter->GetModFeesWithAncestors();
int64_t packageSigOpsCost = iter->GetSigOpCostWithAncestors();
if (fUsingModified) {
packageSize = modit->nSizeWithAncestors;
packageSize = static_cast<uint32_t>(modit->nSizeWithAncestors);
packageFees = modit->nModFeesWithAncestors;
packageSigOpsCost = modit->nSigOpCostWithAncestors;
}
Expand Down

0 comments on commit dca1495

Please sign in to comment.