koinos / koinos-p2p

The p2p microservice orchestrates the distribution of blocks and transactions between peers.
MIT License
6 stars 4 forks source link

[FEATURE]: Better handle recently seen transactions #206

Closed sgerbino closed 2 years ago

sgerbino commented 2 years ago

Is there an existing issue for this?

New feature

The P2P microservice should remember recently seen transactions and not attempt to reapply them when hearing about them through the gossip protocol again.

A possible solution is to have some kind of data structure that remembers seen transactions that expire after some amount of time or some amount of blocks.

Anything else?

No response