diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2018-08-14 14:28:29 -0400 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2018-08-14 14:28:29 -0400 |
commit | 2252ec50085c151e7998ca9a30cda6a33ee862b6 (patch) | |
tree | 40762e8bb7acaeb08ac337a38c8c8a7b76e2e858 | |
parent | 63f8b0128b2aac3b25c6ec4d2f5bda213033162a (diff) |
Allow ConstructTransaction to not throw error with 0-input txn
-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 608a1b5da2..314184ab06 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"); } |