Update tests to use fclient
This commit is contained in:
parent
15979ef376
commit
88fd2c1f0b
@ -37,7 +37,7 @@ const node = new FullNode({
|
|||||||
'BCOIN_WALLET_HTTP_PORT': ports.wallet.toString()
|
'BCOIN_WALLET_HTTP_PORT': ports.wallet.toString()
|
||||||
}});
|
}});
|
||||||
|
|
||||||
const {NodeClient, WalletClient} = require('bclient');
|
const {NodeClient, WalletClient} = require('@oipwg/fclient');
|
||||||
|
|
||||||
const nclient = new NodeClient({
|
const nclient = new NodeClient({
|
||||||
port: ports.node,
|
port: ports.node,
|
||||||
|
|||||||
@ -21,7 +21,7 @@ const FullNode = require('../lib/node/fullnode');
|
|||||||
const SPVNode = require('../lib/node/spvnode');
|
const SPVNode = require('../lib/node/spvnode');
|
||||||
const Network = require('../lib/protocol/network');
|
const Network = require('../lib/protocol/network');
|
||||||
const network = Network.get('regtest');
|
const network = Network.get('regtest');
|
||||||
const {NodeClient, WalletClient} = require('bclient');
|
const {NodeClient, WalletClient} = require('@oipwg/fclient');
|
||||||
const {forValue, testdir, rimraf} = require('./util/common');
|
const {forValue, testdir, rimraf} = require('./util/common');
|
||||||
|
|
||||||
const ports = {
|
const ports = {
|
||||||
|
|||||||
@ -26,7 +26,7 @@ const node = new FullNode({
|
|||||||
'BCOIN_WALLET_HTTP_PORT': ports.wallet.toString()
|
'BCOIN_WALLET_HTTP_PORT': ports.wallet.toString()
|
||||||
}});
|
}});
|
||||||
|
|
||||||
const {NodeClient} = require('bclient');
|
const {NodeClient} = require('@oipwg/fclient');
|
||||||
|
|
||||||
const nclient = new NodeClient({
|
const nclient = new NodeClient({
|
||||||
port: ports.node,
|
port: ports.node,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const {NodeClient, WalletClient} = require('bclient');
|
const {NodeClient, WalletClient} = require('@oipwg/fclient');
|
||||||
const assert = require('bsert');
|
const assert = require('bsert');
|
||||||
const consensus = require('../lib/protocol/consensus');
|
const consensus = require('../lib/protocol/consensus');
|
||||||
const FullNode = require('../lib/node/fullnode');
|
const FullNode = require('../lib/node/fullnode');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user