Skip to content

Commit b8ba4eb

Browse files
committed
don't enforce standardness on coinbase
1 parent aa876a8 commit b8ba4eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rpc/mining.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ UniValue testproposedblock(const JSONRPCRequest& request)
377377
if ((!request.params[1].isNull() && !request.params[1].get_bool()) ||
378378
(request.params[1].isNull() && !GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()))) {
379379
for (auto& transaction : block.vtx) {
380+
if (transaction->IsCoinBase()) continue;
380381
std::string reason;
381382
if (!IsStandardTx(*transaction, reason)) {
382383
throw JSONRPCError(RPC_VERIFY_ERROR, "Block proposal included a non-standard transaction: " + reason);

0 commit comments

Comments
 (0)