diff options
author | benthecarman <benthecarman@live.com> | 2019-02-04 21:26:43 -0600 |
---|---|---|
committer | benthecarman <benthecarman@live.com> | 2019-02-04 21:26:52 -0600 |
commit | 30d0f7be6e6bd45fed7195ddf31187438b02227a (patch) | |
tree | 7e26ab5135127031a6b21aeb06d07cfdff05be7d /test/functional/rpc_psbt.py | |
parent | e50853501b79378597edbcd6dd217819c057de4b (diff) |
rpc: Fix for segfault if combinepsbt called with empty inputs
Diffstat (limited to 'test/functional/rpc_psbt.py')
-rwxr-xr-x | test/functional/rpc_psbt.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index 1e10280e60..a82a5d0208 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -269,6 +269,9 @@ class PSBTTest(BitcoinTestFramework): combined = self.nodes[2].combinepsbt(combiner['combine']) assert_equal(combined, combiner['result']) + # Empty combiner test + assert_raises_rpc_error(-8, "Parameter 'txs' cannot be empty", self.nodes[0].combinepsbt, []) + # Finalizer test for finalizer in finalizers: finalized = self.nodes[2].finalizepsbt(finalizer['finalize'], False)['psbt'] |