Skip to content

Commit

Permalink
rpc/signet: show signet blockscript in 'getblockchaininfo'
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof committed Sep 9, 2019
1 parent 4509a15 commit e8e395a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,9 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
}

const Consensus::Params& consensusParams = Params().GetConsensus();
if (consensusParams.signet_blocks) {
obj.pushKV("signet-blockscript", HexStr(g_signet_blockscript));
}
UniValue softforks(UniValue::VOBJ);
BuriedForkDescPushBack(softforks, "bip34", consensusParams.BIP34Height);
BuriedForkDescPushBack(softforks, "bip66", consensusParams.BIP66Height);
Expand Down

0 comments on commit e8e395a

Please sign in to comment.