Skip to content

Commit

Permalink
Merge pull request #82 from Rishi556/more-blockchain-info
Browse files Browse the repository at this point in the history
Add chain id to getStatus
  • Loading branch information
bt-cryptomancer authored Jul 21, 2021
2 parents f3c328d + 16fad57 commit 8ad8bb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/JsonRPCServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const { Database } = require('../libs/Database');
const STREAMER_PLUGIN_NAME = require('./Streamer.constants').PLUGIN_NAME;
const STREAMER_PLUGIN_ACTION = require('./Streamer.constants').PLUGIN_ACTIONS;
const packagejson = require('../package.json');
const config = require('../config.json');

const PLUGIN_NAME = 'JsonRPCServer';
const PLUGIN_PATH = require.resolve(__filename);
Expand Down Expand Up @@ -77,6 +78,9 @@ function blockchainRPC() {
// get the version of the SSC node
result.SSCnodeVersion = packagejson.version;

// get the ssc chain id from config
result.chainId = config.chainId;

callback(null, result);
} catch (error) {
callback(error, null);
Expand Down

0 comments on commit 8ad8bb6

Please sign in to comment.