Use javascript lang on the snippet

This commit is contained in:
Bruno Volpato 2017-12-13 22:23:55 -08:00 committed by GitHub
parent d875019341
commit 6715a51fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);