spend from wpkh works

This commit is contained in:
Tadge Dryja committed 2016-02-22 01:41:40 -08:00
1 parent 57a34f0753
commit 2b808724fb
6 files changed
+49 -26

No files matched your search

+1 -1
View File
@@ -234,7 +234,7 @@ func (s *SPVCon) SendCoins(adr btcutil.Address, sendAmt int64) error {
fmt.Printf("tx: %s", TxToString(tx))
buf := bytes.NewBuffer(make([]byte, 0, tx.SerializeSize()))
tx.Serialize(buf)
tx.SerializeWitness(buf)
fmt.Printf("tx: %x\n", buf.Bytes())
// send it out on the wire. hope it gets there.