diff --git a/src/validation.cpp b/src/validation.cpp index 692c9b3340..e6ea80156a 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -357,7 +357,7 @@ bool VerifyPrivateTxOwn(const uint256& txid, const std::vector& v return false; } - size_t count = 0; + uint32_t count = 0; for (const auto& pub : pubKeys) { ss << count; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 697c7a20bf..0462d22ffb 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3363,7 +3363,7 @@ std::vector CWallet::ProvePrivateTxOwn(const uint256& txid, const return result; } const auto& serials = joinsplit->getCoinSerialNumbers(); - size_t count = 0; + uint32_t count = 0; result.resize(serials.size() * 64); for (const auto& serial : serials) {