Skip to content

Commit

Permalink
regen mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Aug 15, 2024
1 parent 3928f78 commit effbdee
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
4 changes: 0 additions & 4 deletions btcclient/client_wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ func CalculateTxFee(feeRateAmount btcutil.Amount, size uint64) (uint64, error) {
return uint64(feeRateAmount.MulF64(float64(size) / 1024)), nil
}

func (c *Client) SignRawTransactionWithWallet2(tx *wire.MsgTx, inputs []btcjson.RawTxWitnessInput) (*wire.MsgTx, bool, error) {
return c.Client.SignRawTransactionWithWallet2(tx, inputs)
}

func (c *Client) FundRawTransaction(tx *wire.MsgTx, opts btcjson.FundRawTransactionOpts, isWitness *bool) (*btcjson.FundRawTransactionResult, error) {
return c.Client.FundRawTransaction(tx, opts, isWitness)
}
Expand Down
1 change: 0 additions & 1 deletion btcclient/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ type BTCWallet interface {
WalletPassphrase(passphrase string, timeoutSecs int64) error
DumpPrivKey(address btcutil.Address) (*btcutil.WIF, error)
GetHighUTXOAndSum() (*btcjson.ListUnspentResult, float64, error)
SignRawTransactionWithWallet2(tx *wire.MsgTx, inputs []btcjson.RawTxWitnessInput) (*wire.MsgTx, bool, error)
FundRawTransaction(tx *wire.MsgTx, opts btcjson.FundRawTransactionOpts, isWitness *bool) (*btcjson.FundRawTransactionResult, error)
SignRawTransactionWithWallet(tx *wire.MsgTx) (*wire.MsgTx, bool, error)
}
31 changes: 31 additions & 0 deletions testutil/mocks/btcclient.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit effbdee

Please sign in to comment.