mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
don't enforce standardness on coinbase
This commit is contained in:
parent
aa876a8762
commit
b8ba4ebee7
1 changed files with 1 additions and 0 deletions
|
|
@ -377,6 +377,7 @@ UniValue testproposedblock(const JSONRPCRequest& request)
|
|||
if ((!request.params[1].isNull() && !request.params[1].get_bool()) ||
|
||||
(request.params[1].isNull() && !GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()))) {
|
||||
for (auto& transaction : block.vtx) {
|
||||
if (transaction->IsCoinBase()) continue;
|
||||
std::string reason;
|
||||
if (!IsStandardTx(*transaction, reason)) {
|
||||
throw JSONRPCError(RPC_VERIFY_ERROR, "Block proposal included a non-standard transaction: " + reason);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue