multi: improve logging re resolution flow

This commit is contained in:
yyforyongyu committed 2023-08-10 13:50:03 +08:00
1 parent 8f693fe020
commit aff4320208
3 files changed
+24 -11

No files matched your search

+7
View File
@@ -1,6 +1,8 @@
package input
import (
"fmt"
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
@@ -69,6 +71,11 @@ type TxInfo struct {
Weight int64
}
// String returns a human readable version of the tx info.
func (t *TxInfo) String() string {
return fmt.Sprintf("fee=%v, weight=%v", t.Fee, t.Weight)
}
// SignDetails is a struct containing information needed to resign certain
// inputs. It is used to re-sign 2nd level HTLC transactions that uses the
// SINGLE|ANYONECANPAY sighash type, as we have a signature provided by our