github.com/MetalBlockchain/subnet-evm@v0.6.3/params/network_params.go (about) 1 // (c) 2019-2020, Ava Labs, Inc. 2 // 3 // This file is a derived work, based on the go-ethereum library whose original 4 // notices appear below. 5 // 6 // It is distributed under a license compatible with the licensing terms of the 7 // original code from which it is derived. 8 // 9 // Much love to the original authors for their work. 10 // ********** 11 // Copyright 2017 The go-ethereum Authors 12 // This file is part of the go-ethereum library. 13 // 14 // The go-ethereum library is free software: you can redistribute it and/or modify 15 // it under the terms of the GNU Lesser General Public License as published by 16 // the Free Software Foundation, either version 3 of the License, or 17 // (at your option) any later version. 18 // 19 // The go-ethereum library is distributed in the hope that it will be useful, 20 // but WITHOUT ANY WARRANTY; without even the implied warranty of 21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 // GNU Lesser General Public License for more details. 23 // 24 // You should have received a copy of the GNU Lesser General Public License 25 // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. 26 27 package params 28 29 // These are network parameters that need to be constant between clients, but 30 // aren't necessarily consensus related. 31 32 const ( 33 // BloomBitsBlocks is the number of blocks a single bloom bit section vector 34 // contains on the server side. 35 BloomBitsBlocks uint64 = 4096 36 37 // BloomBitsBlocksClient is the number of blocks a single bloom bit section vector 38 // contains on the light client side 39 BloomBitsBlocksClient uint64 = 32768 40 41 // BloomConfirms is the number of confirmation blocks before a bloom section is 42 // considered probably final and its rotated bits are calculated. 43 BloomConfirms = 256 44 45 // CHTFrequency is the block frequency for creating CHTs 46 CHTFrequency = 32768 47 48 // BloomTrieFrequency is the block frequency for creating BloomTrie on both 49 // server/client sides. 50 BloomTrieFrequency = 32768 51 52 // HelperTrieConfirmations is the number of confirmations before a client is expected 53 // to have the given HelperTrie available. 54 HelperTrieConfirmations = 2048 55 56 // HelperTrieProcessConfirmations is the number of confirmations before a HelperTrie 57 // is generated 58 HelperTrieProcessConfirmations = 256 59 60 // CheckpointFrequency is the block frequency for creating checkpoint 61 CheckpointFrequency = 32768 62 63 // CheckpointProcessConfirmations is the number before a checkpoint is generated 64 CheckpointProcessConfirmations = 256 65 66 // FullImmutabilityThreshold is the number of blocks after which a chain segment is 67 // considered immutable (i.e. soft finality). It is used by the downloader as a 68 // hard limit against deep ancestors, by the blockchain against deep reorgs, by 69 // the freezer as the cutoff threshold and by clique as the snapshot trust limit. 70 FullImmutabilityThreshold = 90000 71 72 // LightImmutabilityThreshold is the number of blocks after which a header chain 73 // segment is considered immutable for light client(i.e. soft finality). It is used by 74 // the downloader as a hard limit against deep ancestors, by the blockchain against deep 75 // reorgs, by the light pruner as the pruning validity guarantee. 76 LightImmutabilityThreshold = 30000 77 )