kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a stable version at the initial rollout phases.
ISC License
371 stars 118 forks source link

Add Notifications when Transactions are added or removed from mempool #339

Open coderofstuff opened 6 months ago

coderofstuff commented 6 months ago

Is your feature request related to a problem? Please describe. Context: https://discord.com/channels/599153230659846165/755890250643144788/1179732597614575656

Currently the only way to track the mempool is to use GetMempoolEntries continuously which returns all the mempool entries. This is inefficient since we get all the entries as opposed to only what changed since we last checked.

Describe the solution you'd like In preparation for building a scalable mempool visualizer we need a way to find out when transactions are added and removed from the mempool. Having notifications when transactions are added/removed from mempool is a way to go.