diff options
| author | Adam Soltys <[email protected]> | 2018-03-20 17:03:46 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2018-03-20 17:03:46 +0000 |
| commit | 27cba8e4b054b6dde5b399e201d52b77b11a9a8a (patch) | |
| tree | 19e5c2ab5f636a43e7d1e315d328b1f7bfde1f35 /test.js | |
| parent | aca2da56939d6168bf8e02a9d112951abc3da927 (diff) | |
| download | coinos-server-27cba8e4b054b6dde5b399e201d52b77b11a9a8a.tar.gz coinos-server-27cba8e4b054b6dde5b399e201d52b77b11a9a8a.zip | |
refactor config
Diffstat (limited to 'test.js')
| -rw-r--r-- | test.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test.js b/test.js deleted file mode 100644 index ce3bf009..00000000 --- a/test.js +++ /dev/null @@ -1,20 +0,0 @@ -import core from 'bitcoin-core' -import fs from 'fs' -import grpc from 'grpc' - -const bc = new core({ - username: 'adam', - password: 'hk79c7dI8ysAHY42eglqrJLo9A8CoyvWINMAcwuPzhQ=', - network: 'mainnet', -}) - -;(async () => { - const lna = await require('lnrpc')({ server: 'localhost:10001', tls: '/home/adam/.lnd/tls.cert' }) - const maca = fs.readFileSync('/home/adam/.lnd/test.macaroon') - const meta = new grpc.Metadata() - meta.add('macaroon', maca.toString('hex')) - lna.meta = meta - let i = await lna.getInfo({}, meta) - console.log(i) - console.log(await bc.getBalance()) -})() |
