itest: add test when signing without UTXO data
Adds a testcase in the itest suite which tests that psbt input data needs its corresponding UTXO data when signing.
This commit is contained in:
2 files changed
+26
-2
No files matched your search
@@ -263,6 +263,19 @@ func (h *HarnessRPC) SignPsbt(
|
||||
return resp
|
||||
}
|
||||
|
||||
// SignPsbtErr makes a RPC call to the node's WalletKitClient and asserts
|
||||
// an error returned.
|
||||
func (h *HarnessRPC) SignPsbtErr(req *walletrpc.SignPsbtRequest) error {
|
||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||
defer cancel()
|
||||
|
||||
_, err := h.WalletKit.SignPsbt(ctxt, req)
|
||||
require.Errorf(h, err, "%s: expect sign psbt to return an error",
|
||||
h.Name)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// ImportTapscript makes a RPC call to the node's WalletKitClient and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
|
||||
Reference in new issue
Block a user