spend from wpkh works
This commit is contained in:
1 parent
57a34f0753
commit
2b808724fb
6 files changed
+49
-26
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user