Skip to content

Hardcode pre-merge receipt for mainnet interval 0 #844

Merged
0xfornax merged 4 commits into
masterfrom
hardcode-premerge-receipt
Jun 4, 2025
Merged

Hardcode pre-merge receipt for mainnet interval 0 #844
0xfornax merged 4 commits into
masterfrom
hardcode-premerge-receipt

Conversation

@thomaspanf
Copy link
Copy Markdown
Member

  • Extend ec-interface and ec-manager to support grabbing the chainID
  • Clients are expiring pre-merge receipts, so return a hardcoded RewardsEvent for interval 0, the only pre-merge interval on mainnet.

Interval 0 snapshot

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

all new code in this file should be in a new function

Comment thread bindings/rewards/rewards.go Outdated
// Get the event info for a rewards snapshot using the Atlas getter
func GetRewardsEvent(rp *rocketpool.RocketPool, index uint64, rocketRewardsPoolAddresses []common.Address, opts *bind.CallOpts) (bool, RewardsEvent, error) {
// Check if the client is requesting interval 0 on mainnet, then return the hardcoded RewardsEvent
ok, eventDataInterval_0, err := getMainnetInterval0RewardsEvent(rp, index)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

golang semantics are probably data, ok, err := i think

@0xfornax 0xfornax merged commit 8c5d0c6 into master Jun 4, 2025
5 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.

3 participants