mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 07:56:31 +00:00
Use javascript lang on the snippet
This commit is contained in:
parent
3fc81a9d57
commit
f5bc93b866
@ -93,6 +93,8 @@ $ npm install -g bitcointest
|
||||
After installing `bitcointest`, you can create the `test.js` file with the following content:
|
||||
```
|
||||
$ nano test.js
|
||||
```
|
||||
```javascript
|
||||
const { BitcoinNet, BitcoinGraph } = require('bitcointest');
|
||||
net = new BitcoinNet('/usr/local/bin', '/tmp/bitcointest/', 22001, 22002);
|
||||
graph = new BitcoinGraph(net);
|
||||
|
Loading…
x
Reference in New Issue
Block a user