File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,33 @@ const mnemonics = require('./data/mnemonic-english.json');
1515// Commonly used test mnemonic
1616const phrase = mnemonics [ 0 ] [ 1 ] ;
1717
18+ const ports = {
19+ p2p : 14331 ,
20+ node : 14332 ,
21+ wallet : 14333
22+ } ;
23+
1824const node = new FullNode ( {
1925 network : network . type ,
2026 apiKey : 'bar' ,
2127 walletAuth : true ,
2228 memory : true ,
29+ port : ports . p2p ,
30+ httpPort : ports . node ,
2331 workers : true ,
24- plugins : [ require ( '../lib/wallet/plugin' ) ]
32+ plugins : [ require ( '../lib/wallet/plugin' ) ] ,
33+ env : {
34+ 'HSD_WALLET_HTTP_PORT' : ports . wallet . toString ( )
35+ }
2536} ) ;
2637
2738const nclient = new NodeClient ( {
28- port : network . rpcPort ,
39+ port : ports . node ,
2940 apiKey : 'bar'
3041} ) ;
3142
3243const wclient = new WalletClient ( {
33- port : network . walletPort ,
44+ port : ports . wallet ,
3445 apiKey : 'bar'
3546} ) ;
3647
You can’t perform that action at this time.
0 commit comments