mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
allow grabbing genesis transaction(s) when connected
This commit is contained in:
parent
c7e5549317
commit
e532664298
1 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,8 @@ static UniValue getrawtransaction(const JSONRPCRequest& request)
|
|||
uint256 hash = ParseHashV(request.params[0], "parameter 1");
|
||||
CBlockIndex* blockindex = nullptr;
|
||||
|
||||
if (hash == Params().GenesisBlock().hashMerkleRoot) {
|
||||
if (!Params().GetConsensus().connect_genesis_outputs &&
|
||||
hash == Params().GenesisBlock().hashMerkleRoot) {
|
||||
// Special exception for the genesis block coinbase transaction
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "The genesis block coinbase is not considered an ordinary transaction and cannot be retrieved");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue