Awareness of the block rewind situation after a non-graceful shutdown
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- backend-api-design, blockchain
Research direction
No files, tests, or entry points are named. Trace the retry handling for eth_estimateGas and the follow-up eth_call after a non-graceful shutdown, then verify that a block-not-found response during a rewind causes continued retrying rather than a reported transaction failure.
Written by the indexing model from the issue text.
Description
When geth experiences a non-graceful crash, ethconnect will retry the pending transactions. The eth_estimateGas calls will be made during the retries.
After the node recovers, it will perform a rewind to a previous full block.
At this point, ethconnect will be retrying the eth_estimateGas calls, which fails because it's chain repair state. EthConnect then attempts an eth_call request to try to discover the error that caused the failure. Since the eth_call request is made at the original block height, geth will return block not found error and fail the transaction. EthConnect believes it's the actual cause of the tx failure and returns it to the client.
What it should do is detecting that "block not found" is returned and recognize that it's likely a block rewind situation, and continues to retry.
- Dominant language
- Go
- Stars
- 76
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from hyperledger-firefly/ethconnect
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
hyperledger-firefly/ethconnect#223 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
hyperledger-firefly/ethconnect#219 · 6 comments ·
-
error openapiOpen
Difficulty 3/5 1-2 days Newbie friendliness 15/100
hyperledger-firefly/ethconnect#203 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
hyperledger-firefly/ethconnect#202 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
All issues in hyperledger-firefly/ethconnect
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
docker/sbx-releases#737 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
area/manager needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
kyma-project/telemetry-manager#3922 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
grafana/pyroscope-go#274 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
cloudfoundry/cli#3885 ·
Maintainers usually reply within 1 day