diff options
| author | Gregory Sanders <[email protected]> | 2018-08-14 14:28:29 -0400 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2018-08-14 14:28:29 -0400 |
| commit | 2252ec50085c151e7998ca9a30cda6a33ee862b6 (patch) | |
| tree | 40762e8bb7acaeb08ac337a38c8c8a7b76e2e858 /src/rpc/rawtransaction.cpp | |
| parent | Merge #13917: Additional safety checks in PSBT signer (diff) | |
| download | discoin-2252ec50085c151e7998ca9a30cda6a33ee862b6.tar.xz discoin-2252ec50085c151e7998ca9a30cda6a33ee862b6.zip | |
Allow ConstructTransaction to not throw error with 0-input txn
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
| -rw-r--r-- | src/rpc/rawtransaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 608a1b5da..314184ab0 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -436,7 +436,7 @@ CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniVal } } - if (!rbf.isNull() && rbfOptIn != SignalsOptInRBF(rawTx)) { + if (!rbf.isNull() && rawTx.vin.size() > 0 && rbfOptIn != SignalsOptInRBF(rawTx)) { throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter combination: Sequence number(s) contradict replaceable option"); } |