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:
ziggie committed 2023-03-31 08:56:15 +02:00
1 parent 4da26fb65a
commit b649b552e6
2 files changed
+26 -2

No files matched your search

+13
View File
@@ -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