aboutsummaryrefslogtreecommitdiff
path: root/src/policy/policy.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-08-07 07:44:32 +0100
committerRoss Nicoll <[email protected]>2021-08-08 18:36:15 +0100
commit672a38cc061f801b691d9a91cd720d0a414d2e63 (patch)
tree55ef4cd7c5f87c2ad5bbd2d26bb4bf4cf44006e8 /src/policy/policy.cpp
parentMerge pull request #2348 from patricklodder/1.14-cfg-dust-limit (diff)
downloaddiscoin-672a38cc061f801b691d9a91cd720d0a414d2e63.tar.xz
discoin-672a38cc061f801b691d9a91cd720d0a414d2e63.zip
Use CAmount for amounts
Use CAmount rather than unsigned int for amounts for consistency with other fee rate amounts. This does change the type from unsigned int to unsigned int64, and while it is unlikely anyone would need a dust limit higher than unsigned int, again this ensures the theoretical maximum is in line with other rates.
Diffstat (limited to 'src/policy/policy.cpp')
-rw-r--r--src/policy/policy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp
index 7b2b23964..506eb6f17 100644
--- a/src/policy/policy.cpp
+++ b/src/policy/policy.cpp
@@ -209,7 +209,7 @@ bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs)
CFeeRate incrementalRelayFee = CFeeRate(DEFAULT_INCREMENTAL_RELAY_FEE);
CFeeRate dustRelayFee = CFeeRate(DUST_RELAY_TX_FEE);
unsigned int nBytesPerSigOp = DEFAULT_BYTES_PER_SIGOP;
-unsigned int nDustLimit = DEFAULT_DUST_LIMIT;
+CAmount nDustLimit = DEFAULT_DUST_LIMIT;
int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost)
{