Use javascript lang on the snippet

This commit is contained in:
Bruno Volpato 2017-12-13 22:23:55 -08:00
parent 3fc81a9d57
commit f5bc93b866

View File

@ -93,6 +93,8 @@ $ npm install -g bitcointest
After installing `bitcointest`, you can create the `test.js` file with the following content: After installing `bitcointest`, you can create the `test.js` file with the following content:
``` ```
$ nano test.js $ nano test.js
```
```javascript
const { BitcoinNet, BitcoinGraph } = require('bitcointest'); const { BitcoinNet, BitcoinGraph } = require('bitcointest');
net = new BitcoinNet('/usr/local/bin', '/tmp/bitcointest/', 22001, 22002); net = new BitcoinNet('/usr/local/bin', '/tmp/bitcointest/', 22001, 22002);
graph = new BitcoinGraph(net); graph = new BitcoinGraph(net);