From 50367162a0c25c6d550a8e4c29ef94f0be87f16c Mon Sep 17 00:00:00 2001 From: platfowner Date: Tue, 13 Feb 2024 12:53:34 +0900 Subject: [PATCH] Rename: Consensus API -> Blockchain Node API --- json_rpc/{consensus.js => blockchain-node.js} | 2 +- json_rpc/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename json_rpc/{consensus.js => blockchain-node.js} (97%) diff --git a/json_rpc/consensus.js b/json_rpc/blockchain-node.js similarity index 97% rename from json_rpc/consensus.js rename to json_rpc/blockchain-node.js index b3e8310ae..da19ba7a1 100644 --- a/json_rpc/consensus.js +++ b/json_rpc/blockchain-node.js @@ -6,7 +6,7 @@ const PathUtil = require('../common/path-util'); const JsonRpcUtil = require('./json-rpc-util'); const { JSON_RPC_METHODS } = require('./constants'); -module.exports = function getConsensusApis(node) { +module.exports = function getBlockchainNodeApis(node) { return { [JSON_RPC_METHODS.AIN_GET_VALIDATOR_INFO]: function(args, done) { const beginTime = Date.now(); diff --git a/json_rpc/index.js b/json_rpc/index.js index 4c8d453f5..fe29ef616 100644 --- a/json_rpc/index.js +++ b/json_rpc/index.js @@ -6,7 +6,7 @@ const getAccountApis = require('./account'); const getAppApis = require('./app'); const getAdminApis = require('./admin'); const getBlockApis = require('./block'); -const getConsensusApis = require('./consensus'); +const getBlockchainNodeApis = require('./blockchain-node'); const getDatabaseApis = require('./database'); const getEventHandlerApis = require('./event-handler'); const getNetworkApis = require('./network'); @@ -37,7 +37,7 @@ module.exports = function getApis(node, p2pServer, minProtocolVersion, maxProtoc ...getAccountApis(node), ...getAppApis(node), ...getBlockApis(node), - ...getConsensusApis(node), + ...getBlockchainNodeApis(node), ...getDatabaseApis(node), ...getNetworkApis(node, p2pServer), ...getTransactionApis(node, p2pServer),