Skip to content

Commit

Permalink
Allow ConstructTransaction to not throw error with 0-input txn
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Aug 14, 2018
1 parent 63f8b01 commit 2252ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 2252ec5

Please sign in to comment.