bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

"Monitoring Blocks and Transactions" example not working.

Open SomeoneWeird opened this issue 12 years ago • 7 comments

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)

SomeoneWeird avatar Feb 23 '14 08:02 SomeoneWeird

Got the same error as well

kechan avatar Feb 23 '14 20:02 kechan

Can confirm, the 'bufferput' library may be deprecated.

ghost avatar Feb 24 '14 04:02 ghost

The attached PR should fix this issue.

trapp avatar Feb 24 '14 09:02 trapp

Just linking issue #75 where bufferput is the topic as well.

trapp avatar Feb 24 '14 10:02 trapp

Pulled. Can somebody retest this and see if it is fixed?

ryanxcharles avatar Feb 24 '14 15:02 ryanxcharles

working now

maraoz avatar Feb 24 '14 15:02 maraoz

Great.

ryanxcharles avatar Feb 24 '14 15:02 ryanxcharles