Error message is wrong when block-height it too low when executing script
Open
Nobody has claimed this yet.
Bug
Feedback
- Dominant language
- Go
- Stars
- 209
- Forks
- 87
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 3
Description
Instructions
❌ Invalid argument: could not execute script: data unavailable for block height: the requested height (39290353) is beyond the highest indexed height(57976549)
Problem
the error message compares this agains the latest height not the earliest height
Steps to Reproduce
run any script against a block before the first block in a access/archive node
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the flow scripts execute path and reproduce the command against a block height before the first block in an access or archive node. Trace where the data-unavailable error is formed; done means the message compares the requested height with the earliest indexed height rather than the latest height.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100