Skip to content

Conversation

rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented Jun 3, 2025

If a chainhook predicate goes obsolete, update its starting block height on re-registration.

There is a bug on chainhook which sometimes marks active predicates as inactive, forcing the Metadata API to re-register so it receives blocks again. However, since we weren't updating the re-registration starting block height, we ended up in an infinite loop that made us receive blocks from the last block height seen on boot. This caused the API to fall significantly behind chain tip.

Copy link

github-actions bot commented Jun 3, 2025

Vercel deployment URL: https://token-metadata-pgqyxgdca-hirosystems.vercel.app 🚀

Copy link

@haneytron haneytron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, added 2 non-blocking comments for possible changes if warranted.

@rafaelcr rafaelcr changed the base branch from master to beta June 4, 2025 03:34
@rafaelcr rafaelcr merged commit 929f08e into beta Jun 4, 2025
8 checks passed
@rafaelcr rafaelcr deleted the fix/re-register branch June 4, 2025 03:34
hirosystems-release-bot bot added a commit that referenced this pull request Jun 4, 2025
## [1.2.1-beta.1](v1.2.0...v1.2.1-beta.1) (2025-06-04)

### Bug Fixes

* update chainhook predicate start_block upon re-registration ([#308](#308)) ([929f08e](929f08e))
@hirosystems-release-bot
Copy link
Contributor

🎉 This PR is included in version 1.2.1-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

hirosystems-release-bot bot added a commit that referenced this pull request Jun 16, 2025
## [1.3.0](v1.2.0...v1.3.0) (2025-06-16)

### Features

* add `/import-contract` admin rpc endpoint ([#309](#309)) ([3aef505](3aef505))

### Bug Fixes

* update chainhook predicate start_block upon re-registration ([#308](#308)) ([929f08e](929f08e))
@hirosystems-release-bot
Copy link
Contributor

🎉 This PR is included in version 1.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants