core: fix broken state reset

Problem
State reset doesn't work properly on large heights.
Solution
A part of it, I have some more improvements, but need to test it. Current implementation still have problems with recovering from interrupted state reset.

I've tried it with low heights, and it worked for them with these bugs. Running reset on a large height helped to find and fix them. An example of reset from 2512046 to 2506874 (the block next to the one with broken contract):
anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ ./bin/neo-go db reset -m --height 2506874
2022-11-18T13:22:07.061+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2022-11-18T13:22:07.061+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee":<PHONE_NUMBER>00}
2022-11-18T13:22:07.061+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2022-11-18T13:22:07.061+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-18T13:22:07.064+0300	INFO	restoring blockchain	{"version": "0.2.6"}
2022-11-18T13:22:07.448+0300	INFO	initialize state reset	{"target height": 2506874}
2022-11-18T13:22:07.448+0300	INFO	trying to set initial state reset stage
2022-11-18T13:22:09.345+0300	INFO	initial state reset stage is set	{"took": "1.897109791s", "keys": 2}
2022-11-18T13:22:09.345+0300	INFO	trying to reset blocks, transactions and AERs
2022-11-18T13:22:09.418+0300	INFO	blocks, transactions ans AERs are reset	{"took": "73.114298ms", "keys": 8104}
2022-11-18T13:22:09.418+0300	INFO	trying to reset contract storage items and IDs
2022-11-18T13:22:09.422+0300	INFO	removed contract IDs are persisted	{"took": "3.979997ms", "keys": 280}
2022-11-18T13:22:13.712+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 1, "took": "4.289895133s", "keys": 10000}
2022-11-18T13:22:16.504+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 2, "took": "2.791684171s", "keys": 10000}
2022-11-18T13:22:17.463+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 3, "took": "959.226753ms", "keys": 10000}
2022-11-18T13:22:18.709+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 4, "took": "1.2459683s", "keys": 10000}
2022-11-18T13:22:22.465+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 5, "took": "3.756276892s", "keys": 10000}
2022-11-18T13:22:25.960+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 6, "took": "3.494190341s", "keys": 10000}
2022-11-18T13:22:29.652+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 7, "took": "3.692121908s", "keys": 10000}
2022-11-18T13:22:32.902+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 8, "took": "3.250110019s", "keys": 10000}
2022-11-18T13:22:35.559+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 9, "took": "2.656859434s", "keys": 10000}
2022-11-18T13:22:36.977+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 10, "took": "1.418258345s", "keys": 10000}
2022-11-18T13:22:39.072+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 11, "took": "2.095183587s", "keys": 10000}
2022-11-18T13:22:41.556+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 12, "took": "2.484055022s", "keys": 10000}
2022-11-18T13:22:46.827+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 13, "took": "5.270596175s", "keys": 10000}
2022-11-18T13:22:52.012+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 14, "took": "5.184631072s", "keys": 10000}
2022-11-18T13:22:57.318+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 15, "took": "5.306237154s", "keys": 10000}
2022-11-18T13:23:02.166+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 16, "took": "4.847561461s", "keys": 10000}
2022-11-18T13:23:07.043+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 17, "took": "4.877616463s", "keys": 10000}
2022-11-18T13:23:12.229+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 18, "took": "5.186073658s", "keys": 10000}
2022-11-18T13:23:17.248+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 19, "took": "5.018577879s", "keys": 10000}
2022-11-18T13:23:22.221+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 20, "took": "4.97243945s", "keys": 10000}
2022-11-18T13:23:26.835+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 21, "took": "4.61399933s", "keys": 10000}
2022-11-18T13:23:31.589+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 22, "took": "4.754185639s", "keys": 10000}
2022-11-18T13:23:36.718+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 23, "took": "5.129047866s", "keys": 10000}
2022-11-18T13:23:41.829+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 24, "took": "5.111486218s", "keys": 10000}
2022-11-18T13:23:45.106+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 25, "took": "3.276484015s", "keys": 10000}
2022-11-18T13:23:46.476+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 26, "took": "1.369769731s", "keys": 10000}
2022-11-18T13:23:49.296+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 27, "took": "2.820620735s", "keys": 10000}
2022-11-18T13:23:51.722+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 28, "took": "2.425141027s", "keys": 10000}
2022-11-18T13:23:54.592+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 29, "took": "2.870198328s", "keys": 10000}
2022-11-18T13:23:57.236+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 30, "took": "2.643902526s", "keys": 10000}
2022-11-18T13:23:59.943+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 31, "took": "2.706677185s", "keys": 10000}
2022-11-18T13:24:02.622+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 32, "took": "2.679654919s", "keys": 10000}
2022-11-18T13:24:05.523+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 33, "took": "2.90027632s", "keys": 10000}
2022-11-18T13:24:08.205+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 34, "took": "2.682227274s", "keys": 10000}
2022-11-18T13:24:11.001+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 35, "took": "2.795903959s", "keys": 10000}
2022-11-18T13:24:13.752+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 36, "took": "2.751164242s", "keys": 10000}
2022-11-18T13:24:16.501+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 37, "took": "2.749326512s", "keys": 10000}
2022-11-18T13:24:18.347+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 38, "took": "1.84517186s", "keys": 10000}
2022-11-18T13:24:20.433+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 39, "took": "2.085914355s", "keys": 10000}
2022-11-18T13:24:21.668+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 40, "took": "1.235552606s", "keys": 10000}
2022-11-18T13:24:23.124+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 41, "took": "1.455843349s", "keys": 10000}
2022-11-18T13:24:24.988+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 42, "took": "1.864086169s", "keys": 10000}
2022-11-18T13:24:26.775+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 43, "took": "1.786556777s", "keys": 10000}
2022-11-18T13:24:28.176+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 44, "took": "1.400525496s", "keys": 10000}
2022-11-18T13:24:29.597+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 45, "took": "1.421230489s", "keys": 10000}
2022-11-18T13:24:31.321+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 46, "took": "1.723946212s", "keys": 10000}
2022-11-18T13:24:32.078+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 47, "took": "757.286408ms", "keys": 10000}
2022-11-18T13:24:33.117+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 48, "took": "1.039157425s", "keys": 10000}
2022-11-18T13:24:33.600+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 49, "took": "483.021997ms", "keys": 10000}
2022-11-18T13:24:34.140+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 50, "took": "539.966267ms", "keys": 10000}
2022-11-18T13:24:34.668+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 51, "took": "527.107743ms", "keys": 10000}
2022-11-18T13:24:35.395+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 52, "took": "727.834586ms", "keys": 10000}
2022-11-18T13:24:36.254+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 53, "took": "858.46077ms", "keys": 10000}
2022-11-18T13:24:36.881+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 54, "took": "627.103405ms", "keys": 10000}
2022-11-18T13:24:38.846+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 55, "took": "1.964999051s", "keys": 10000}
2022-11-18T13:24:42.287+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 56, "took": "3.441244138s", "keys": 10000}
2022-11-18T13:24:45.595+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 57, "took": "3.307814159s", "keys": 10000}
2022-11-18T13:24:47.713+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 58, "took": "2.118106662s", "keys": 10000}
2022-11-18T13:24:50.005+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 59, "took": "2.291558764s", "keys": 10000}
2022-11-18T13:24:54.497+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 60, "took": "4.492215532s", "keys": 10000}
2022-11-18T13:24:59.375+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 61, "took": "4.877673256s", "keys": 10000}
2022-11-18T13:25:04.509+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 62, "took": "5.13417725s", "keys": 10000}
2022-11-18T13:25:09.517+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 63, "took": "5.00746719s", "keys": 10000}
2022-11-18T13:25:10.999+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 64, "took": "1.481833428s", "keys": 10000}
2022-11-18T13:25:13.743+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 65, "took": "2.743902626s", "keys": 10000}
2022-11-18T13:25:15.658+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 66, "took": "1.915450328s", "keys": 10000}
2022-11-18T13:25:16.974+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 67, "took": "1.315620155s", "keys": 10000}
2022-11-18T13:25:20.539+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 68, "took": "3.564872304s", "keys": 10000}
2022-11-18T13:25:23.263+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 69, "took": "2.724691298s", "keys": 10000}
2022-11-18T13:25:26.716+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 70, "took": "3.452460613s", "keys": 10000}
2022-11-18T13:25:29.862+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 71, "took": "3.146291803s", "keys": 10000}
2022-11-18T13:25:34.108+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 72, "took": "4.246112062s", "keys": 10000}
2022-11-18T13:25:37.827+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 73, "took": "3.717964696s", "keys": 10000}
2022-11-18T13:25:42.757+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 74, "took": "4.930152589s", "keys": 10000}
2022-11-18T13:25:47.549+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 75, "took": "4.791626894s", "keys": 10000}
2022-11-18T13:25:52.591+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 76, "took": "5.041955454s", "keys": 10000}
2022-11-18T13:25:57.457+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 77, "took": "4.866346707s", "keys": 10000}
2022-11-18T13:26:03.008+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 78, "took": "5.551046159s", "keys": 10000}
2022-11-18T13:26:07.631+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 79, "took": "4.623184752s", "keys": 10000}
2022-11-18T13:26:12.904+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 80, "took": "5.272823408s", "keys": 10000}
2022-11-18T13:26:17.763+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 81, "took": "4.858931379s", "keys": 10000}
2022-11-18T13:26:22.589+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 82, "took": "4.825603556s", "keys": 10000}
2022-11-18T13:26:27.000+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 83, "took": "4.410800493s", "keys": 10000}
2022-11-18T13:26:32.040+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 84, "took": "5.040737894s", "keys": 10000}
2022-11-18T13:26:36.483+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 85, "took": "4.44213538s", "keys": 10000}
2022-11-18T13:26:40.771+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 86, "took": "4.288165742s", "keys": 10000}
2022-11-18T13:26:45.297+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 87, "took": "4.526027135s", "keys": 10000}
2022-11-18T13:26:49.813+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 88, "took": "4.516210204s", "keys": 10000}
2022-11-18T13:26:54.361+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 89, "took": "4.548015361s", "keys": 10000}
2022-11-18T13:26:58.824+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 90, "took": "4.46227863s", "keys": 10000}
2022-11-18T13:27:03.279+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 91, "took": "4.455613023s", "keys": 10000}
2022-11-18T13:27:07.703+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 92, "took": "4.423841603s", "keys": 10000}
2022-11-18T13:27:12.041+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 93, "took": "4.337518796s", "keys": 10000}
2022-11-18T13:27:16.261+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 94, "took": "4.220819201s", "keys": 10000}
2022-11-18T13:27:20.664+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 95, "took": "4.402295704s", "keys": 10000}
2022-11-18T13:27:25.191+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 96, "took": "4.527383868s", "keys": 10000}
2022-11-18T13:27:29.374+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 97, "took": "4.183070653s", "keys": 10000}
2022-11-18T13:27:33.648+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 98, "took": "4.273719019s", "keys": 10000}
2022-11-18T13:27:38.305+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 99, "took": "4.656572421s", "keys": 10000}
2022-11-18T13:27:42.807+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 100, "took": "4.501815617s", "keys": 10000}
2022-11-18T13:27:47.255+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 101, "took": "4.448220039s", "keys": 10000}
2022-11-18T13:27:51.774+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 102, "took": "4.519335555s", "keys": 10000}
2022-11-18T13:27:55.956+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 103, "took": "4.182028558s", "keys": 10000}
2022-11-18T13:27:59.264+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 104, "took": "3.307773413s", "keys": 10000}
2022-11-18T13:28:02.579+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 105, "took": "3.314914029s", "keys": 10000}
2022-11-18T13:28:05.791+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 106, "took": "3.211871269s", "keys": 10000}
2022-11-18T13:28:09.024+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 107, "took": "3.232893645s", "keys": 10000}
2022-11-18T13:28:12.115+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 108, "took": "3.090699897s", "keys": 10000}
2022-11-18T13:28:15.185+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 109, "took": "3.070606835s", "keys": 10000}
2022-11-18T13:28:18.562+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 110, "took": "3.376691297s", "keys": 10000}
2022-11-18T13:28:21.697+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 111, "took": "3.134767291s", "keys": 10000}
2022-11-18T13:28:24.941+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 112, "took": "3.243689953s", "keys": 10000}
2022-11-18T13:28:28.059+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 113, "took": "3.118473422s", "keys": 10000}
2022-11-18T13:28:31.164+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 114, "took": "3.104692802s", "keys": 10000}
2022-11-18T13:28:34.338+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 115, "took": "3.174033305s", "keys": 10000}
2022-11-18T13:28:37.835+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 116, "took": "3.496724209s", "keys": 10000}
2022-11-18T13:28:40.926+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 117, "took": "3.091333911s", "keys": 10000}
2022-11-18T13:28:44.236+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 118, "took": "3.310133022s", "keys": 10000}
2022-11-18T13:28:47.384+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 119, "took": "3.147599471s", "keys": 10000}
2022-11-18T13:28:50.554+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 120, "took": "3.169506627s", "keys": 10000}
2022-11-18T13:28:53.731+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 121, "took": "3.17715235s", "keys": 10000}
2022-11-18T13:28:57.111+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 122, "took": "3.380330536s", "keys": 10000}
2022-11-18T13:29:00.190+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 123, "took": "3.07833974s", "keys": 10000}
2022-11-18T13:29:03.540+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 124, "took": "3.350732253s", "keys": 10000}
2022-11-18T13:29:07.290+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 125, "took": "3.749788777s", "keys": 10000}
2022-11-18T13:29:10.561+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 126, "took": "3.271310522s", "keys": 10000}
2022-11-18T13:29:13.924+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 127, "took": "3.362307565s", "keys": 10000}
2022-11-18T13:29:17.008+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 128, "took": "3.08409632s", "keys": 10000}
2022-11-18T13:29:20.600+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 129, "took": "3.592478281s", "keys": 10000}
2022-11-18T13:29:23.968+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 130, "took": "3.367718777s", "keys": 10000}
2022-11-18T13:29:27.540+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 131, "took": "3.571748039s", "keys": 10000}
2022-11-18T13:29:30.590+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 132, "took": "3.049865982s", "keys": 10000}
2022-11-18T13:29:33.934+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 133, "took": "3.344031724s", "keys": 10000}
2022-11-18T13:29:37.016+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 134, "took": "3.082383533s", "keys": 10000}
2022-11-18T13:29:40.169+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 135, "took": "3.152944464s", "keys": 10000}
2022-11-18T13:29:43.258+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 136, "took": "3.088447169s", "keys": 10000}
2022-11-18T13:29:46.518+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 137, "took": "3.259929685s", "keys": 10000}
2022-11-18T13:29:49.973+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 138, "took": "3.454841426s", "keys": 10000}
2022-11-18T13:29:53.268+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 139, "took": "3.295566698s", "keys": 10000}
2022-11-18T13:29:56.590+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 140, "took": "3.321195424s", "keys": 10000}
2022-11-18T13:29:59.622+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 141, "took": "3.032408723s", "keys": 10000}
2022-11-18T13:30:03.188+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 142, "took": "3.566282089s", "keys": 10000}
2022-11-18T13:30:06.409+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 143, "took": "3.220424368s", "keys": 10000}
2022-11-18T13:30:09.540+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 144, "took": "3.1311203s", "keys": 10000}
2022-11-18T13:30:12.764+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 145, "took": "3.224098648s", "keys": 10000}
2022-11-18T13:30:16.428+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 146, "took": "3.663858919s", "keys": 10000}
2022-11-18T13:30:19.646+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 147, "took": "3.217676265s", "keys": 10000}
2022-11-18T13:30:23.000+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 148, "took": "3.354283224s", "keys": 10000}
2022-11-18T13:30:26.371+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 149, "took": "3.370647275s", "keys": 10000}
2022-11-18T13:30:29.974+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 150, "took": "3.602551712s", "keys": 10000}
2022-11-18T13:30:33.242+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 151, "took": "3.268076936s", "keys": 10000}
2022-11-18T13:30:36.728+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 152, "took": "3.486161782s", "keys": 10000}
2022-11-18T13:30:39.676+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 153, "took": "2.947605668s", "keys": 10000}
2022-11-18T13:30:42.244+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 154, "took": "2.567929873s", "keys": 10000}
2022-11-18T13:30:45.276+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 155, "took": "3.032639806s", "keys": 10000}
2022-11-18T13:30:48.288+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 156, "took": "3.011954573s", "keys": 10000}
2022-11-18T13:30:51.659+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 157, "took": "3.371206922s", "keys": 10000}
2022-11-18T13:30:54.818+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 158, "took": "3.158591784s", "keys": 10000}
2022-11-18T13:30:58.270+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 159, "took": "3.451698223s", "keys": 10000}
2022-11-18T13:31:01.491+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 160, "took": "3.221230641s", "keys": 10000}
2022-11-18T13:31:05.031+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 161, "took": "3.539393526s", "keys": 10000}
2022-11-18T13:31:08.278+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 162, "took": "3.247793464s", "keys": 10000}
2022-11-18T13:31:11.491+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 163, "took": "3.212733393s", "keys": 10000}
2022-11-18T13:31:14.713+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 164, "took": "3.221294393s", "keys": 10000}
2022-11-18T13:31:18.048+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 165, "took": "3.335723181s", "keys": 10000}
2022-11-18T13:31:20.758+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 166, "took": "2.709355329s", "keys": 10000}
2022-11-18T13:31:23.994+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 167, "took": "3.235770667s", "keys": 10000}
2022-11-18T13:31:26.969+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 168, "took": "2.97502811s", "keys": 10000}
2022-11-18T13:31:30.324+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 169, "took": "3.3551937s", "keys": 10000}
2022-11-18T13:31:33.178+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 170, "took": "2.853752187s", "keys": 10000}
2022-11-18T13:31:36.676+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 171, "took": "3.498275231s", "keys": 10000}
2022-11-18T13:31:40.136+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 172, "took": "3.459770006s", "keys": 10000}
2022-11-18T13:31:43.573+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 173, "took": "3.437533457s", "keys": 10000}
2022-11-18T13:31:47.114+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 174, "took": "3.540869451s", "keys": 10000}
2022-11-18T13:31:50.625+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 175, "took": "3.510755283s", "keys": 10000}
2022-11-18T13:31:53.986+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 176, "took": "3.361076841s", "keys": 10000}
2022-11-18T13:31:57.451+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 177, "took": "3.464291933s", "keys": 10000}
2022-11-18T13:32:00.679+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 178, "took": "3.228022069s", "keys": 10000}
2022-11-18T13:32:03.934+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 179, "took": "3.255572166s", "keys": 10000}
2022-11-18T13:32:07.346+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 180, "took": "3.412019932s", "keys": 10000}
2022-11-18T13:32:10.877+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 181, "took": "3.530485169s", "keys": 10000}
2022-11-18T13:32:14.676+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 182, "took": "3.799538146s", "keys": 10000}
2022-11-18T13:32:18.234+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 183, "took": "3.557447709s", "keys": 10000}
2022-11-18T13:32:21.644+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 184, "took": "3.410599563s", "keys": 10000}
2022-11-18T13:32:25.474+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 185, "took": "3.829177655s", "keys": 10000}
2022-11-18T13:32:29.217+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 186, "took": "3.743206652s", "keys": 10000}
2022-11-18T13:32:32.479+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 187, "took": "3.262125635s", "keys": 10000}
2022-11-18T13:32:35.957+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 188, "took": "3.477805188s", "keys": 10000}
2022-11-18T13:32:39.655+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 189, "took": "3.697814127s", "keys": 10000}
2022-11-18T13:32:42.597+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 190, "took": "2.942035665s", "keys": 10000}
2022-11-18T13:32:45.946+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 191, "took": "3.34929218s", "keys": 10000}
2022-11-18T13:32:49.439+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 192, "took": "3.49260591s", "keys": 10000}
2022-11-18T13:32:53.060+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 193, "took": "3.620634943s", "keys": 10000}
2022-11-18T13:32:56.604+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 194, "took": "3.544108055s", "keys": 10000}
2022-11-18T13:33:00.189+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 195, "took": "3.584608042s", "keys": 10000}
2022-11-18T13:33:03.463+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 196, "took": "3.274596163s", "keys": 10000}
2022-11-18T13:33:06.654+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 197, "took": "3.190620417s", "keys": 10000}
2022-11-18T13:33:10.217+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 198, "took": "3.563176613s", "keys": 10000}
2022-11-18T13:33:13.644+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 199, "took": "3.426838357s", "keys": 10000}
2022-11-18T13:33:16.869+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 200, "took": "3.225259176s", "keys": 10000}
2022-11-18T13:33:20.479+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 201, "took": "3.609527947s", "keys": 10000}
2022-11-18T13:33:23.807+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 202, "took": "3.328391585s", "keys": 10000}
2022-11-18T13:33:27.081+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 203, "took": "3.273912052s", "keys": 10000}
2022-11-18T13:33:30.283+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 204, "took": "3.202010193s", "keys": 10000}
2022-11-18T13:33:33.886+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 205, "took": "3.602883007s", "keys": 10000}
2022-11-18T13:33:36.966+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 206, "took": "3.079363374s", "keys": 10000}
2022-11-18T13:33:40.050+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 207, "took": "3.084898715s", "keys": 10000}
2022-11-18T13:33:43.370+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 208, "took": "3.319879385s", "keys": 10000}
2022-11-18T13:33:46.512+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 209, "took": "3.141562134s", "keys": 10000}
2022-11-18T13:33:50.295+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 210, "took": "3.783402809s", "keys": 10000}
2022-11-18T13:33:54.017+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 211, "took": "3.721064611s", "keys": 10000}
2022-11-18T13:33:57.223+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 212, "took": "3.206409381s", "keys": 10000}
2022-11-18T13:34:00.714+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 213, "took": "3.490677526s", "keys": 10000}
2022-11-18T13:34:04.134+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 214, "took": "3.420727941s", "keys": 10000}
2022-11-18T13:34:07.875+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 215, "took": "3.740083822s", "keys": 10000}
2022-11-18T13:34:11.161+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 216, "took": "3.285890859s", "keys": 10000}
2022-11-18T13:34:14.441+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 217, "took": "3.280024967s", "keys": 10000}
2022-11-18T13:34:17.863+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 218, "took": "3.422482451s", "keys": 10000}
2022-11-18T13:34:21.496+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 219, "took": "3.63309202s", "keys": 10000}
2022-11-18T13:34:25.064+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 220, "took": "3.567871668s", "keys": 10000}
2022-11-18T13:34:28.350+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 221, "took": "3.285951029s", "keys": 10000}
2022-11-18T13:34:31.616+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 222, "took": "3.265742405s", "keys": 10000}
2022-11-18T13:34:34.948+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 223, "took": "3.331759113s", "keys": 10000}
2022-11-18T13:34:38.444+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 224, "took": "3.496104258s", "keys": 10000}
2022-11-18T13:34:41.826+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 225, "took": "3.381811191s", "keys": 10000}
2022-11-18T13:34:45.329+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 226, "took": "3.503172602s", "keys": 10000}
2022-11-18T13:34:48.821+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 227, "took": "3.491602167s", "keys": 10000}
2022-11-18T13:34:52.083+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 228, "took": "3.262689017s", "keys": 10000}
2022-11-18T13:34:55.204+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 229, "took": "3.120650848s", "keys": 10000}
2022-11-18T13:34:58.583+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 230, "took": "3.378672567s", "keys": 10000}
2022-11-18T13:35:02.138+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 231, "took": "3.554789298s", "keys": 10000}
2022-11-18T13:35:05.912+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 232, "took": "3.774482071s", "keys": 10000}
2022-11-18T13:35:09.248+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 233, "took": "3.336043082s", "keys": 10000}
2022-11-18T13:35:13.130+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 234, "took": "3.881644719s", "keys": 10000}
2022-11-18T13:35:16.371+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 235, "took": "3.24086667s", "keys": 10000}
2022-11-18T13:35:19.766+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 236, "took": "3.394792198s", "keys": 10000}
2022-11-18T13:35:23.194+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 237, "took": "3.428175818s", "keys": 10000}
2022-11-18T13:35:26.753+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 238, "took": "3.559129911s", "keys": 10000}
2022-11-18T13:35:30.031+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 239, "took": "3.278415393s", "keys": 10000}
2022-11-18T13:35:33.713+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 240, "took": "3.681476567s", "keys": 10000}
2022-11-18T13:35:37.132+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 241, "took": "3.419399047s", "keys": 10000}
2022-11-18T13:35:40.072+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 242, "took": "2.939948113s", "keys": 10000}
2022-11-18T13:35:43.457+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 243, "took": "3.384319313s", "keys": 10000}
2022-11-18T13:35:47.092+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 244, "took": "3.6349474s", "keys": 10000}
2022-11-18T13:35:50.127+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 245, "took": "3.034952487s", "keys": 10000}
2022-11-18T13:35:53.636+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 246, "took": "3.509185619s", "keys": 10000}
2022-11-18T13:35:57.112+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 247, "took": "3.476365277s", "keys": 10000}
2022-11-18T13:36:00.428+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 248, "took": "3.316067933s", "keys": 10000}
2022-11-18T13:36:04.136+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 249, "took": "3.707159334s", "keys": 10000}
2022-11-18T13:36:07.516+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 250, "took": "3.38005269s", "keys": 10000}
2022-11-18T13:36:11.107+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 251, "took": "3.590950843s", "keys": 10000}
2022-11-18T13:36:14.560+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 252, "took": "3.453101293s", "keys": 10000}
2022-11-18T13:36:17.773+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 253, "took": "3.212754741s", "keys": 10000}
2022-11-18T13:36:21.120+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 254, "took": "3.346952722s", "keys": 10000}
2022-11-18T13:36:24.660+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 255, "took": "3.540144194s", "keys": 10000}
2022-11-18T13:36:27.648+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 256, "took": "2.987621289s", "keys": 10000}
2022-11-18T13:36:31.018+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 257, "took": "3.370827179s", "keys": 10000}
2022-11-18T13:36:34.326+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 258, "took": "3.307871169s", "keys": 10000}
2022-11-18T13:36:37.316+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 259, "took": "2.989412219s", "keys": 10000}
2022-11-18T13:36:40.406+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 260, "took": "3.090435085s", "keys": 10000}
2022-11-18T13:36:43.823+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 261, "took": "3.417055939s", "keys": 10000}
2022-11-18T13:36:47.596+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 262, "took": "3.772062516s", "keys": 10000}
2022-11-18T13:36:51.102+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 263, "took": "3.506023484s", "keys": 10000}
2022-11-18T13:36:54.782+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 264, "took": "3.68042021s", "keys": 10000}
2022-11-18T13:36:57.788+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 265, "took": "3.005571952s", "keys": 10000}
2022-11-18T13:37:01.397+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 266, "took": "3.609331159s", "keys": 10000}
2022-11-18T13:37:04.790+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 267, "took": "3.39280076s", "keys": 10000}
2022-11-18T13:37:07.946+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 268, "took": "3.156208265s", "keys": 10000}
2022-11-18T13:37:11.486+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 269, "took": "3.53983319s", "keys": 10000}
2022-11-18T13:37:14.823+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 270, "took": "3.336617465s", "keys": 10000}
2022-11-18T13:37:18.191+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 271, "took": "3.368466236s", "keys": 10000}
2022-11-18T13:37:21.499+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 272, "took": "3.30800501s", "keys": 10000}
2022-11-18T13:37:25.127+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 273, "took": "3.628093257s", "keys": 10000}
2022-11-18T13:37:28.885+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 274, "took": "3.757021121s", "keys": 10000}
2022-11-18T13:37:32.101+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 275, "took": "3.216187183s", "keys": 10000}
2022-11-18T13:37:35.609+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 276, "took": "3.508150561s", "keys": 10000}
2022-11-18T13:37:39.063+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 277, "took": "3.453618832s", "keys": 10000}
2022-11-18T13:37:42.438+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 278, "took": "3.374893051s", "keys": 10000}
2022-11-18T13:37:45.424+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 279, "took": "2.986561766s", "keys": 10000}
2022-11-18T13:37:48.834+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 280, "took": "3.409450955s", "keys": 10000}
2022-11-18T13:37:52.465+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 281, "took": "3.631539014s", "keys": 10000}
2022-11-18T13:37:55.876+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 282, "took": "3.410670252s", "keys": 10000}
2022-11-18T13:37:59.141+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 283, "took": "3.265110019s", "keys": 10000}
2022-11-18T13:38:02.686+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 284, "took": "3.54441311s", "keys": 10000}
2022-11-18T13:38:05.971+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 285, "took": "3.285148138s", "keys": 10000}
2022-11-18T13:38:09.187+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 286, "took": "3.216594506s", "keys": 10000}
2022-11-18T13:38:12.605+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 287, "took": "3.417519751s", "keys": 10000}
2022-11-18T13:38:16.091+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 288, "took": "3.486283715s", "keys": 10000}
2022-11-18T13:38:19.747+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 289, "took": "3.655979082s", "keys": 10000}
2022-11-18T13:38:23.230+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 290, "took": "3.482754876s", "keys": 10000}
2022-11-18T13:38:26.843+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 291, "took": "3.612418409s", "keys": 10000}
2022-11-18T13:38:30.794+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 292, "took": "3.951395207s", "keys": 10000}
2022-11-18T13:38:34.612+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 293, "took": "3.81743287s", "keys": 10000}
2022-11-18T13:38:38.658+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 294, "took": "4.046331159s", "keys": 10000}
2022-11-18T13:38:42.289+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 295, "took": "3.63063663s", "keys": 10000}
2022-11-18T13:38:45.876+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 296, "took": "3.58758497s", "keys": 10000}
2022-11-18T13:38:49.333+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 297, "took": "3.456999532s", "keys": 10000}
2022-11-18T13:38:52.926+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 298, "took": "3.592849374s", "keys": 10000}
2022-11-18T13:38:56.096+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 299, "took": "3.169535577s", "keys": 10000}
2022-11-18T13:38:59.453+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 300, "took": "3.357596226s", "keys": 10000}
2022-11-18T13:39:03.104+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 301, "took": "3.650620788s", "keys": 10000}
2022-11-18T13:39:06.284+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 302, "took": "3.179498002s", "keys": 10000}
2022-11-18T13:39:09.480+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 303, "took": "3.196460653s", "keys": 10000}
2022-11-18T13:39:12.995+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 304, "took": "3.515202251s", "keys": 10000}
2022-11-18T13:39:16.445+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 305, "took": "3.449770175s", "keys": 10000}
2022-11-18T13:39:19.491+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 306, "took": "3.045817011s", "keys": 10000}
2022-11-18T13:39:23.183+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 307, "took": "3.691509643s", "keys": 10000}
2022-11-18T13:39:26.423+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 308, "took": "3.240659776s", "keys": 10000}
2022-11-18T13:39:30.021+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 309, "took": "3.59753172s", "keys": 10000}
2022-11-18T13:39:33.414+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 310, "took": "3.393393455s", "keys": 10000}
2022-11-18T13:39:37.277+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 311, "took": "3.862795629s", "keys": 10000}
2022-11-18T13:39:40.320+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 312, "took": "3.043062851s", "keys": 10000}
2022-11-18T13:39:43.760+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 313, "took": "3.439908986s", "keys": 10000}
2022-11-18T13:39:46.863+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 314, "took": "3.103044238s", "keys": 10000}
2022-11-18T13:39:50.182+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 315, "took": "3.318487479s", "keys": 10000}
2022-11-18T13:39:53.804+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 316, "took": "3.622632645s", "keys": 10000}
2022-11-18T13:39:56.792+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 317, "took": "2.987636187s", "keys": 10000}
2022-11-18T13:40:00.479+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 318, "took": "3.686688284s", "keys": 10000}
2022-11-18T13:40:04.051+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 319, "took": "3.571542718s", "keys": 10000}
2022-11-18T13:40:07.358+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 320, "took": "3.307008374s", "keys": 10000}
2022-11-18T13:40:10.584+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 321, "took": "3.226726786s", "keys": 10000}
2022-11-18T13:40:13.835+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 322, "took": "3.25086013s", "keys": 10000}
2022-11-18T13:40:17.291+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 323, "took": "3.455253224s", "keys": 10000}
2022-11-18T13:40:20.546+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 324, "took": "3.255128834s", "keys": 10000}
2022-11-18T13:40:23.875+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 325, "took": "3.329380873s", "keys": 10000}
2022-11-18T13:40:27.373+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 326, "took": "3.497664858s", "keys": 10000}
2022-11-18T13:40:30.610+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 327, "took": "3.237453534s", "keys": 10000}
2022-11-18T13:40:32.284+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batches persisted": 328, "took": "1.67403472s", "keys": 10000}
2022-11-18T13:40:32.391+0300	WARN	failed to deserialize contract; ID for this contract won't be stored in the DB	{"hash": "6f1837723768f27a6f6a14452977e3e0e264f2cc", "error": "too big: many elements"}
2022-11-18T13:40:32.429+0300	INFO	last batch of contract storage items and IDs is persisted	{"batches persisted": 329, "took": "144.49029ms", "keys": 900}
2022-11-18T13:40:32.429+0300	INFO	contract storage items and IDs are reset	{"took": "18m23.010695634s", "overall contract storage items count": 3280633, "overall contract IDs count": 266}
2022-11-18T13:40:32.431+0300	INFO	trying to reset headers information
2022-11-18T13:40:32.438+0300	INFO	headers information is reset	{"took": "6.350201ms", "keys": 7}
2022-11-18T13:40:32.438+0300	INFO	trying to reset state root information and NEP transfers
2022-11-18T13:40:41.582+0300	INFO	state root information and NEP transfers are reset	{"took": "9.144576361s", "keys": 70173}
2022-11-18T13:40:41.582+0300	INFO	trying to remove stale storage items
2022-11-18T13:40:44.521+0300	INFO	stale storage items are reset	{"took": "2.93841169s", "keys": 3287907}
2022-11-18T13:40:44.521+0300	INFO	trying to remove state reset point
2022-11-18T13:40:44.525+0300	INFO	stale reset point is removed	{"took": "4.033393ms", "keys": 2}
2022-11-18T13:40:44.525+0300	INFO	trying to reset RAM blockchain state
2022-11-18T13:40:44.554+0300	INFO	RAM blockchain state is reset	{"took": "29.517361ms"}
2022-11-18T13:40:44.554+0300	INFO	reset finished successfully	{"took": "18m37.106238501s"}

2022-11-18T15:10:49.718+0300    INFO    reset finished successfully     {"took": "22m20.385204162s"}

It works, but it's a bit too chatty now. Especially for things like initial state reset stage is set or RAM blockchain state is reset (no one cares, really).

Depends on #2814. I've also tested cases when state reset was harshly interrupted after subsequent persist stage (for each stage) and recovered after that, so a couple of bugs were discovered and fixed.

Rebased onto current master, doesn't depend on #2814 anymore.

Here are the results for 46937cb9d7421cdd75f34b6f97350c2ffbe73c09, I didn't attach them to the commit message as they are quite big.
Patch with separate persist thread:
Reset from 2512046 to 1:
./bin/neo-go db reset -m --debug --height 1
2022-11-22T20:17:41.208+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2022-11-22T20:17:41.208+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee":<PHONE_NUMBER>00}
2022-11-22T20:17:41.209+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2022-11-22T20:17:41.209+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-22T20:17:41.212+0300	INFO	restoring blockchain	{"version": "0.2.6"}
2022-11-22T20:17:41.620+0300	INFO	initializing state reset	{"target height": 1}
2022-11-22T20:17:41.621+0300	DEBUG	trying to reset blocks, transactions and AERs
2022-11-22T20:18:10.571+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 1, "took": "28.950719291s"}
2022-11-22T20:18:11.662+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 1, "took": "1.091182599s", "keys": 210974}
2022-11-22T20:18:27.847+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 2, "took": "17.275584813s"}
2022-11-22T20:18:29.610+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 2, "took": "1.763542956s", "keys": 241204}
2022-11-22T20:18:51.988+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 3, "took": "24.141453566s"}
2022-11-22T20:18:54.760+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 3, "took": "2.771404377s", "keys": 250592}
2022-11-22T20:19:17.235+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 4, "took": "25.246452003s"}
2022-11-22T20:19:20.530+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 4, "took": "3.295493754s", "keys": 321897}
2022-11-22T20:19:45.451+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 5, "took": "28.216360629s"}
2022-11-22T20:19:49.017+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 5, "took": "3.566019702s", "keys": 334820}
2022-11-22T20:20:14.044+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 6, "took": "28.59232853s"}
2022-11-22T20:20:17.359+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 6, "took": "3.315182388s", "keys": 317131}
2022-11-22T20:20:42.944+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 7, "took": "28.90050607s"}
2022-11-22T20:20:45.999+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 7, "took": "3.055076161s", "keys": 355832}
2022-11-22T20:21:04.874+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 8, "took": "21.929574014s"}
2022-11-22T20:21:07.378+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 8, "took": "2.504372778s", "keys": 357693}
2022-11-22T20:21:20.334+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 9, "took": "15.460607485s"}
2022-11-22T20:21:22.854+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 9, "took": "2.519422361s", "keys": 393354}
2022-11-22T20:21:34.330+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 10, "took": "13.995351864s"}
2022-11-22T20:21:36.902+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 10, "took": "2.572286353s", "keys": 366492}
2022-11-22T20:21:47.898+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 11, "took": "13.568183471s"}
2022-11-22T20:21:50.384+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 11, "took": "2.486014652s", "keys": 326030}
2022-11-22T20:22:01.007+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 12, "took": "13.109034007s"}
2022-11-22T20:22:03.347+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 12, "took": "2.340028907s", "keys": 299883}
2022-11-22T20:22:08.777+0300	INFO	last batch of removed blocks, transactions and AERs is collected	{"batch": 13, "took": "7.770350243s"}
2022-11-22T20:22:08.778+0300	INFO	blocks, transactions ans AERs are reset	{"took": "4m27.157158303s"}
2022-11-22T20:22:08.778+0300	DEBUG	trying to reset contract storage items and IDs
2022-11-22T20:22:08.813+0300	INFO	removed contract IDs are collected	{"took": "34.911756ms"}
2022-11-22T20:22:09.969+0300	DEBUG	last batch of removed blocks, transactions and AERs is persisted	{"batch": 13, "took": "1.155599881s", "keys": 190399}
2022-11-22T20:22:09.979+0300	DEBUG	removed contract IDs are persisted	{"took": "1.16545448s", "keys": 280}
2022-11-22T20:22:10.016+0300	INFO	last batch of contract storage items and IDs is collected	{"batch": 1, "took": "1.203165133s"}
2022-11-22T20:22:10.016+0300	INFO	contract storage items and IDs are reset	{"took": "1.238145743s", "keys": 26, "ids": 9}
2022-11-22T20:22:10.017+0300	DEBUG	trying to reset headers information
2022-11-22T20:22:10.021+0300	DEBUG	last batch of contract storage items and IDs is persisted	{"batch": 1, "took": "4.768382ms", "keys": 36}
2022-11-22T20:22:12.180+0300	INFO	headers information is reset	{"took": "2.1636206s"}
2022-11-22T20:22:12.180+0300	DEBUG	trying to reset state root information and NEP transfers
2022-11-22T20:22:17.362+0300	INFO	state root information and NEP transfers are reset	{"took": "5.181547547s"}
2022-11-22T20:22:19.836+0300	DEBUG	headers information is persisted	{"took": "2.474427178s", "keys": 2513305}
2022-11-22T20:22:19.836+0300	DEBUG	trying to remove stale storage items
2022-11-22T20:22:23.414+0300	INFO	stale storage items are reset	{"took": "3.577752136s", "keys": 3287907}
2022-11-22T20:22:23.414+0300	DEBUG	trying to remove state reset point
2022-11-22T20:22:23.416+0300	INFO	state reset point is removed	{"took": "1.996967ms"}
2022-11-22T20:22:31.377+0300	DEBUG	state root information and NEP transfers are persisted	{"took": "7.961379989s", "keys": 2725424}
2022-11-22T20:22:31.387+0300	INFO	state reset point information is persisted	{"took": "7.97130126s", "keys": 2}
2022-11-22T20:22:31.387+0300	INFO	reset finished successfully	{"took": "4m49.766802768s"}

Reset from 2512046 to 1M:
./bin/neo-go db reset -m --debug --height 1000000
2022-11-22T20:30:55.946+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2022-11-22T20:30:55.946+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee":<PHONE_NUMBER>00}
2022-11-22T20:30:55.946+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2022-11-22T20:30:55.946+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-22T20:30:55.948+0300	INFO	restoring blockchain	{"version": "0.2.6"}
2022-11-22T20:30:56.342+0300	INFO	initializing state reset	{"target height": 1000000}
2022-11-22T20:30:56.342+0300	DEBUG	trying to reset blocks, transactions and AERs
2022-11-22T20:31:25.496+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 1, "took": "29.154268168s"}
2022-11-22T20:31:27.017+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 1, "took": "1.520675539s", "keys": 317131}
2022-11-22T20:31:43.036+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 2, "took": "17.539056203s"}
2022-11-22T20:31:45.069+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 2, "took": "2.033155939s", "keys": 355834}
2022-11-22T20:32:05.219+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 3, "took": "22.183081669s"}
2022-11-22T20:32:08.262+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 3, "took": "3.043631739s", "keys": 357689}
2022-11-22T20:32:27.834+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 4, "took": "22.615485959s"}
2022-11-22T20:32:31.099+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 4, "took": "3.264626198s", "keys": 393356}
2022-11-22T20:32:51.312+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 5, "took": "23.477663763s"}
2022-11-22T20:32:54.717+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 5, "took": "3.405339912s", "keys": 366492}
2022-11-22T20:33:16.799+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 6, "took": "25.486938435s"}
2022-11-22T20:33:20.569+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 6, "took": "3.76976579s", "keys": 326030}
2022-11-22T20:33:42.941+0300	INFO	intermediate batch of removed blocks, transactions and AERs is collected	{"batch": 7, "took": "26.142304368s"}
2022-11-22T20:33:46.251+0300	DEBUG	intermediate batch of removed blocks, transactions and AERs is persisted	{"batch": 7, "took": "3.309451073s", "keys": 299883}
2022-11-22T20:33:57.994+0300	INFO	last batch of removed blocks, transactions and AERs is collected	{"batch": 8, "took": "15.052638624s"}
2022-11-22T20:33:57.994+0300	INFO	blocks, transactions ans AERs are reset	{"took": "3m1.651951682s"}
2022-11-22T20:33:57.995+0300	DEBUG	trying to reset contract storage items and IDs
2022-11-22T20:33:58.015+0300	INFO	removed contract IDs are collected	{"took": "20.483123ms"}
2022-11-22T20:34:00.083+0300	DEBUG	last batch of removed blocks, transactions and AERs is persisted	{"batch": 8, "took": "2.067986039s", "keys": 190400}
2022-11-22T20:34:00.101+0300	DEBUG	removed contract IDs are persisted	{"took": "2.086128749s", "keys": 280}
2022-11-22T20:35:06.098+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 1, "took": "1m8.083193905s"}
2022-11-22T20:35:06.441+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 1, "took": "342.70885ms", "keys": 200001}
2022-11-22T20:36:08.873+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 2, "took": "1m2.774468383s"}
2022-11-22T20:36:09.262+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 2, "took": "389.483956ms", "keys": 200000}
2022-11-22T20:37:13.713+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 3, "took": "1m4.840359438s"}
2022-11-22T20:37:14.117+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 3, "took": "403.724955ms", "keys": 200000}
2022-11-22T20:38:19.397+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 4, "took": "1m5.684348425s"}
2022-11-22T20:38:19.798+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 4, "took": "400.485849ms", "keys": 200000}
2022-11-22T20:39:23.024+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 5, "took": "1m3.626765637s"}
2022-11-22T20:39:23.411+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 5, "took": "386.241934ms", "keys": 200000}
2022-11-22T20:40:21.059+0300	INFO	last batch of contract storage items and IDs is collected	{"batch": 6, "took": "58.034210351s"}
2022-11-22T20:40:21.059+0300	INFO	contract storage items and IDs are reset	{"took": "6m23.064382446s", "keys": 1180605, "ids": 100}
2022-11-22T20:40:21.059+0300	DEBUG	trying to reset headers information
2022-11-22T20:40:21.461+0300	DEBUG	last batch of contract storage items and IDs is persisted	{"batch": 6, "took": "402.323727ms", "keys": 180949}
2022-11-22T20:40:22.216+0300	INFO	headers information is reset	{"took": "1.1572716s"}
2022-11-22T20:40:22.216+0300	DEBUG	trying to reset state root information and NEP transfers
2022-11-22T20:40:27.812+0300	DEBUG	headers information is persisted	{"took": "5.596233995s", "keys": 1512562}
2022-11-22T20:40:28.741+0300	INFO	state root information and NEP transfers are reset	{"took": "6.524661406s"}
2022-11-22T20:40:28.741+0300	DEBUG	trying to remove stale storage items
2022-11-22T20:40:31.681+0300	INFO	stale storage items are reset	{"took": "2.940397293s", "keys": 3287907}
2022-11-22T20:40:31.681+0300	DEBUG	trying to remove state reset point
2022-11-22T20:40:31.681+0300	INFO	state reset point is removed	{"took": "3.959µs"}
2022-11-22T20:40:36.664+0300	DEBUG	state root information and NEP transfers are persisted	{"took": "4.982626113s", "keys": 1685694}
2022-11-22T20:40:36.676+0300	INFO	state reset point information is persisted	{"took": "4.994311728s", "keys": 2}
2022-11-22T20:40:36.676+0300	INFO	reset finished successfully	{"took": "9m40.334332356s"}

Reset from 2512046 to 2.5M:
2022-11-22T20:42:46.496+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2022-11-22T20:42:46.496+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee":<PHONE_NUMBER>00}
2022-11-22T20:42:46.496+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2022-11-22T20:42:46.496+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-22T20:42:46.499+0300	INFO	restoring blockchain	{"version": "0.2.6"}
2022-11-22T20:42:46.922+0300	INFO	initializing state reset	{"target height": 2500000}
2022-11-22T20:42:46.923+0300	DEBUG	trying to reset blocks, transactions and AERs
2022-11-22T20:42:50.050+0300	INFO	last batch of removed blocks, transactions and AERs is collected	{"batch": 1, "took": "3.127937047s"}
2022-11-22T20:42:50.050+0300	INFO	blocks, transactions ans AERs are reset	{"took": "3.127981089s"}
2022-11-22T20:42:50.050+0300	DEBUG	trying to reset contract storage items and IDs
2022-11-22T20:42:50.053+0300	INFO	removed contract IDs are collected	{"took": "2.972546ms"}
2022-11-22T20:42:50.099+0300	DEBUG	last batch of removed blocks, transactions and AERs is persisted	{"batch": 1, "took": "45.324836ms", "keys": 21447}
2022-11-22T20:42:50.120+0300	DEBUG	removed contract IDs are persisted	{"took": "66.861082ms", "keys": 280}
2022-11-22T20:44:15.970+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 1, "took": "1m25.916274696s"}
2022-11-22T20:44:16.372+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 1, "took": "400.245227ms", "keys": 200002}
2022-11-22T20:45:03.886+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 2, "took": "47.91430522s"}
2022-11-22T20:45:04.300+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 2, "took": "413.159832ms", "keys": 200001}
2022-11-22T20:45:32.372+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 3, "took": "28.485130046s"}
2022-11-22T20:45:32.793+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 3, "took": "421.369254ms", "keys": 199998}
2022-11-22T20:46:27.659+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 4, "took": "55.286988608s"}
2022-11-22T20:46:28.094+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 4, "took": "434.990792ms", "keys": 200000}
2022-11-22T20:47:32.872+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 5, "took": "1m5.212941713s"}
2022-11-22T20:47:33.258+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 5, "took": "386.497717ms", "keys": 200000}
2022-11-22T20:48:41.582+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 6, "took": "1m8.710443248s"}
2022-11-22T20:48:41.980+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 6, "took": "397.646682ms", "keys": 200000}
2022-11-22T20:49:48.314+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 7, "took": "1m6.732197563s"}
2022-11-22T20:49:48.715+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 7, "took": "400.606764ms", "keys": 200000}
2022-11-22T20:50:51.728+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 8, "took": "1m3.413987412s"}
2022-11-22T20:50:52.112+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 8, "took": "383.817709ms", "keys": 200000}
2022-11-22T20:51:58.202+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 9, "took": "1m6.473791873s"}
2022-11-22T20:51:58.592+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 9, "took": "389.276237ms", "keys": 200000}
2022-11-22T20:53:04.996+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 10, "took": "1m6.793526328s"}
2022-11-22T20:53:05.383+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 10, "took": "386.279573ms", "keys": 200000}
2022-11-22T20:54:10.797+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 11, "took": "1m5.800661425s"}
2022-11-22T20:54:11.194+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 11, "took": "396.830604ms", "keys": 200000}
2022-11-22T20:55:18.715+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 12, "took": "1m7.918133661s"}
2022-11-22T20:55:19.092+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 12, "took": "377.216677ms", "keys": 200000}
2022-11-22T20:56:25.885+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 13, "took": "1m7.170116436s"}
2022-11-22T20:56:26.272+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 13, "took": "387.108812ms", "keys": 200000}
2022-11-22T20:57:33.507+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 14, "took": "1m7.622073319s"}
2022-11-22T20:57:33.904+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 14, "took": "396.363134ms", "keys": 200000}
2022-11-22T20:58:40.296+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 15, "took": "1m6.788250299s"}
2022-11-22T20:58:40.689+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 15, "took": "393.261373ms", "keys": 200000}
2022-11-22T20:59:48.231+0300	INFO	intermediate batch of contract storage items and IDs is collected	{"batch": 16, "took": "1m7.934900905s"}
2022-11-22T20:59:48.609+0300	DEBUG	intermediate batch of contract storage items and IDs is persisted	{"batch": 16, "took": "378.135129ms", "keys": 200000}
2022-11-22T21:00:09.904+0300	INFO	last batch of contract storage items and IDs is collected	{"batch": 17, "took": "21.672991468s"}
2022-11-22T21:00:09.904+0300	INFO	contract storage items and IDs are reset	{"took": "17m19.853414304s", "keys": 3269297, "ids": 262}
2022-11-22T21:00:09.904+0300	DEBUG	trying to reset headers information
2022-11-22T21:00:09.913+0300	INFO	headers information is reset	{"took": "8.886944ms"}
2022-11-22T21:00:10.033+0300	DEBUG	last batch of contract storage items and IDs is persisted	{"batch": 17, "took": "120.167389ms", "keys": 69559}
2022-11-22T21:00:10.033+0300	DEBUG	trying to reset state root information and NEP transfers
2022-11-22T21:00:10.053+0300	DEBUG	headers information is persisted	{"took": "140.140099ms", "keys": 12056}
2022-11-22T21:00:19.941+0300	INFO	state root information and NEP transfers are reset	{"took": "10.028268908s"}
2022-11-22T21:00:19.941+0300	DEBUG	trying to remove stale storage items
2022-11-22T21:00:22.785+0300	INFO	stale storage items are reset	{"took": "2.844088319s", "keys": 3287907}
2022-11-22T21:00:22.785+0300	DEBUG	trying to remove state reset point
2022-11-22T21:00:22.785+0300	INFO	state reset point is removed	{"took": "5.32µs"}
2022-11-22T21:00:22.934+0300	DEBUG	state root information and NEP transfers are persisted	{"took": "148.732809ms", "keys": 78276}
2022-11-22T21:00:22.937+0300	INFO	state reset point information is persisted	{"took": "151.467214ms", "keys": 2}
2022-11-22T21:00:22.956+0300	INFO	reset finished successfully	{"took": "17m36.033372653s"}

Single-threaded version:
Reset from 2512046 to 1:
./bin/neo-go db reset -m --debug --height 1
2022-11-22T21:03:27.804+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2022-11-22T21:03:27.804+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee":<PHONE_NUMBER>00}
2022-11-22T21:03:27.804+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2022-11-22T21:03:27.804+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-22T21:03:27.807+0300	INFO	restoring blockchain	{"version": "0.2.6"}
2022-11-22T21:03:28.259+0300	INFO	initialize state reset	{"target height": 1}
2022-11-22T21:03:28.263+0300	INFO	trying to reset blocks, transactions and AERs
2022-11-22T21:03:59.426+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 1, "took": "31.166574402s", "keys": 210973}
2022-11-22T21:04:18.595+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 2, "took": "19.169051296s", "keys": 241203}
2022-11-22T21:04:46.961+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 3, "took": "28.366310642s", "keys": 250593}
2022-11-22T21:05:13.759+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 4, "took": "26.797600612s", "keys": 321896}
2022-11-22T21:05:46.840+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 5, "took": "33.080400949s", "keys": 334822}
2022-11-22T21:06:17.955+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 6, "took": "31.115262694s", "keys": 317131}
2022-11-22T21:06:46.306+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 7, "took": "28.350907552s", "keys": 355832}
2022-11-22T21:07:06.419+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 8, "took": "20.113060554s", "keys": 357690}
2022-11-22T21:07:22.633+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 9, "took": "16.213392361s", "keys": 393356}
2022-11-22T21:07:38.178+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 10, "took": "15.545513327s", "keys": 366492}
2022-11-22T21:07:52.899+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 11, "took": "14.72120462s", "keys": 326030}
2022-11-22T21:08:07.162+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 12, "took": "14.263006946s", "keys": 299884}
2022-11-22T21:08:16.208+0300	INFO	last batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 13, "took": "9.045429478s", "keys": 190399}
2022-11-22T21:08:16.208+0300	INFO	blocks, transactions ans AERs are reset	{"took": "4m47.948553331s", "overall persisted keys": 3966301}
2022-11-22T21:08:16.208+0300	INFO	trying to reset contract storage items and IDs
2022-11-22T21:08:16.218+0300	INFO	removed contract IDs are persisted	{"took": "9.311197ms", "keys": 280}
2022-11-22T21:08:16.264+0300	INFO	last batch of contract storage items and IDs is persisted	{"batch": 1, "took": "46.857055ms", "keys": 36}
2022-11-22T21:08:16.265+0300	INFO	contract storage items and IDs are reset	{"took": "56.236352ms", "keys": 26, "ids": 9}
2022-11-22T21:08:16.265+0300	INFO	trying to reset headers information
2022-11-22T21:08:24.590+0300	INFO	headers information is reset	{"took": "8.32586803s", "keys": 2513305}
2022-11-22T21:08:24.590+0300	INFO	trying to reset state root information and NEP transfers
2022-11-22T21:08:33.512+0300	INFO	state root information and NEP transfers are reset	{"took": "8.922050066s", "keys": 2725424}
2022-11-22T21:08:33.513+0300	INFO	trying to remove stale storage items
2022-11-22T21:08:38.805+0300	INFO	stale storage items are reset	{"took": "5.292601242s", "keys": 3287907}
2022-11-22T21:08:38.805+0300	INFO	trying to remove state reset point
2022-11-22T21:08:38.825+0300	INFO	stale reset point is removed	{"took": "19.538005ms", "keys": 2}
2022-11-22T21:08:38.827+0300	INFO	reset finished successfully	{"took": "5m10.567565043s"}

Reset from 2512046 to 1M:
./bin/neo-go db reset -m --debug --height 1000000
2022-11-22T21:10:44.213+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2022-11-22T21:10:44.213+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee":<PHONE_NUMBER>00}
2022-11-22T21:10:44.213+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2022-11-22T21:10:44.213+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-22T21:10:44.218+0300	INFO	restoring blockchain	{"version": "0.2.6"}
2022-11-22T21:10:44.921+0300	INFO	initialize state reset	{"target height": 1000000}
2022-11-22T21:10:44.926+0300	INFO	trying to reset blocks, transactions and AERs
2022-11-22T21:11:15.573+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 1, "took": "30.65201173s", "keys": 317131}
2022-11-22T21:11:35.764+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 2, "took": "20.190778209s", "keys": 355831}
2022-11-22T21:11:58.972+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 3, "took": "23.207782174s", "keys": 357691}
2022-11-22T21:12:38.087+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 4, "took": "39.115101921s", "keys": 393356}
2022-11-22T21:13:25.930+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 5, "took": "47.84294597s", "keys": 366492}
2022-11-22T21:14:02.318+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 6, "took": "36.387769348s", "keys": 326030}
2022-11-22T21:14:20.754+0300	INFO	intermediate batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 7, "took": "18.435954413s", "keys": 299884}
2022-11-22T21:14:28.847+0300	INFO	last batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 8, "took": "8.093370819s", "keys": 190400}
2022-11-22T21:14:28.847+0300	INFO	blocks, transactions ans AERs are reset	{"took": "3m43.926228543s", "overall persisted keys": 2606815}
2022-11-22T21:14:28.848+0300	INFO	trying to reset contract storage items and IDs
2022-11-22T21:14:28.857+0300	INFO	removed contract IDs are persisted	{"took": "9.514629ms", "keys": 280}
2022-11-22T21:15:40.239+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 1, "took": "1m11.382086436s", "keys": 200000}
2022-11-22T21:16:49.848+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 2, "took": "1m9.608278106s", "keys": 200000}
2022-11-22T21:17:56.190+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 3, "took": "1m6.341901984s", "keys": 200000}
2022-11-22T21:19:02.084+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 4, "took": "1m5.89385914s", "keys": 200000}
2022-11-22T21:20:09.071+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 5, "took": "1m6.98737131s", "keys": 200000}
2022-11-22T21:21:07.517+0300	INFO	last batch of contract storage items and IDs is persisted	{"batch": 6, "took": "58.445839714s", "keys": 180706}
2022-11-22T21:21:07.517+0300	INFO	contract storage items and IDs are reset	{"took": "6m38.669416784s", "keys": 1180605, "ids": 100}
2022-11-22T21:21:07.517+0300	INFO	trying to reset headers information
2022-11-22T21:21:13.461+0300	INFO	headers information is reset	{"took": "5.944089393s", "keys": 1512806}
2022-11-22T21:21:13.462+0300	INFO	trying to reset state root information and NEP transfers
2022-11-22T21:21:22.454+0300	INFO	state root information and NEP transfers are reset	{"took": "8.992049187s", "keys": 1685694}
2022-11-22T21:21:22.454+0300	INFO	trying to remove stale storage items
2022-11-22T21:21:25.304+0300	INFO	stale storage items are reset	{"took": "2.85036337s", "keys": 3287907}
2022-11-22T21:21:25.304+0300	INFO	trying to remove state reset point
2022-11-22T21:21:25.312+0300	INFO	stale reset point is removed	{"took": "8.034126ms", "keys": 2}
2022-11-22T21:21:25.320+0300	INFO	reset finished successfully	{"took": "10m40.398882626s"}

Reset from 2512046 to 2.5M:
./bin/neo-go db reset -m --debug --height 2500000
2022-11-22T21:24:53.518+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2022-11-22T21:24:53.518+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee":<PHONE_NUMBER>00}
2022-11-22T21:24:53.518+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2022-11-22T21:24:53.518+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-22T21:24:53.523+0300	INFO	restoring blockchain	{"version": "0.2.6"}
2022-11-22T21:24:53.913+0300	INFO	initialize state reset	{"target height": 2500000}
2022-11-22T21:24:53.916+0300	INFO	trying to reset blocks, transactions and AERs
2022-11-22T21:24:56.823+0300	INFO	last batch of removed blocks, transactions and AERs is persisted	{"batches persisted": 1, "took": "2.910044413s", "keys": 21447}
2022-11-22T21:24:56.823+0300	INFO	blocks, transactions ans AERs are reset	{"took": "2.910072733s", "overall persisted keys": 21447}
2022-11-22T21:24:56.823+0300	INFO	trying to reset contract storage items and IDs
2022-11-22T21:24:56.827+0300	INFO	removed contract IDs are persisted	{"took": "3.961296ms", "keys": 280}
2022-11-22T21:26:17.233+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 1, "took": "1m20.405324756s", "keys": 200000}
2022-11-22T21:27:10.834+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 2, "took": "53.598493584s", "keys": 200000}
2022-11-22T21:27:42.900+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 3, "took": "32.065659934s", "keys": 200000}
2022-11-22T21:28:45.660+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 4, "took": "1m2.759952489s", "keys": 200000}
2022-11-22T21:29:51.264+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 5, "took": "1m5.603838426s", "keys": 200000}
2022-11-22T21:30:58.635+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 6, "took": "1m7.370625543s", "keys": 200000}
2022-11-22T21:32:03.976+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 7, "took": "1m5.34170083s", "keys": 200000}
2022-11-22T21:33:09.402+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 8, "took": "1m5.425773954s", "keys": 200000}
2022-11-22T21:34:14.414+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 9, "took": "1m5.011431441s", "keys": 200000}
2022-11-22T21:35:20.221+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 10, "took": "1m5.807095725s", "keys": 200000}
2022-11-22T21:36:27.280+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 11, "took": "1m7.058983225s", "keys": 200000}
2022-11-22T21:37:32.394+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 12, "took": "1m5.114255345s", "keys": 200000}
2022-11-22T21:38:39.992+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 13, "took": "1m7.597887367s", "keys": 200000}
2022-11-22T21:39:45.237+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 14, "took": "1m5.244569261s", "keys": 200000}
2022-11-22T21:40:50.503+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 15, "took": "1m5.265880669s", "keys": 200000}
2022-11-22T21:41:56.063+0300	INFO	intermediate batch of contract storage items and IDs is persisted	{"batch": 16, "took": "1m5.56014326s", "keys": 200000}
2022-11-22T21:42:17.115+0300	INFO	last batch of contract storage items and IDs is persisted	{"batch": 17, "took": "21.051736845s", "keys": 69560}
2022-11-22T21:42:17.115+0300	INFO	contract storage items and IDs are reset	{"took": "17m20.291722644s", "keys": 3269297, "ids": 262}
2022-11-22T21:42:17.115+0300	INFO	trying to reset headers information
2022-11-22T21:42:17.138+0300	INFO	headers information is reset	{"took": "22.773625ms", "keys": 12056}
2022-11-22T21:42:17.138+0300	INFO	trying to reset state root information and NEP transfers
2022-11-22T21:42:26.710+0300	INFO	state root information and NEP transfers are reset	{"took": "9.572547099s", "keys": 78276}
2022-11-22T21:42:26.710+0300	INFO	trying to remove stale storage items
2022-11-22T21:42:31.472+0300	INFO	stale storage items are reset	{"took": "4.761718165s", "keys": 3287907}
2022-11-22T21:42:31.472+0300	INFO	trying to remove state reset point
2022-11-22T21:42:31.477+0300	INFO	stale reset point is removed	{"took": "4.643054ms", "keys": 2}
2022-11-22T21:42:31.496+0300	INFO	reset finished successfully	{"took": "17m37.582685959s"}

How about leaving optimizations out for now? Frankly, looking at 2512046->2500000 case we probably can avoid pushing all KVs and deleting old ones because they're 98% identical. Some smarter KV/MPT lookup can be used to match and not touch existing KVs, update values/drop keys if needed. This can be much more beneficial.

OK, let's just go with bug fixes, I've removed this commit, ready for review.

I haven't tried this imprivement with BoltDB, but it's true that MPT-related part is the most time consuming there and can be improved.


Fix routes with different depth

Fix _find_route function generation when two route are overlapping and have different depth.
Example:
/foo/<foo_id>/bars_ids
/foo/<foo_id>/bars_ids/<bar_id>/settings/<group_id>/groups

This looks great. Thanks. I confirmed this and looks like you have a nice test case to cover.

Release going out shortly.
You can either upgrade this one package, or force Sanic to reinstall.

Thank you!

Released: https://pypi.org/project/sanic-routing/0.4.2/

Thanks for the quick reply and all the awesome work done.


Fail to open system/bootstrap.php

Time to time I see this warning when try install devstarter via Composer.
I run this command from documentation:
composer create-project codeigniter4/devstarter my-awesome-project -s dev --no-dev
Warning: require(E:\OSPanel\domains\localhost\magazine\app\Config/../../system/bootstrap.php): failed to open stream: No such file or directory in E:\OSPanel\domains\localhost\magazine\spark on line 43

Does this happen every time? Sounds like just occasionally, which will make it a bugger to debug. Anything common on your end when that happens that you can think of?

Also, it's unclear to me if you get that error while installing from composer (unlikely) or after having installed. And when you get the error, have you run composer upgrade first? or is this a fresh run after install?

It's fresh install.
I've tried composer ugrade, update with and without --no-dev flag. The result stays the same
I started try CI4 3-4 months ago. Since then had problem and moved to appstarter. But after Migration major update, started to use devapstarter with Composer and worked as expected. Now again this happening

@jim-parry I feel we've ran into this before. The devstarter repo is pointing to the wrong system location again. Needs to point to vendor/codeigniter4/codeigniter4/system.

Just pushed a change to app/Config/Paths.php, which I thought I had fixed before but obviously didn't :(
Does "composer update" fix the problem now?

Actually, I am not sure that composer update will help, The change is in the devstart repo, which was probably cloned. That would mean pulling from it, which might clobber work a developer has done.
So, the problem may be fixed for new cloners of the repo, but existing ones might have to manually update app/Config/Paths.php

So, problem fixed for future users of devstarter; workaroung above for existing users.


isServer detection faulty when jsdom is present

My testing environment installs jsdom which sets a window global - meaning that all tests run as a client according to t3-env.
My initial reaction is to override the isServer check to something like this solution mentioned on the jsdom repo.
It feels like an acceptable solution (and I'm happy to send a PR) but I'm not 100% sure if the change is a good one?
https://github.com/t3-oss/t3-env/blob/63a7fed1cb85e05d59c1c3c87e5b434cc8a353cc/packages/core/index.ts#L202C37-L202C66

This actually make t3-env support Deno out of the box, so why not🤷
The only question is how reliable is this Object.getOwnPropertyDescriptor(globalThis, 'window')?.get?.toString().includes('[native code]') ?? false, but it works pretty good on environment like NodeJS, Bun, Deno, Arc(Chromium), Safari.

I'd say this is an app-concern and you should use the option to override the default behavior. We can't cover every case by default and I think typeof window === "undefined" is the most well-known and used option out there

Hmm looks like we use a slightly more covering one in trpc so maybe?
https://github.com/trpc/trpc/blob/next/packages/server/src/unstable-core-do-not-import/rootConfig.ts#L18

This option is necessary when testing with Storybook because server-side variables used in Next.js server actions become an issue since they are rendered client-side.

Feel free to extend the default isServer check to something that covers more runtimes

I added detection of Deno as server in #220 (Netlify uses Deno to bundle Next.js for edge)
For those coming here for a workaround until #220 is merged can add this to createEnv(...) call for server environment:
isServer: typeof window === "undefined" || "Deno" in window,
e.g.
export const env = createEnv({
  isServer: typeof window === "undefined" || "Deno" in window,
  server: {
    ...
  }
  ...


Remove env key

:+1: Can make it an option since presets take options now

this makes me really sad, can you make it inlined based on the env instead?


Remove all CPU limits

Describe the bug
You shouldn't be setting CPU limits: https://home.robusta.dev/blog/stop-using-cpu-limits
Also, helm currently has a regression that prevents you from nulling out a value from a parent chart so we can't remove CPU limits from the config in our values.yaml we specify
Its a bad practice in the first place. Could just drop all the CPU limits you've configured in this chart?

@gschuurman you can do a code search and see all of them theres a bunch: https://github.com/search?q=repo%3Aacryldata%2Fdatahub-helm+cpu%3A&type=code


nano6502: Fixed carry clear after sector write

The update to the BDOS triggered a bug which caused writing to the disk to fail, as the carry was not cleared before returning from bios_WRITE.
How this ever worked at all before is a mystery :)

I come across bugs like this all the time. Merging.