aboutsummaryrefslogtreecommitdiff
path: root/src/primitives/transaction.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2015-10-13 19:23:11 +0200
committerMarcoFalke <falke.marco@gmail.com>2015-11-09 21:00:16 +0100
commit5f46a7d0689ff1457b016fdf0de89e5153058864 (patch)
tree2dc4685628cd5f641156ce4a17bc047704e8898d /src/primitives/transaction.h
parent503ff6e1ae6932b63892099b4c63e92a9263fed6 (diff)
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/transaction.h')
-rw-r--r--src/primitives/transaction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h
index 2a457cdae7..98882d315e 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;