From 2a42cc134f14e9aef4197eaf119d49941c609400 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 4 Mar 2014 09:15:18 -0600 Subject: [PATCH] Lower min transaction relay fee to 1000 satoshi. This mirrors a recent change in the reference implementation. Since the vast majority of the network still uses it and transactions which aren't considered standard won't be relayed, the rules for standard transactions need to be kept consistent. Ideally this should be handled via floating fees, but we're rather limited until we have miner support and a larger network share so the probability of a transaction being relayed and confirmed is high. Closes #100. ok @owainga --- mempool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mempool.go b/mempool.go index 3309ef2a..299d030d 100644 --- a/mempool.go +++ b/mempool.go @@ -70,7 +70,7 @@ const ( // used to help determine if a transaction is considered dust and as a // base for calculating minimum required fees for larger transactions. // This value is in Satoshi/KB (kilobyte, not kibibyte). - minTxRelayFee = 10000 + minTxRelayFee = 1000 // blockPrioritySize is the number of bytes reserved in a block for // high-priority transactions. It is mainly used to help determine the @@ -158,7 +158,7 @@ func isDust(txOut *btcwire.TxOut) bool { // // Using the typical values for a pay-to-pubkey-hash transaction from // the breakdown above and the default minimum free transaction relay - // fee of 10000, this equates to values less than 5460 satoshi being + // fee of 1000, this equates to values less than 546 satoshi being // considered dust. // // The following is equivalent to (value/totalSize) * (1/3) * 1000