diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-06-12 19:47:19 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-06-12 19:47:19 +0100 |
commit | d2f6d2a95a9f6c1632c1ed3b5b5b67a49eb71d6b (patch) | |
tree | 2675bdd2c5101fcc85b8503985cd368b6d92c331 /src/policy | |
parent | c92fd638860c5b4477851fb3790bc8068f808d3e (diff) | |
download | bitcoin-d2f6d2a95a9f6c1632c1ed3b5b5b67a49eb71d6b.tar.xz |
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.
Diffstat (limited to 'src/policy')
-rw-r--r-- | src/policy/policy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index 394fb34230..9135cae91c 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -24,7 +24,7 @@ static constexpr unsigned int DEFAULT_BLOCK_MAX_WEIGHT{MAX_BLOCK_WEIGHT - 4000}; /** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/ static constexpr unsigned int DEFAULT_BLOCK_MIN_TX_FEE{1000}; /** The maximum weight for transactions we're willing to relay/mine */ -static constexpr unsigned int MAX_STANDARD_TX_WEIGHT{400000}; +static constexpr int32_t MAX_STANDARD_TX_WEIGHT{400000}; /** The minimum non-witness size for transactions we're willing to relay/mine: one larger than 64 */ static constexpr unsigned int MIN_STANDARD_TX_NONWITNESS_SIZE{65}; /** Maximum number of signature check operations in an IsStandard() P2SH script */ |