diff options
| author | MarcoFalke <[email protected]> | 2015-10-13 19:23:11 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2015-11-09 21:00:16 +0100 |
| commit | 5f46a7d0689ff1457b016fdf0de89e5153058864 (patch) | |
| tree | 2dc4685628cd5f641156ce4a17bc047704e8898d /src/primitives | |
| parent | Merge pull request #6967 (diff) | |
| download | discoin-5f46a7d0689ff1457b016fdf0de89e5153058864.tar.xz discoin-5f46a7d0689ff1457b016fdf0de89e5153058864.zip | |
transaction_tests: Be more strict checking dust
* Don't allow off-by-one or more
* Make clear dust is coupled with minRelayTxFee
* Check rounding for odd values
Diffstat (limited to 'src/primitives')
| -rw-r--r-- | src/primitives/transaction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 2a457cdae..98882d315 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -143,8 +143,8 @@ public: // to spend something, then we consider it dust. // A typical spendable txout is 34 bytes big, and will // need a CTxIn of at least 148 bytes to spend: - // so dust is a spendable txout less than 546 satoshis - // with default minRelayTxFee. + // so dust is a spendable txout less than + // 546*minRelayTxFee/1000 (in satoshis) if (scriptPubKey.IsUnspendable()) return 0; |