Page MenuHomePhabricator

[ecash-herald] Stop handling block connected event
ClosedPublic

Authored by bytesofman on Oct 14 2024, 16:18.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC29ca08179cc6: [ecash-herald] Stop handling block connected event
Summary

Now that we build more helpful messages for blocks that are invalidated by avalanche, stop "guessing" that blocks have a problem if they are connected by not finalized after an arbitrary amount of time.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Oct 14 2024, 20:22
Fabien added a subscriber: Fabien.

For the next follow-up: you can remove the memoryCache entry for the block status as well as it's no longer needed

apps/ecash-herald/config.js
7 ↗(On Diff #50082)

I would increase it a bit, like 4 hours so we handle even long time with no block

apps/ecash-herald/src/main.js
16 ↗(On Diff #50082)

You don't need the 2x here

This revision now requires changes to proceed.Oct 14 2024, 20:22
bytesofman marked an inline comment as done.

no need to cache blk_invalidated, remove '2*' factor for ttl

This revision is now accepted and ready to land.Oct 14 2024, 20:55