mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 13:24:21 +00:00
4c865ec884
* Unit tests update, code cosmetics * Fix segfault with zombie handling why: In order to save memory, the data records of zombie entries are removed and only the key (aka peer node) is kept. Consequently, logging these zombies can only be done by the key. * Allow to accept V2 payload without `shanghaiTime` set while syncing why: Currently, `shanghaiTime` is missing (alt least) while snap syncing. So beacon node headers can be processed regardless. Normal (aka strict) processing will be automatically restored when leaving snap sync mode.
61 lines
1.7 KiB
Nim
61 lines
1.7 KiB
Nim
# Nimbus - Types, data structures and shared utilities used in network sync
|
|
#
|
|
# Copyright (c) 2018-2021 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
# http://opensource.org/licenses/MIT)
|
|
# at your option. This file may not be copied, modified, or
|
|
# distributed except according to those terms.
|
|
|
|
import
|
|
../../nimbus/core/chain,
|
|
./test_types
|
|
|
|
const
|
|
snapSyncdb0* = SnapSyncSpecs(
|
|
name: "main-snap",
|
|
network: MainNet,
|
|
snapDump: "mainnet=64.txt.gz",
|
|
tailBlocks: "mainnet332160.txt.gz",
|
|
pivotBlock: 64u64,
|
|
nItems: 100)
|
|
|
|
snapSyncdb1* = SnapSyncSpecs(
|
|
name: "main-snap",
|
|
network: MainNet,
|
|
snapDump: "mainnet=128.txt.gz",
|
|
tailBlocks: "mainnet332160.txt.gz",
|
|
pivotBlock: 128u64,
|
|
nItems: 500)
|
|
|
|
snapSyncdb2* = SnapSyncSpecs(
|
|
name: "main-snap",
|
|
network: MainNet,
|
|
snapDump: "mainnet=500.txt.gz",
|
|
tailBlocks: "mainnet332160.txt.gz",
|
|
pivotBlock: 500u64,
|
|
nItems: 500)
|
|
|
|
snapSyncdb3* = SnapSyncSpecs(
|
|
name: "main-snap",
|
|
network: MainNet,
|
|
snapDump: "mainnet=1000.txt.gz",
|
|
tailBlocks: "mainnet332160.txt.gz",
|
|
pivotBlock: 1000u64,
|
|
nItems: 500)
|
|
|
|
snapSyncdb4* = SnapSyncSpecs(
|
|
name: "main-snap",
|
|
network: MainNet,
|
|
snapDump: "mainnet=300000.txt.gz",
|
|
tailBlocks: "mainnet299905-332160.txt.gz",
|
|
pivotBlock: 300000u64,
|
|
nItems: 500)
|
|
|
|
snapSyncdbList* = [
|
|
snapSyncdb0, snapSyncdb1, snapSyncdb2, snapSyncdb3, snapSyncdb4]
|
|
|
|
# End
|