367: Check if the statediff is already in progress or completed. #392

Merged
telackey merged 3 commits from telackey/367b into v1.11.6-statediff-v5 2023-06-01 18:21:33 +00:00
Member

Related to https://github.com/cerc-io/go-ethereum/issues/367.

Add two checks:

  1. Only allow a single statediff of a block hash+number at a time.

  2. Do not state diff if that block hash+number already exists in the DB.

INFO [06-01|05:26:11.063] Not writing, statediff in progress.      number=605 hash=0x336e7cb623164e70dca3dc01c3dabf1a5e8af25f7c26db0e00eedc3e9c8c959d
INFO [06-01|05:26:11.083] Not writing, statediff already done.     number=600 hash=0x13399d30c79e8d32d00d6cb4ceb545a0467a61c58474986b6b74651d903a12ff
Related to https://github.com/cerc-io/go-ethereum/issues/367. Add two checks: 1) Only allow a single statediff of a block hash+number at a time. 2) Do not state diff if that block hash+number already exists in the DB. ``` INFO [06-01|05:26:11.063] Not writing, statediff in progress. number=605 hash=0x336e7cb623164e70dca3dc01c3dabf1a5e8af25f7c26db0e00eedc3e9c8c959d INFO [06-01|05:26:11.083] Not writing, statediff already done. number=600 hash=0x13399d30c79e8d32d00d6cb4ceb545a0467a61c58474986b6b74651d903a12ff ```
i-norden approved these changes 2023-06-01 14:06:34 +00:00
i-norden left a comment
Member

LGTM!

LGTM!
dboreham approved these changes 2023-06-01 14:09:28 +00:00
telackey reviewed 2023-06-01 17:47:07 +00:00
telackey reviewed 2023-06-01 17:59:22 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/go-ethereum#392
No description provided.