Set a default fee of 0.0001 BTC.

This commit is contained in:
Josh Rickmar 2013-10-29 02:17:49 -04:00
parent bff2c850d5
commit f6af03bf98

View file

@ -38,10 +38,13 @@ var ErrInsufficientFunds = errors.New("insufficient funds")
var ErrUnknownBitcoinNet = errors.New("unknown bitcoin network") var ErrUnknownBitcoinNet = errors.New("unknown bitcoin network")
// TxFee represents the global transaction fee added to newly-created // TxFee represents the global transaction fee added to newly-created
// transactions and sent as a reward to the block miner. // transactions and sent as a reward to the block miner. i is measured
var TxFee struct { // in satoshis.
var TxFee = struct {
sync.Mutex sync.Mutex
i int64 i int64
}{
i: 10000, // This is a fee of 0.0001 BTC.
} }
// UnminedTXs holds a map of transaction IDs as keys mapping to a // UnminedTXs holds a map of transaction IDs as keys mapping to a