Open luisflma opened 9 years ago
the tx message is only sent by the peer, if a getdata request is made. See the bitcoin wiki: https://en.bitcoin.it/wiki/Protocol_documentation#inv
so after you received the inv message, you need to create an getdata response and only then you'll get the tx or block messages...
Thank you for your answer, I'll try it.
Hi, I can't get transaction's information. In this code, the tx event is never emitted. Connected, ready and inv events are emitted but not tx.
In this file: https://github.com/bitpay/bitcore-p2p/blob/master/lib/peer.js#L218 I have edited the _readMessage function to debug it:
output: