diff options
| author | Ross Nicoll <[email protected]> | 2021-08-07 07:44:32 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-08-08 18:36:15 +0100 |
| commit | 672a38cc061f801b691d9a91cd720d0a414d2e63 (patch) | |
| tree | 55ef4cd7c5f87c2ad5bbd2d26bb4bf4cf44006e8 /src/primitives | |
| parent | Merge pull request #2348 from patricklodder/1.14-cfg-dust-limit (diff) | |
| download | discoin-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/primitives')
| -rw-r--r-- | src/primitives/transaction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 0d0ceda54..63e34697a 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -15,7 +15,8 @@ static const int SERIALIZE_TRANSACTION_NO_WITNESS = 0x40000000; static const int WITNESS_SCALE_FACTOR = 4; -extern unsigned int nDustLimit; +/** An amount smaller than this is considered dust */ +extern CAmount nDustLimit; /** An outpoint - a combination of a transaction hash and an index n into its vout */ class COutPoint |