From 5bd9e0b3cbf664907bd1bfeb03a10464aae04ef6 Mon Sep 17 00:00:00 2001 From: Prasanna Loganathar Date: Tue, 17 Aug 2021 18:46:33 +0530 Subject: [PATCH] Add EunosPaya height to blockchaininfo (#685) * Add EunosPaya height to blockchaininfo * Update tests --- src/rpc/blockchain.cpp | 1 + test/functional/rpc_blockchain.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 25c68de61a2..4b35c3f5486 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1358,6 +1358,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request) BuriedForkDescPushBack(softforks, "dakota", consensusParams.DakotaHeight); BuriedForkDescPushBack(softforks, "dakotacrescent", consensusParams.DakotaCrescentHeight); BuriedForkDescPushBack(softforks, "eunos", consensusParams.EunosHeight); + BuriedForkDescPushBack(softforks, "eunospaya", consensusParams.EunosPayaHeight); BIP9SoftForkDescPushBack(softforks, "testdummy", consensusParams, Consensus::DEPLOYMENT_TESTDUMMY); obj.pushKV("softforks", softforks); diff --git a/test/functional/rpc_blockchain.py b/test/functional/rpc_blockchain.py index 9aac53cf988..51662ce5172 100755 --- a/test/functional/rpc_blockchain.py +++ b/test/functional/rpc_blockchain.py @@ -130,6 +130,7 @@ def _test_getblockchaininfo(self): 'dakota': {'type': 'buried', 'active': False, 'height': 10000000}, 'dakotacrescent': {'type': 'buried', 'active': False, 'height': 10000000}, 'eunos': {'type': 'buried', 'active': False, 'height': 10000000}, + 'eunospaya': {'type': 'buried', 'active': False, 'height': 10000000}, 'testdummy': { 'type': 'bip9', 'bip9': {