add per tx fee estimation

seems to work fine.  Can add monitoring of avg fees later
This commit is contained in:
Tadge Dryja committed 2016-02-22 14:35:01 -08:00
1 parent 2b808724fb
commit bc4cf5ba80
3 files changed
+104 -48

No files matched your search

+6 -1
View File
@@ -290,7 +290,12 @@ func Send(args []string) error {
fmt.Printf("send %d to address: %s \n",
amt, adr.String())
err = SCon.SendCoins(adr, amt)
var adrs []btcutil.Address
var amts []int64
adrs = append(adrs, adr)
amts = append(amts, amt)
err = SCon.SendCoins(adrs, amts)
if err != nil {
return err
}