Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tipset height in future error #15

Open
simonwo opened this issue Jun 1, 2023 · 0 comments
Open

Tipset height in future error #15

simonwo opened this issue Jun 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@simonwo
Copy link
Contributor

simonwo commented Jun 1, 2023

{"message": "Jun  1 08:21:35 lilypad-vm-0 lilypad[475]: {\"level\":\"error\",\"error\":\"tipset height in future\",\"time\":\"2023-06-01T08:21:35.482244743Z\",\"caller\":\"/Users/simon/lilypad/pkg/bridge/contract.go:170\"}"}

Looks like we sometimes ask for blocks that haven't happened yet.

In this code:
https://github.com/bacalhau-project/lilypad/blob/7b6bfdf5fd9f854c35e8b8cf0af8a773b9da724e/pkg/bridge/contract.go#L167
We should probably be asking for system.Min(currentBlock, r.maxSeenBlock+1) in case currentBlock > r.maxSeenBlock+1?

@simonwo simonwo added the bug Something isn't working label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant