Skip to content

Commit 2252ec5

Browse files
committed
Allow ConstructTransaction to not throw error with 0-input txn
1 parent 63f8b01 commit 2252ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniVal
436436
}
437437
}
438438

439-
if (!rbf.isNull() && rbfOptIn != SignalsOptInRBF(rawTx)) {
439+
if (!rbf.isNull() && rawTx.vin.size() > 0 && rbfOptIn != SignalsOptInRBF(rawTx)) {
440440
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter combination: Sequence number(s) contradict replaceable option");
441441
}
442442

0 commit comments

Comments
 (0)