fix(control/getnetworkinfo): Added getnetworkinfo endpoint

This commit is contained in:
Chris Troutner
2019-07-08 16:02:35 -07:00
parent 805db46db8
commit 3dfeb12837
3 changed files with 115 additions and 3 deletions
+20 -2
View File
@@ -22,6 +22,24 @@ const mockGetInfo = {
errors: "Warning: unknown new rules activated (versionbit 28)"
}
module.exports = {
mockGetInfo
const mockGetNetworkInfo = {
version: 190700,
subversion: "/Bitcoin ABC:0.19.7(EB32.0)/",
protocolversion: 70015,
localservices: "0000000000000425",
localrelay: true,
timeoffset: 0,
networkactive: true,
connections: 23,
networks: [{}, {}, {}],
relayfee: 0.00001,
excessutxocharge: 0,
localaddresses: [],
warnings:
"Warning: Unknown block versions being mined! It's possible unknown rules are in effect"
}
module.exports = {
mockGetInfo,
mockGetNetworkInfo
}