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
This commit is contained in:
Dave Collins 2014-03-04 09:15:18 -06:00
parent cbb5c5b424
commit 2a42cc134f

View file

@ -70,7 +70,7 @@ const (
// used to help determine if a transaction is considered dust and as a // used to help determine if a transaction is considered dust and as a
// base for calculating minimum required fees for larger transactions. // base for calculating minimum required fees for larger transactions.
// This value is in Satoshi/KB (kilobyte, not kibibyte). // This value is in Satoshi/KB (kilobyte, not kibibyte).
minTxRelayFee = 10000 minTxRelayFee = 1000
// blockPrioritySize is the number of bytes reserved in a block for // blockPrioritySize is the number of bytes reserved in a block for
// high-priority transactions. It is mainly used to help determine the // 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 // Using the typical values for a pay-to-pubkey-hash transaction from
// the breakdown above and the default minimum free transaction relay // 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. // considered dust.
// //
// The following is equivalent to (value/totalSize) * (1/3) * 1000 // The following is equivalent to (value/totalSize) * (1/3) * 1000