aboutsummaryrefslogtreecommitdiffstats
path: root/bcore.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2018-03-15 22:25:40 -0700
committerAdam Soltys <[email protected]>2018-03-15 22:25:40 -0700
commit112e9ec9b71c1930ca51d52db58acc58ee36088c (patch)
treeb0b74c065b202a97f6ed0316a1e5bb54d77ff2a3 /bcore.js
parent869b33813e72689c053ba8505c8806129ec3c7d5 (diff)
downloadcoinos-server-112e9ec9b71c1930ca51d52db58acc58ee36088c.tar.gz
coinos-server-112e9ec9b71c1930ca51d52db58acc58ee36088c.zip
clean up unused files
Diffstat (limited to 'bcore.js')
-rw-r--r--bcore.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/bcore.js b/bcore.js
deleted file mode 100644
index f33451b2..00000000
--- a/bcore.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import bitcoin from 'bitcoinjs-lib'
-import Bitcoin from 'bitcoin-core'
-import zmq from 'zeromq'
-
-const sock = zmq.socket('sub')
-
-;(async () => {
- let b = new Bitcoin({
- username: 'adam',
- password: 'MPJzfq97',
- port: 18332,
- })
- let res = await b.getBlockCount()
- console.log(res)
-
- sock.connect('tcp://127.0.0.1:18502')
- sock.subscribe('rawtx')
- sock.on('message', (t, m) => {
- let tx = bitcoin.Transaction.fromBuffer(m)
- console.log(tx)
- })
-})()