iotaledger / iri

IOTA Reference Implementation
Other
1.15k stars 370 forks source link

Add deleted txs to the cuckoo filter and persist the state #1370

Open GalRogozinski opened 5 years ago

GalRogozinski commented 5 years ago

Description

We want to track pruned confirmed transaction hashes to a cuckoo filter before we delete them. At the end of each pruning cycle we want to persist the cuckoo filter state in the db

Motivation

We want to be able to recognize pruned txs that we receive again via gossip

Requirements

  1. When we prune a transaction we add its hash to the cuckoo filter
  2. We create a new db for cuckoo filter state and update it

Open Questions (optional)

Should we really create a new db instance? I think it will result in better performance and easier debugging

jakubcech commented 5 years ago

Putting this back to backlog until we pick it up again.