build: update to latest btcd and btcwallet versions

This update introduces backwards compatibility for btcd nodes running
versions prior to v0.20.1-beta.
This commit is contained in:
Wilmer Paulino committed 2020-05-15 17:00:16 -07:00
1 parent 280bf8d26c
commit 0e3fc4c7a6
3 files changed
+13 -8

No files matched your search

+2 -2
View File
@@ -304,7 +304,7 @@ func (b *BtcWallet) SendOutputs(outputs []*wire.TxOut,
if len(outputs) < 1 {
return nil, lnwallet.ErrNoOutputs
}
return b.wallet.SendOutputs(outputs, defaultAccount, 1, feeSatPerKB)
return b.wallet.SendOutputs(outputs, defaultAccount, 1, feeSatPerKB, "")
}
// CreateSimpleTx creates a Bitcoin transaction paying to the specified
@@ -434,7 +434,7 @@ func (b *BtcWallet) ListUnspentWitness(minConfs, maxConfs int32) (
// (currently ErrDoubleSpend). If the transaction is already published to the
// network (either in the mempool or chain) no error will be returned.
func (b *BtcWallet) PublishTransaction(tx *wire.MsgTx) error {
if err := b.wallet.PublishTransaction(tx); err != nil {
if err := b.wallet.PublishTransaction(tx, ""); err != nil {
// If we failed to publish the transaction, check whether we
// got an error of known type.