neoneo-go/pkg/core
Anna Shaleva d67f0df516 core: reset block headers together with header height info
We need to keep the headers information consistent with header batches
and headers. This comit fixes the bug with failing blockchain
initialization on recovering from state reset interrupted after the
second stage (blocks/txs/AERs removal):
```
anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ ./bin/neo-go db reset -t --height 83000
2022-11-20T16:28:29.437+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2022-11-20T16:28:29.440+0300	INFO	restoring blockchain	{"version": "0.2.6"}
failed to create Blockchain instance: could not initialize blockchain: could not get header 1898cd356a4a2688ed1c6c7ba1fd6ba7d516959d8add3f8dd26232474d4539bd: key not found
```
2022-11-22 11:53:39 +03:00
..
block block: JSONize tx-less block as [] instead of null 2022-07-21 13:15:31 +03:00
chaindump core: move chain dump test into its own package 2022-06-08 15:28:08 +03:00
dao core: reset block headers together with header height info 2022-11-22 11:53:39 +03:00
fee vm: add MODMUL and MODPOW opcodes 2022-05-12 14:25:14 +03:00
interop cli: use custom logger to filter out runtime.Log messages 2022-10-07 15:57:33 +03:00
mempool [#2442] English Check 2022-05-04 19:48:27 +03:00
mempoolevent [#2442] English Check 2022-05-04 19:48:27 +03:00
mpt golangci: enable/fix misspell 2022-09-02 18:36:26 +03:00
native native: ignore decoding errors during cache init 2022-11-16 12:00:28 +03:00
state core: fix typo 2022-11-10 17:58:06 +03:00
stateroot core: allow to reset blockchain state 2022-11-10 18:08:17 +03:00
statesync rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
storage core: allow to reset blockchain state 2022-11-10 18:08:17 +03:00
test_data core: refactor helper test contracts generation 2022-03-30 11:46:29 +03:00
transaction core: add example to VUB comment 2022-10-06 10:32:18 +03:00
basic_chain_test.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
bench_test.go *: reuse smartcontract package to create standard entry scripts 2022-07-26 12:19:49 +03:00
blockchain.go core: reset block headers together with header height info 2022-11-22 11:53:39 +03:00
blockchain_core_test.go core: allow to reset blockchain state 2022-11-10 18:08:17 +03:00
blockchain_neotest_test.go native: ignore decoding errors during cache init 2022-11-16 12:00:28 +03:00
doc.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
helper_test.go core: rebase core tests onto neotest 2022-03-30 19:00:53 +03:00
interops.go core: move storage-related interop code into the storage package 2022-06-08 22:26:24 +03:00
native_designate_test.go core: add some comment for TestDesignate_DesignateAsRole 2022-06-08 23:11:14 +03:00
prometheus.go stateroot: move state-root related logic to core/stateroot 2021-03-09 13:48:29 +03:00
util.go core: export CreateGenesisBlock 2022-06-08 18:20:34 +03:00
util_test.go core: export CreateGenesisBlock 2022-06-08 18:20:34 +03:00