aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-08-14 14:28:29 -0400
committerGregory Sanders <gsanders87@gmail.com>2018-08-14 14:28:29 -0400
commit2252ec50085c151e7998ca9a30cda6a33ee862b6 (patch)
tree40762e8bb7acaeb08ac337a38c8c8a7b76e2e858
parent63f8b0128b2aac3b25c6ec4d2f5bda213033162a (diff)
Allow ConstructTransaction to not throw error with 0-input txn
-rw-r--r--src/rpc/rawtransaction.cpp2
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");
}