-
Notifications
You must be signed in to change notification settings - Fork 62
Return unspent txs in a reorg to the pool #526
Copy link
Copy link
Open
Labels
A-binariesArea: Related to binaries.Area: Related to binaries.A-storageArea: Related to storage.Area: Related to storage.C-proposalCategory: A proposal of some kind, and a request for comments.Category: A proposal of some kind, and a request for comments.E-mediumExperience: Medium difficulty. Experience needed to fix: Intermediate.Experience: Medium difficulty. Experience needed to fix: Intermediate.P-mediumPriority: Medium.Priority: Medium.
Metadata
Metadata
Assignees
Labels
A-binariesArea: Related to binaries.Area: Related to binaries.A-storageArea: Related to storage.Area: Related to storage.C-proposalCategory: A proposal of some kind, and a request for comments.Category: A proposal of some kind, and a request for comments.E-mediumExperience: Medium difficulty. Experience needed to fix: Intermediate.Experience: Medium difficulty. Experience needed to fix: Intermediate.P-mediumPriority: Medium.Priority: Medium.
What
During a reorg for any txs that are in blocks that got reorged, return the txs to the pool.
Why
So we don't lose txs on a reorg.
Where
Database, cuprated binary.
How
When a reorg is called on the database the database should check all tx key images to see if any are not spent and return them if the reorg is successful.