mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
perf(v4): Ported recent SLP validate changes to new v4 route
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
This library contains mocking data for running unit tests on the address route.
|
||||
*/
|
||||
|
||||
'use strict'
|
||||
|
||||
const mockGetInfo = {
|
||||
version: 170200,
|
||||
protocolversion: 70015,
|
||||
walletversion: 160300,
|
||||
balance: 0,
|
||||
blocks: 1266726,
|
||||
timeoffset: 0,
|
||||
connections: 8,
|
||||
proxy: '',
|
||||
difficulty: 1,
|
||||
testnet: true,
|
||||
keypoololdest: 1536331195,
|
||||
keypoolsize: 2000,
|
||||
paytxfee: 0,
|
||||
relayfee: 0.00001,
|
||||
errors: 'Warning: unknown new rules activated (versionbit 28)'
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user