State reset failure #1576

Open
opened 2025-12-28 17:16:54 +00:00 by sami · 0 comments
Owner

Originally created by @AnnaShaleva on GitHub (Nov 17, 2025).

Current Behavior

neo-go db reset fails with the following error:

anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ ./bin/neo-go db reset -t --height 11074661
2025-11-17T13:26:14.342+0300	INFO	Genesis MaxTraceableBlocks is not set or wrong, using default value	{"Genesis MaxTraceableBlocks": 2102400}
2025-11-17T13:26:14.342+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2025-11-17T13:26:14.342+0300	INFO	Genesis MaxValidUntilBlockIncrement is not set or wrong, using default value	{"Genesis MaxValidUntilBlockIncrement": 5760}
2025-11-17T13:26:14.344+0300	INFO	restoring blockchain	{"version": "0.2.12"}
2025-11-17T13:26:14.580+0300	INFO	initializing state reset	{"target height": 11074661}
2025-11-17T13:26:17.844+0300	INFO	last batch of removed blocks, transactions and AERs is collected	{"batch": 1, "took": "3.264255205s"}
2025-11-17T13:26:17.844+0300	INFO	blocks, transactions ans AERs are reset	{"took": "3.264316031s"}
2025-11-17T13:27:39.313+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 1, "took": "1m21.448284778s"}
2025-11-17T13:28:58.661+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 2, "took": "1m19.300447082s"}
2025-11-17T13:30:13.440+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 3, "took": "1m14.74315445s"}
2025-11-17T13:31:36.732+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 4, "took": "1m23.251195151s"}
2025-11-17T13:32:32.857+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 5, "took": "56.087204791s"}
2025-11-17T13:33:33.856+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 6, "took": "1m0.957283679s"}
2025-11-17T13:34:30.700+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 7, "took": "56.806056987s"}
2025-11-17T13:36:09.934+0300	INFO	last batch of contract storage items is collected	{"batch": 8, "took": "1m39.189205808s"}
2025-11-17T13:36:09.934+0300	INFO	contract storage items are reset	{"took": "9m52.069128859s", "keys": 1557704}
2025-11-17T13:36:10.012+0300	INFO	headers information is reset	{"took": "49.250491ms"}
2025-11-17T13:36:32.689+0300	INFO	reset finished successfully	{"took": "10m18.109001531s"}
failed to reset chain state to height 11074661: failed to strip transfer log / transfer info: failed to decode subsequent transfer: EOF

Expected Behavior

Successful state reset.

Steps to Reproduce

  1. Process 11165920 blocks of T5 (default config) with 5bdb746932.
  2. Try to reset state to 11074661.

Context

Faced while trying to find out the second state changing transaction after https://github.com/nspcc-dev/neo-go/issues/4072.

Regression

Likely not a regression, this setup has RUB disabled.

Your Environment

  • Version of the product used: 5bdb746932 (v0.113.0+patch)
  • The corrupted DB left after state reset is still available locally.
Originally created by @AnnaShaleva on GitHub (Nov 17, 2025). ## Current Behavior `neo-go db reset` fails with the following error: ``` anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ ./bin/neo-go db reset -t --height 11074661 2025-11-17T13:26:14.342+0300 INFO Genesis MaxTraceableBlocks is not set or wrong, using default value {"Genesis MaxTraceableBlocks": 2102400} 2025-11-17T13:26:14.342+0300 INFO MaxValidUntilBlockIncrement is not set or wrong, using default value {"MaxValidUntilBlockIncrement": 5760} 2025-11-17T13:26:14.342+0300 INFO Genesis MaxValidUntilBlockIncrement is not set or wrong, using default value {"Genesis MaxValidUntilBlockIncrement": 5760} 2025-11-17T13:26:14.344+0300 INFO restoring blockchain {"version": "0.2.12"} 2025-11-17T13:26:14.580+0300 INFO initializing state reset {"target height": 11074661} 2025-11-17T13:26:17.844+0300 INFO last batch of removed blocks, transactions and AERs is collected {"batch": 1, "took": "3.264255205s"} 2025-11-17T13:26:17.844+0300 INFO blocks, transactions ans AERs are reset {"took": "3.264316031s"} 2025-11-17T13:27:39.313+0300 INFO intermediate batch of contract storage items and IDs is collected {"batch": 1, "took": "1m21.448284778s"} 2025-11-17T13:28:58.661+0300 INFO intermediate batch of contract storage items and IDs is collected {"batch": 2, "took": "1m19.300447082s"} 2025-11-17T13:30:13.440+0300 INFO intermediate batch of contract storage items and IDs is collected {"batch": 3, "took": "1m14.74315445s"} 2025-11-17T13:31:36.732+0300 INFO intermediate batch of contract storage items and IDs is collected {"batch": 4, "took": "1m23.251195151s"} 2025-11-17T13:32:32.857+0300 INFO intermediate batch of contract storage items and IDs is collected {"batch": 5, "took": "56.087204791s"} 2025-11-17T13:33:33.856+0300 INFO intermediate batch of contract storage items and IDs is collected {"batch": 6, "took": "1m0.957283679s"} 2025-11-17T13:34:30.700+0300 INFO intermediate batch of contract storage items and IDs is collected {"batch": 7, "took": "56.806056987s"} 2025-11-17T13:36:09.934+0300 INFO last batch of contract storage items is collected {"batch": 8, "took": "1m39.189205808s"} 2025-11-17T13:36:09.934+0300 INFO contract storage items are reset {"took": "9m52.069128859s", "keys": 1557704} 2025-11-17T13:36:10.012+0300 INFO headers information is reset {"took": "49.250491ms"} 2025-11-17T13:36:32.689+0300 INFO reset finished successfully {"took": "10m18.109001531s"} failed to reset chain state to height 11074661: failed to strip transfer log / transfer info: failed to decode subsequent transfer: EOF ``` ## Expected Behavior Successful state reset. ## Steps to Reproduce 1. Process 11165920 blocks of T5 (default config) with 5bdb746932c806f45b7a6cf74259add3dcc0e741. 2. Try to reset state to 11074661. ## Context Faced while trying to find out the second state changing transaction after https://github.com/nspcc-dev/neo-go/issues/4072. ## Regression Likely not a regression, this setup has RUB disabled. ## Your Environment * Version of the product used: 5bdb746932c806f45b7a6cf74259add3dcc0e741 (v0.113.0+patch) * The corrupted DB left after state reset is still available locally.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
nspcc-dev/neo-go#1576
No description provided.