bitcore
bitcore copied to clipboard
"Monitoring Blocks and Transactions" example not working.
Running a fully synced testnet node locally, running the example code throws this error
➜ /tmp node monitor.js
connecting to 127.0.0.1:18333
/private/tmp/node_modules/bitcore/Connection.js:175
put.word32le(PROTOCOL_VERSION); // version
^
TypeError: Object #<BufferPut> has no method 'word32le'
at Connection.sendVersion (/private/tmp/node_modules/bitcore/Connection.js:175:9)
at Connection.handleConnect (/private/tmp/node_modules/bitcore/Connection.js:74:12)
at Socket.EventEmitter.emit (events.js:117:20)
at Object.afterConnect [as oncomplete] (net.js:886:10)
Got the same error as well
Can confirm, the 'bufferput' library may be deprecated.
The attached PR should fix this issue.
Just linking issue #75 where bufferput is the topic as well.
Pulled. Can somebody retest this and see if it is fixed?
working now
Great.