Skip to content

Commit

Permalink
rpc: getblocktemplate drop warning for missing sigops field
Browse files Browse the repository at this point in the history
This field is always present.

The warning was added in a6099ef, but even then the field was always present.
  • Loading branch information
Sjors committed Sep 17, 2024
1 parent 9fd56f0 commit 4facb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static RPCHelpMan getblocktemplate()
{RPCResult::Type::NUM, "", "transactions before this one (by 1-based index in 'transactions' list) that must be present in the final block if this one is"},
}},
{RPCResult::Type::NUM, "fee", "difference in value between transaction inputs and outputs (in satoshis); for coinbase transactions, this is a negative Number of the total collected block fees (ie, not including the block subsidy); if key is not present, fee is unknown and clients MUST NOT assume there isn't one"},
{RPCResult::Type::NUM, "sigops", "total SigOps cost, as counted for purposes of block limits; if key is not present, sigop cost is unknown and clients MUST NOT assume it is zero"},
{RPCResult::Type::NUM, "sigops", "sigops cost for transaction, as counted for purposes of block limits"},
{RPCResult::Type::NUM, "weight", "total transaction weight, as counted for purposes of block limits"},
}},
}},
Expand Down

0 comments on commit 4facb94

Please sign in to comment.