Use int32_t type for most transaction size/weight values

This change gets rid of a few casts and makes the following commit diff
smaller.
This commit is contained in:
Hennadii Stepanov
2023-06-12 19:47:19 +01:00
parent c92fd63886
commit d2f6d2a95a
9 changed files with 39 additions and 37 deletions

View File

@@ -137,7 +137,7 @@ BOOST_FIXTURE_TEST_CASE(miniminer_1p1c, TestChain100Setup)
std::vector<CTransactionRef> all_transactions{tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8};
struct TxDimensions {
size_t vsize; CAmount mod_fee; CFeeRate feerate;
int32_t vsize; CAmount mod_fee; CFeeRate feerate;
};
std::map<uint256, TxDimensions> tx_dims;
for (const auto& tx : all_transactions) {