We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e5549 commit e532664Copy full SHA for e532664
src/rpc/rawtransaction.cpp
@@ -147,7 +147,8 @@ static UniValue getrawtransaction(const JSONRPCRequest& request)
147
uint256 hash = ParseHashV(request.params[0], "parameter 1");
148
CBlockIndex* blockindex = nullptr;
149
150
- if (hash == Params().GenesisBlock().hashMerkleRoot) {
+ if (!Params().GetConsensus().connect_genesis_outputs &&
151
+ hash == Params().GenesisBlock().hashMerkleRoot) {
152
// Special exception for the genesis block coinbase transaction
153
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "The genesis block coinbase is not considered an ordinary transaction and cannot be retrieved");
154
}
0 commit comments