Closed nemo83 closed 7 months ago
Updated most comments, before closing I need to:
Era
in the serialization code. Where can I get such info?Vector
w/ ConcurrentLinkedQueue
it all still works (as I've changed the code removing transactions)Thanks @nemo83 . Please check my era specific comment above.
Is it possible to add an integration test for Tx submission? Something like LocalTxSubmissionClientIT
.
@nemo83 I tried it and I was able to successfully submit and execute my transaction
So, the callback methods in listener are only to notify if the transaction has been successfully pulled by the remote node. right?
Feat N2N TxSubmission
This is the implementation of the Node-to-Node mini protocol TxSubmission.
Worth to mention that I've replaced the initial
HashMap
containing ids and bytes of the txs as I wanted to preserve order to addition (as it actually matters).I've streamed real node mempool via N2C to a local node via N2N TxSubmission and it has been running for a few hours w/o errors or disconnecting.