From f6af03bf9864d50d71b65bf1f40bcb6b5fbeec3d Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 29 Oct 2013 02:17:49 -0400 Subject: [PATCH] Set a default fee of 0.0001 BTC. --- createtx.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/createtx.go b/createtx.go index 6c6844a..6cda5f1 100644 --- a/createtx.go +++ b/createtx.go @@ -38,10 +38,13 @@ var ErrInsufficientFunds = errors.New("insufficient funds") var ErrUnknownBitcoinNet = errors.New("unknown bitcoin network") // TxFee represents the global transaction fee added to newly-created -// transactions and sent as a reward to the block miner. -var TxFee struct { +// transactions and sent as a reward to the block miner. i is measured +// in satoshis. +var TxFee = struct { sync.Mutex i int64 +}{ + i: 10000, // This is a fee of 0.0001 BTC. } // UnminedTXs holds a map of transaction IDs as keys mapping to a