Skip to content

netsync: retain queued TTLs until blocks connect - #438

Merged
kcalvinalvin merged 1 commit into
utreexo:mainfrom
kcalvinalvin:2026-09-07-retain-utreexo-ttls
Sep 7, 2026
Merged

kcalvinalvin merged 1 commit into
utreexo:mainfrom
kcalvinalvin:2026-09-07-retain-utreexo-ttls

Conversation

@kcalvinalvin

Copy link
Copy Markdown
Contributor

Keep queued TTLs available when a block is rejected so another attempt can use them. Delete the TTLs once the block is in the main chain, even if ProcessBlock returns an index flush error after connection.

Test rejection, a subsequent valid block, and cleanup after an index flush error.

Validation: go test ./netsync ./blockchain

Keep queued TTLs available when a block is rejected so another attempt
can use them. Delete the TTLs once the block is in the main chain, even
if ProcessBlock returns an index flush error after connection.

Test rejection, a subsequent valid block, and cleanup after an index
flush error.

Validation: go test ./netsync ./blockchain
@kcalvinalvin
kcalvinalvin merged commit 1fc097a into utreexo:main Sep 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant