mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
commit
753c57e72f
40 changed files with 229 additions and 134 deletions
|
|
@ -25,6 +25,7 @@ syncmode = "full"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
# maxpeers = 1
|
# maxpeers = 1
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,8 @@
|
||||||
"muirGlacierBlock": 3395000,
|
"muirGlacierBlock": 3395000,
|
||||||
"berlinBlock": 14750000,
|
"berlinBlock": 14750000,
|
||||||
"londonBlock": 23850000,
|
"londonBlock": 23850000,
|
||||||
"shanghaiBlock":50523000,
|
"shanghaiBlock": 50523000,
|
||||||
|
"cancunBlock": 54876000,
|
||||||
"bor": {
|
"bor": {
|
||||||
"jaipurBlock": 23850000,
|
"jaipurBlock": 23850000,
|
||||||
"delhiBlock": 38189056,
|
"delhiBlock": 38189056,
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
"berlinBlock": 13996000,
|
"berlinBlock": 13996000,
|
||||||
"londonBlock": 22640000,
|
"londonBlock": 22640000,
|
||||||
"shanghaiBlock": 41874000,
|
"shanghaiBlock": 41874000,
|
||||||
|
"cancunBlock": 45648608,
|
||||||
"bor": {
|
"bor": {
|
||||||
"jaipurBlock": 22770000,
|
"jaipurBlock": 22770000,
|
||||||
"delhiBlock": 29638656,
|
"delhiBlock": 29638656,
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@
|
||||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
// bootnode runs a bootstrap node for the Ethereum Discovery Protocol.
|
// bootnode runs a bootstrap node for the Ethereum Discovery Protocol.
|
||||||
package main
|
// Keep package as bootnode during upstram merge.
|
||||||
|
package bootnode
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
|
|
@ -34,6 +35,7 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/p2p/netutil"
|
"github.com/ethereum/go-ethereum/p2p/netutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// nolint
|
||||||
func main() {
|
func main() {
|
||||||
var (
|
var (
|
||||||
listenAddr = flag.String("addr", ":30301", "listen address")
|
listenAddr = flag.String("addr", ":30301", "listen address")
|
||||||
|
|
@ -213,3 +215,12 @@ func doPortMapping(natm nat.Interface, ln *enode.LocalNode, addr *net.UDPAddr) *
|
||||||
|
|
||||||
return extaddr
|
return extaddr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Implemented separate functions so that there are minimal conflicts during upstream merge
|
||||||
|
func PrintNotice(nodeKey *ecdsa.PublicKey, addr net.UDPAddr) {
|
||||||
|
printNotice(nodeKey, addr)
|
||||||
|
}
|
||||||
|
|
||||||
|
func DoPortMapping(natm nat.Interface, ln *enode.LocalNode, addr *net.UDPAddr) *net.UDPAddr {
|
||||||
|
return doPortMapping(natm, ln, addr)
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|
@ -73,6 +74,7 @@ type stateObject struct {
|
||||||
trie Trie // storage trie, which becomes non-nil on first access
|
trie Trie // storage trie, which becomes non-nil on first access
|
||||||
code Code // contract bytecode, which gets set when code is loaded
|
code Code // contract bytecode, which gets set when code is loaded
|
||||||
|
|
||||||
|
storageMutex sync.Mutex
|
||||||
originStorage Storage // Storage cache of original entries to dedup rewrites
|
originStorage Storage // Storage cache of original entries to dedup rewrites
|
||||||
pendingStorage Storage // Storage entries that need to be flushed to disk, at the end of an entire block
|
pendingStorage Storage // Storage entries that need to be flushed to disk, at the end of an entire block
|
||||||
dirtyStorage Storage // Storage entries that have been modified in the current transaction execution, reset for every transaction
|
dirtyStorage Storage // Storage entries that have been modified in the current transaction execution, reset for every transaction
|
||||||
|
|
@ -175,6 +177,8 @@ func (s *stateObject) GetState(key common.Hash) common.Hash {
|
||||||
|
|
||||||
// GetCommittedState retrieves a value from the committed account storage trie.
|
// GetCommittedState retrieves a value from the committed account storage trie.
|
||||||
func (s *stateObject) GetCommittedState(key common.Hash) common.Hash {
|
func (s *stateObject) GetCommittedState(key common.Hash) common.Hash {
|
||||||
|
s.storageMutex.Lock()
|
||||||
|
defer s.storageMutex.Unlock()
|
||||||
// If we have a pending write or clean cached, return that
|
// If we have a pending write or clean cached, return that
|
||||||
if value, pending := s.pendingStorage[key]; pending {
|
if value, pending := s.pendingStorage[key]; pending {
|
||||||
return value
|
return value
|
||||||
|
|
@ -183,6 +187,7 @@ func (s *stateObject) GetCommittedState(key common.Hash) common.Hash {
|
||||||
if value, cached := s.originStorage[key]; cached {
|
if value, cached := s.originStorage[key]; cached {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the object was destructed in *this* block (and potentially resurrected),
|
// If the object was destructed in *this* block (and potentially resurrected),
|
||||||
// the storage has been cleared out, and we should *not* consult the previous
|
// the storage has been cleared out, and we should *not* consult the previous
|
||||||
// database about any storage values. The only possible alternatives are:
|
// database about any storage values. The only possible alternatives are:
|
||||||
|
|
|
||||||
|
|
@ -263,6 +263,7 @@ type Block struct {
|
||||||
// inter-peer block relay.
|
// inter-peer block relay.
|
||||||
ReceivedAt time.Time
|
ReceivedAt time.Time
|
||||||
ReceivedFrom interface{}
|
ReceivedFrom interface{}
|
||||||
|
AnnouncedAt *time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
// "external" block encoding. used for eth protocol, etc.
|
// "external" block encoding. used for eth protocol, etc.
|
||||||
|
|
|
||||||
|
|
@ -373,20 +373,20 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error {
|
||||||
itx.BlobHashes = dec.BlobVersionedHashes
|
itx.BlobHashes = dec.BlobVersionedHashes
|
||||||
|
|
||||||
// signature R
|
// signature R
|
||||||
var ok bool
|
var overflow bool
|
||||||
if dec.R == nil {
|
if dec.R == nil {
|
||||||
return errors.New("missing required field 'r' in transaction")
|
return errors.New("missing required field 'r' in transaction")
|
||||||
}
|
}
|
||||||
itx.R, ok = uint256.FromBig((*big.Int)(dec.R))
|
itx.R, overflow = uint256.FromBig((*big.Int)(dec.R))
|
||||||
if !ok {
|
if overflow {
|
||||||
return errors.New("'r' value overflows uint256")
|
return errors.New("'r' value overflows uint256")
|
||||||
}
|
}
|
||||||
// signature S
|
// signature S
|
||||||
if dec.S == nil {
|
if dec.S == nil {
|
||||||
return errors.New("missing required field 's' in transaction")
|
return errors.New("missing required field 's' in transaction")
|
||||||
}
|
}
|
||||||
itx.S, ok = uint256.FromBig((*big.Int)(dec.S))
|
itx.S, overflow = uint256.FromBig((*big.Int)(dec.S))
|
||||||
if !ok {
|
if overflow {
|
||||||
return errors.New("'s' value overflows uint256")
|
return errors.New("'s' value overflows uint256")
|
||||||
}
|
}
|
||||||
// signature V
|
// signature V
|
||||||
|
|
@ -394,8 +394,8 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
itx.V, ok = uint256.FromBig(vbig)
|
itx.V, overflow = uint256.FromBig(vbig)
|
||||||
if !ok {
|
if overflow {
|
||||||
return errors.New("'v' value overflows uint256")
|
return errors.New("'v' value overflows uint256")
|
||||||
}
|
}
|
||||||
if itx.V.Sign() != 0 || itx.R.Sign() != 0 || itx.S.Sign() != 0 {
|
if itx.V.Sign() != 0 || itx.R.Sign() != 0 || itx.S.Sign() != 0 {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ devfakeauthor = false # Run miner without validator set authorization
|
||||||
vmodule = "" # Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4)
|
vmodule = "" # Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4)
|
||||||
json = false # Format logs with JSON
|
json = false # Format logs with JSON
|
||||||
backtrace = "" # Request a stack trace at a specific logging statement (e.g. "block.go:271")
|
backtrace = "" # Request a stack trace at a specific logging statement (e.g. "block.go:271")
|
||||||
debug = true # Prepends log messages with call-site location (file and line number) - {requires some effort}
|
debug = true # Prepends log messages with call-site location (file and line number)
|
||||||
|
enable-block-tracking = false # Enables additional logging of information collected while tracking block lifecycle
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 50 # Maximum number of network peers (network disabled if set to 0)
|
maxpeers = 50 # Maximum number of network peers (network disabled if set to 0)
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,8 @@ The ```bor server``` command runs the Bor client.
|
||||||
|
|
||||||
- ```log.debug```: Prepends log messages with call-site location (file and line number) (default: false)
|
- ```log.debug```: Prepends log messages with call-site location (file and line number) (default: false)
|
||||||
|
|
||||||
|
- ```log.enable-block-tracking```: Enables additional logging of information collected while tracking block lifecycle (default: false)
|
||||||
|
|
||||||
- ```log.json```: Format logs with JSON (default: false)
|
- ```log.json```: Format logs with JSON (default: false)
|
||||||
|
|
||||||
- ```vmodule```: Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4)
|
- ```vmodule```: Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4)
|
||||||
|
|
|
||||||
|
|
@ -284,6 +284,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
|
||||||
EthAPI: blockChainAPI,
|
EthAPI: blockChainAPI,
|
||||||
checker: checker,
|
checker: checker,
|
||||||
txArrivalWait: eth.p2pServer.TxArrivalWait,
|
txArrivalWait: eth.p2pServer.TxArrivalWait,
|
||||||
|
enableBlockTracking: eth.config.EnableBlockTracking,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ var (
|
||||||
rewindLengthMeter = metrics.NewRegisteredMeter("chain/autorewind/length", nil)
|
rewindLengthMeter = metrics.NewRegisteredMeter("chain/autorewind/length", nil)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const maxRewindLen uint64 = 126
|
||||||
|
|
||||||
type borVerifier struct {
|
type borVerifier struct {
|
||||||
verify func(ctx context.Context, eth *Ethereum, handler *ethHandler, start uint64, end uint64, hash string, isCheckpoint bool) (string, error)
|
verify func(ctx context.Context, eth *Ethereum, handler *ethHandler, start uint64, end uint64, hash string, isCheckpoint bool) (string, error)
|
||||||
}
|
}
|
||||||
|
|
@ -117,8 +119,8 @@ func borVerify(ctx context.Context, eth *Ethereum, handler *ethHandler, start ui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if head-rewindTo > 255 {
|
if head-rewindTo > maxRewindLen {
|
||||||
rewindTo = head - 255
|
rewindTo = head - maxRewindLen
|
||||||
}
|
}
|
||||||
|
|
||||||
if isCheckpoint {
|
if isCheckpoint {
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,9 @@ type Config struct {
|
||||||
|
|
||||||
// OverrideVerkle (TODO: remove after the fork)
|
// OverrideVerkle (TODO: remove after the fork)
|
||||||
OverrideVerkle *big.Int `toml:",omitempty"`
|
OverrideVerkle *big.Int `toml:",omitempty"`
|
||||||
|
|
||||||
|
// EnableBlockTracking allows logging of information collected while tracking block lifecycle
|
||||||
|
EnableBlockTracking bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateConsensusEngine creates a consensus engine for the given chain configuration.
|
// CreateConsensusEngine creates a consensus engine for the given chain configuration.
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,7 @@ type headerFilterTask struct {
|
||||||
peer string // The source peer of block headers
|
peer string // The source peer of block headers
|
||||||
headers []*types.Header // Collection of headers to filter
|
headers []*types.Header // Collection of headers to filter
|
||||||
time time.Time // Arrival time of the headers
|
time time.Time // Arrival time of the headers
|
||||||
|
announcedTime time.Time // Announcement time of the availability of the block
|
||||||
}
|
}
|
||||||
|
|
||||||
// bodyFilterTask represents a batch of block bodies (transactions and uncles)
|
// bodyFilterTask represents a batch of block bodies (transactions and uncles)
|
||||||
|
|
@ -126,6 +127,7 @@ type bodyFilterTask struct {
|
||||||
transactions [][]*types.Transaction // Collection of transactions per block bodies
|
transactions [][]*types.Transaction // Collection of transactions per block bodies
|
||||||
uncles [][]*types.Header // Collection of uncles per block bodies
|
uncles [][]*types.Header // Collection of uncles per block bodies
|
||||||
time time.Time // Arrival time of the blocks' contents
|
time time.Time // Arrival time of the blocks' contents
|
||||||
|
announcedTime time.Time // Announcement time of the availability of the block
|
||||||
}
|
}
|
||||||
|
|
||||||
// blockOrHeaderInject represents a schedules import operation.
|
// blockOrHeaderInject represents a schedules import operation.
|
||||||
|
|
@ -197,10 +199,13 @@ type BlockFetcher struct {
|
||||||
fetchingHook func([]common.Hash) // Method to call upon starting a block (eth/61) or header (eth/62) fetch
|
fetchingHook func([]common.Hash) // Method to call upon starting a block (eth/61) or header (eth/62) fetch
|
||||||
completingHook func([]common.Hash) // Method to call upon starting a block body fetch (eth/62)
|
completingHook func([]common.Hash) // Method to call upon starting a block body fetch (eth/62)
|
||||||
importedHook func(*types.Header, *types.Block) // Method to call upon successful header or block import (both eth/61 and eth/62)
|
importedHook func(*types.Header, *types.Block) // Method to call upon successful header or block import (both eth/61 and eth/62)
|
||||||
|
|
||||||
|
// Logging
|
||||||
|
enableBlockTracking bool // Whether to log information collected while tracking block lifecycle
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBlockFetcher creates a block fetcher to retrieve blocks based on hash announcements.
|
// NewBlockFetcher creates a block fetcher to retrieve blocks based on hash announcements.
|
||||||
func NewBlockFetcher(light bool, getHeader HeaderRetrievalFn, getBlock blockRetrievalFn, verifyHeader headerVerifierFn, broadcastBlock blockBroadcasterFn, chainHeight chainHeightFn, insertHeaders headersInsertFn, insertChain chainInsertFn, dropPeer peerDropFn) *BlockFetcher {
|
func NewBlockFetcher(light bool, getHeader HeaderRetrievalFn, getBlock blockRetrievalFn, verifyHeader headerVerifierFn, broadcastBlock blockBroadcasterFn, chainHeight chainHeightFn, insertHeaders headersInsertFn, insertChain chainInsertFn, dropPeer peerDropFn, enableBlockTracking bool) *BlockFetcher {
|
||||||
return &BlockFetcher{
|
return &BlockFetcher{
|
||||||
light: light,
|
light: light,
|
||||||
notify: make(chan *blockAnnounce),
|
notify: make(chan *blockAnnounce),
|
||||||
|
|
@ -225,6 +230,7 @@ func NewBlockFetcher(light bool, getHeader HeaderRetrievalFn, getBlock blockRetr
|
||||||
insertHeaders: insertHeaders,
|
insertHeaders: insertHeaders,
|
||||||
insertChain: insertChain,
|
insertChain: insertChain,
|
||||||
dropPeer: dropPeer,
|
dropPeer: dropPeer,
|
||||||
|
enableBlockTracking: enableBlockTracking,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -276,7 +282,7 @@ func (f *BlockFetcher) Enqueue(peer string, block *types.Block) error {
|
||||||
|
|
||||||
// FilterHeaders extracts all the headers that were explicitly requested by the fetcher,
|
// FilterHeaders extracts all the headers that were explicitly requested by the fetcher,
|
||||||
// returning those that should be handled differently.
|
// returning those that should be handled differently.
|
||||||
func (f *BlockFetcher) FilterHeaders(peer string, headers []*types.Header, time time.Time) []*types.Header {
|
func (f *BlockFetcher) FilterHeaders(peer string, headers []*types.Header, time time.Time, announcedAt time.Time) []*types.Header {
|
||||||
log.Trace("Filtering headers", "peer", peer, "headers", len(headers))
|
log.Trace("Filtering headers", "peer", peer, "headers", len(headers))
|
||||||
|
|
||||||
// Send the filter channel to the fetcher
|
// Send the filter channel to the fetcher
|
||||||
|
|
@ -289,7 +295,7 @@ func (f *BlockFetcher) FilterHeaders(peer string, headers []*types.Header, time
|
||||||
}
|
}
|
||||||
// Request the filtering of the header list
|
// Request the filtering of the header list
|
||||||
select {
|
select {
|
||||||
case filter <- &headerFilterTask{peer: peer, headers: headers, time: time}:
|
case filter <- &headerFilterTask{peer: peer, headers: headers, time: time, announcedTime: announcedAt}:
|
||||||
case <-f.quit:
|
case <-f.quit:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
@ -304,7 +310,7 @@ func (f *BlockFetcher) FilterHeaders(peer string, headers []*types.Header, time
|
||||||
|
|
||||||
// FilterBodies extracts all the block bodies that were explicitly requested by
|
// FilterBodies extracts all the block bodies that were explicitly requested by
|
||||||
// the fetcher, returning those that should be handled differently.
|
// the fetcher, returning those that should be handled differently.
|
||||||
func (f *BlockFetcher) FilterBodies(peer string, transactions [][]*types.Transaction, uncles [][]*types.Header, time time.Time) ([][]*types.Transaction, [][]*types.Header) {
|
func (f *BlockFetcher) FilterBodies(peer string, transactions [][]*types.Transaction, uncles [][]*types.Header, time time.Time, announcedAt time.Time) ([][]*types.Transaction, [][]*types.Header) {
|
||||||
log.Trace("Filtering bodies", "peer", peer, "txs", len(transactions), "uncles", len(uncles))
|
log.Trace("Filtering bodies", "peer", peer, "txs", len(transactions), "uncles", len(uncles))
|
||||||
|
|
||||||
// Send the filter channel to the fetcher
|
// Send the filter channel to the fetcher
|
||||||
|
|
@ -317,7 +323,7 @@ func (f *BlockFetcher) FilterBodies(peer string, transactions [][]*types.Transac
|
||||||
}
|
}
|
||||||
// Request the filtering of the body list
|
// Request the filtering of the body list
|
||||||
select {
|
select {
|
||||||
case filter <- &bodyFilterTask{peer: peer, transactions: transactions, uncles: uncles, time: time}:
|
case filter <- &bodyFilterTask{peer: peer, transactions: transactions, uncles: uncles, time: time, announcedTime: announcedAt}:
|
||||||
case <-f.quit:
|
case <-f.quit:
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
@ -480,7 +486,7 @@ func (f *BlockFetcher) loop() {
|
||||||
log.Trace("Fetching scheduled headers", "peer", peer, "list", hashes)
|
log.Trace("Fetching scheduled headers", "peer", peer, "list", hashes)
|
||||||
|
|
||||||
// Create a closure of the fetch and schedule in on a new thread
|
// Create a closure of the fetch and schedule in on a new thread
|
||||||
fetchHeader, hashes := f.fetching[hashes[0]].fetchHeader, hashes
|
fetchHeader, hashes, announcedAt := f.fetching[hashes[0]].fetchHeader, hashes, f.fetching[hashes[0]].time
|
||||||
go func(peer string) {
|
go func(peer string) {
|
||||||
if f.fetchingHook != nil {
|
if f.fetchingHook != nil {
|
||||||
f.fetchingHook(hashes)
|
f.fetchingHook(hashes)
|
||||||
|
|
@ -504,7 +510,7 @@ func (f *BlockFetcher) loop() {
|
||||||
select {
|
select {
|
||||||
case res := <-resCh:
|
case res := <-resCh:
|
||||||
res.Done <- nil
|
res.Done <- nil
|
||||||
f.FilterHeaders(peer, *res.Res.(*eth.BlockHeadersPacket), time.Now().Add(res.Time))
|
f.FilterHeaders(peer, *res.Res.(*eth.BlockHeadersPacket), time.Now(), announcedAt)
|
||||||
|
|
||||||
case <-timeout.C:
|
case <-timeout.C:
|
||||||
// The peer didn't respond in time. The request
|
// The peer didn't respond in time. The request
|
||||||
|
|
@ -547,6 +553,7 @@ func (f *BlockFetcher) loop() {
|
||||||
|
|
||||||
fetchBodies := f.completing[hashes[0]].fetchBodies
|
fetchBodies := f.completing[hashes[0]].fetchBodies
|
||||||
bodyFetchMeter.Mark(int64(len(hashes)))
|
bodyFetchMeter.Mark(int64(len(hashes)))
|
||||||
|
announcedAt := f.completing[hashes[0]].time
|
||||||
|
|
||||||
go func(peer string, hashes []common.Hash) {
|
go func(peer string, hashes []common.Hash) {
|
||||||
resCh := make(chan *eth.Response)
|
resCh := make(chan *eth.Response)
|
||||||
|
|
@ -565,7 +572,7 @@ func (f *BlockFetcher) loop() {
|
||||||
res.Done <- nil
|
res.Done <- nil
|
||||||
// Ignoring withdrawals here, since the block fetcher is not used post-merge.
|
// Ignoring withdrawals here, since the block fetcher is not used post-merge.
|
||||||
txs, uncles, _ := res.Res.(*eth.BlockBodiesPacket).Unpack()
|
txs, uncles, _ := res.Res.(*eth.BlockBodiesPacket).Unpack()
|
||||||
f.FilterBodies(peer, txs, uncles, time.Now())
|
f.FilterBodies(peer, txs, uncles, time.Now(), announcedAt)
|
||||||
|
|
||||||
case <-timeout.C:
|
case <-timeout.C:
|
||||||
// The peer didn't respond in time. The request
|
// The peer didn't respond in time. The request
|
||||||
|
|
@ -631,6 +638,7 @@ func (f *BlockFetcher) loop() {
|
||||||
|
|
||||||
block := types.NewBlockWithHeader(header)
|
block := types.NewBlockWithHeader(header)
|
||||||
block.ReceivedAt = task.time
|
block.ReceivedAt = task.time
|
||||||
|
block.AnnouncedAt = &task.announcedTime
|
||||||
|
|
||||||
complete = append(complete, block)
|
complete = append(complete, block)
|
||||||
f.completing[hash] = announce
|
f.completing[hash] = announce
|
||||||
|
|
@ -725,6 +733,7 @@ func (f *BlockFetcher) loop() {
|
||||||
if f.getBlock(hash) == nil {
|
if f.getBlock(hash) == nil {
|
||||||
block := types.NewBlockWithHeader(announce.header).WithBody(task.transactions[i], task.uncles[i])
|
block := types.NewBlockWithHeader(announce.header).WithBody(task.transactions[i], task.uncles[i])
|
||||||
block.ReceivedAt = task.time
|
block.ReceivedAt = task.time
|
||||||
|
block.AnnouncedAt = &task.announcedTime
|
||||||
blocks = append(blocks, block)
|
blocks = append(blocks, block)
|
||||||
} else {
|
} else {
|
||||||
f.forgetHash(hash)
|
f.forgetHash(hash)
|
||||||
|
|
@ -923,6 +932,31 @@ func (f *BlockFetcher) importBlocks(peer string, block *types.Block) {
|
||||||
log.Debug("Propagated block import failed", "peer", peer, "number", block.Number(), "hash", hash, "err", err)
|
log.Debug("Propagated block import failed", "peer", peer, "number", block.Number(), "hash", hash, "err", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if f.enableBlockTracking {
|
||||||
|
// Log the insertion event
|
||||||
|
var (
|
||||||
|
msg string
|
||||||
|
delayInMs uint64
|
||||||
|
prettyDelay common.PrettyDuration
|
||||||
|
)
|
||||||
|
|
||||||
|
if block.AnnouncedAt != nil {
|
||||||
|
msg = "[block tracker] Inserted new block with announcement"
|
||||||
|
delayInMs = uint64(time.Since(*block.AnnouncedAt).Milliseconds())
|
||||||
|
prettyDelay = common.PrettyDuration(time.Since(*block.AnnouncedAt))
|
||||||
|
} else {
|
||||||
|
msg = "[block tracker] Inserted new block without announcement"
|
||||||
|
delayInMs = uint64(time.Since(block.ReceivedAt).Milliseconds())
|
||||||
|
prettyDelay = common.PrettyDuration(time.Since(block.ReceivedAt))
|
||||||
|
}
|
||||||
|
|
||||||
|
totalDelayInMs := uint64(time.Now().UnixMilli()) - block.Time()*1000
|
||||||
|
totalDelay := common.PrettyDuration(time.Millisecond * time.Duration(totalDelayInMs))
|
||||||
|
|
||||||
|
log.Info(msg, "number", block.Number().Uint64(), "hash", hash, "delay", prettyDelay, "delayInMs", delayInMs, "totalDelay", totalDelay, "totalDelayInMs", totalDelayInMs)
|
||||||
|
}
|
||||||
|
|
||||||
// If import succeeded, broadcast the block
|
// If import succeeded, broadcast the block
|
||||||
blockAnnounceOutTimer.UpdateSince(block.ReceivedAt)
|
blockAnnounceOutTimer.UpdateSince(block.ReceivedAt)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ func newTester(light bool) *fetcherTester {
|
||||||
blocks: map[common.Hash]*types.Block{genesis.Hash(): genesis},
|
blocks: map[common.Hash]*types.Block{genesis.Hash(): genesis},
|
||||||
drops: make(map[string]bool),
|
drops: make(map[string]bool),
|
||||||
}
|
}
|
||||||
tester.fetcher = NewBlockFetcher(light, tester.getHeader, tester.getBlock, tester.verifyHeader, tester.broadcastBlock, tester.chainHeight, tester.insertHeaders, tester.insertChain, tester.dropPeer)
|
tester.fetcher = NewBlockFetcher(light, tester.getHeader, tester.getBlock, tester.verifyHeader, tester.broadcastBlock, tester.chainHeight, tester.insertHeaders, tester.insertChain, tester.dropPeer, false)
|
||||||
tester.fetcher.Start()
|
tester.fetcher.Start()
|
||||||
|
|
||||||
return tester
|
return tester
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ type handlerConfig struct {
|
||||||
checker ethereum.ChainValidator
|
checker ethereum.ChainValidator
|
||||||
RequiredBlocks map[uint64]common.Hash // Hard coded map of required block hashes for sync challenges
|
RequiredBlocks map[uint64]common.Hash // Hard coded map of required block hashes for sync challenges
|
||||||
EthAPI *ethapi.BlockChainAPI // EthAPI to interact
|
EthAPI *ethapi.BlockChainAPI // EthAPI to interact
|
||||||
|
enableBlockTracking bool // Whether to log information collected while tracking block lifecycle
|
||||||
}
|
}
|
||||||
|
|
||||||
type handler struct {
|
type handler struct {
|
||||||
|
|
@ -126,6 +127,8 @@ type handler struct {
|
||||||
|
|
||||||
requiredBlocks map[uint64]common.Hash
|
requiredBlocks map[uint64]common.Hash
|
||||||
|
|
||||||
|
enableBlockTracking bool
|
||||||
|
|
||||||
// channels for fetcher, syncer, txsyncLoop
|
// channels for fetcher, syncer, txsyncLoop
|
||||||
quitSync chan struct{}
|
quitSync chan struct{}
|
||||||
|
|
||||||
|
|
@ -154,6 +157,7 @@ func newHandler(config *handlerConfig) (*handler, error) {
|
||||||
merger: config.Merger,
|
merger: config.Merger,
|
||||||
ethAPI: config.EthAPI,
|
ethAPI: config.EthAPI,
|
||||||
requiredBlocks: config.RequiredBlocks,
|
requiredBlocks: config.RequiredBlocks,
|
||||||
|
enableBlockTracking: config.enableBlockTracking,
|
||||||
quitSync: make(chan struct{}),
|
quitSync: make(chan struct{}),
|
||||||
handlerDoneCh: make(chan struct{}),
|
handlerDoneCh: make(chan struct{}),
|
||||||
handlerStartCh: make(chan struct{}),
|
handlerStartCh: make(chan struct{}),
|
||||||
|
|
@ -295,7 +299,7 @@ func newHandler(config *handlerConfig) (*handler, error) {
|
||||||
|
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
h.blockFetcher = fetcher.NewBlockFetcher(false, nil, h.chain.GetBlockByHash, validator, h.BroadcastBlock, heighter, nil, inserter, h.removePeer)
|
h.blockFetcher = fetcher.NewBlockFetcher(false, nil, h.chain.GetBlockByHash, validator, h.BroadcastBlock, heighter, nil, inserter, h.removePeer, h.enableBlockTracking)
|
||||||
|
|
||||||
fetchTx := func(peer string, hashes []common.Hash) error {
|
fetchTx := func(peer string, hashes []common.Hash) error {
|
||||||
p := h.peers.peer(peer)
|
p := h.peers.peer(peer)
|
||||||
|
|
@ -688,6 +692,11 @@ func (h *handler) minedBroadcastLoop() {
|
||||||
|
|
||||||
for obj := range h.minedBlockSub.Chan() {
|
for obj := range h.minedBlockSub.Chan() {
|
||||||
if ev, ok := obj.Data.(core.NewMinedBlockEvent); ok {
|
if ev, ok := obj.Data.(core.NewMinedBlockEvent); ok {
|
||||||
|
if h.enableBlockTracking {
|
||||||
|
delayInMs := uint64(time.Now().UnixMilli()) - ev.Block.Time()*1000
|
||||||
|
delay := common.PrettyDuration(time.Millisecond * time.Duration(delayInMs))
|
||||||
|
log.Info("[block tracker] Broadcasting mined block", "number", ev.Block.NumberU64(), "hash", ev.Block.Hash(), "blockTime", ev.Block.Time(), "now", time.Now().Unix(), "delay", delay, "delayInMs", delayInMs)
|
||||||
|
}
|
||||||
h.BroadcastBlock(ev.Block, true) // First propagate block to peers
|
h.BroadcastBlock(ev.Block, true) // First propagate block to peers
|
||||||
h.BroadcastBlock(ev.Block, false) // Only then announce to the rest
|
h.BroadcastBlock(ev.Block, false) // Only then announce to the rest
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -382,8 +382,10 @@ func handleNewBlock(backend Backend, msg Decoder, peer *Peer) error {
|
||||||
return nil // TODO(karalabe): return error eventually, but wait a few releases
|
return nil // TODO(karalabe): return error eventually, but wait a few releases
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msgTime := msg.Time()
|
||||||
ann.Block.ReceivedAt = msg.Time()
|
ann.Block.ReceivedAt = msg.Time()
|
||||||
ann.Block.ReceivedFrom = peer
|
ann.Block.ReceivedFrom = peer
|
||||||
|
ann.Block.AnnouncedAt = &msgTime
|
||||||
|
|
||||||
// Mark the peer as owning the block
|
// Mark the peer as owning the block
|
||||||
peer.markBlock(ann.Block.Hash())
|
peer.markBlock(ann.Block.Hash())
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/ethereum/go-ethereum/cmd/bootnode"
|
||||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/internal/cli/flagset"
|
"github.com/ethereum/go-ethereum/internal/cli/flagset"
|
||||||
|
|
@ -213,33 +214,25 @@ func (b *BootnodeCommand) Run(args []string) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
conn, err := net.ListenUDP("udp", addr)
|
conn, err := net.ListenUDP("udp", addr)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.UI.Error(fmt.Sprintf("failed to listen udp addr '%s': %v", b.listenAddr, err))
|
b.UI.Error(fmt.Sprintf("failed to listen udp addr '%s': %v", b.listenAddr, err))
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
defer conn.Close()
|
||||||
realaddr := conn.LocalAddr().(*net.UDPAddr)
|
|
||||||
if natm != nil {
|
|
||||||
if !realaddr.IP.IsLoopback() {
|
|
||||||
go nat.Map(natm, nil, "udp", realaddr.Port, realaddr.Port, "ethereum discovery")
|
|
||||||
}
|
|
||||||
|
|
||||||
if ext, err := natm.ExternalIP(); err == nil {
|
|
||||||
// nolint: govet
|
|
||||||
realaddr = &net.UDPAddr{IP: ext, Port: realaddr.Port}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
n := enode.NewV4(&nodeKey.PublicKey, addr.IP, addr.Port, addr.Port)
|
|
||||||
b.UI.Info(n.String())
|
|
||||||
|
|
||||||
if b.dryRun {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
db, _ := enode.OpenDB("")
|
db, _ := enode.OpenDB("")
|
||||||
ln := enode.NewLocalNode(db, nodeKey)
|
ln := enode.NewLocalNode(db, nodeKey)
|
||||||
|
|
||||||
|
listenerAddr := conn.LocalAddr().(*net.UDPAddr)
|
||||||
|
if natm != nil {
|
||||||
|
natAddr := bootnode.DoPortMapping(natm, ln, listenerAddr)
|
||||||
|
if natAddr != nil {
|
||||||
|
listenerAddr = natAddr
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bootnode.PrintNotice(&nodeKey.PublicKey, *listenerAddr)
|
||||||
|
|
||||||
cfg := discover.Config{
|
cfg := discover.Config{
|
||||||
PrivateKey: nodeKey,
|
PrivateKey: nodeKey,
|
||||||
Log: log.Root(),
|
Log: log.Root(),
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ var mainnetBor = &Chain{
|
||||||
BerlinBlock: big.NewInt(14750000),
|
BerlinBlock: big.NewInt(14750000),
|
||||||
LondonBlock: big.NewInt(23850000),
|
LondonBlock: big.NewInt(23850000),
|
||||||
ShanghaiBlock: big.NewInt(50523000),
|
ShanghaiBlock: big.NewInt(50523000),
|
||||||
|
CancunBlock: big.NewInt(54876000),
|
||||||
Bor: ¶ms.BorConfig{
|
Bor: ¶ms.BorConfig{
|
||||||
JaipurBlock: big.NewInt(23850000),
|
JaipurBlock: big.NewInt(23850000),
|
||||||
DelhiBlock: big.NewInt(38189056),
|
DelhiBlock: big.NewInt(38189056),
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ var mumbaiTestnet = &Chain{
|
||||||
BerlinBlock: big.NewInt(13996000),
|
BerlinBlock: big.NewInt(13996000),
|
||||||
LondonBlock: big.NewInt(22640000),
|
LondonBlock: big.NewInt(22640000),
|
||||||
ShanghaiBlock: big.NewInt(41874000),
|
ShanghaiBlock: big.NewInt(41874000),
|
||||||
|
CancunBlock: big.NewInt(45648608),
|
||||||
Bor: ¶ms.BorConfig{
|
Bor: ¶ms.BorConfig{
|
||||||
JaipurBlock: big.NewInt(22770000),
|
JaipurBlock: big.NewInt(22770000),
|
||||||
DelhiBlock: big.NewInt(29638656),
|
DelhiBlock: big.NewInt(29638656),
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
"berlinBlock": 13996000,
|
"berlinBlock": 13996000,
|
||||||
"londonBlock": 13996000,
|
"londonBlock": 13996000,
|
||||||
"shanghaiBlock": 41874000,
|
"shanghaiBlock": 41874000,
|
||||||
|
"cancunBlock": 45648608,
|
||||||
"bor": {
|
"bor": {
|
||||||
"period": {
|
"period": {
|
||||||
"0": 2,
|
"0": 2,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
"berlinBlock":13996000,
|
"berlinBlock":13996000,
|
||||||
"londonBlock":13996000,
|
"londonBlock":13996000,
|
||||||
"shanghaiBlock": 41874000,
|
"shanghaiBlock": 41874000,
|
||||||
|
"cancunBlock": 45648608,
|
||||||
"bor":{
|
"bor":{
|
||||||
"period":{
|
"period":{
|
||||||
"0":2,
|
"0":2,
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,9 @@ type LoggingConfig struct {
|
||||||
// Prepends log messages with call-site location (file and line number)
|
// Prepends log messages with call-site location (file and line number)
|
||||||
Debug bool `hcl:"debug,optional" toml:"debug,optional"`
|
Debug bool `hcl:"debug,optional" toml:"debug,optional"`
|
||||||
|
|
||||||
|
// EnableBlockTracking allows logging of information collected while tracking block lifecycle
|
||||||
|
EnableBlockTracking bool `hcl:"enable-block-tracking,optional" toml:"enable-block-tracking,optional"`
|
||||||
|
|
||||||
// TODO - implement this
|
// TODO - implement this
|
||||||
// // Write execution trace to the given file
|
// // Write execution trace to the given file
|
||||||
// Trace string `hcl:"trace,optional" toml:"trace,optional"`
|
// Trace string `hcl:"trace,optional" toml:"trace,optional"`
|
||||||
|
|
@ -610,6 +613,7 @@ func DefaultConfig() *Config {
|
||||||
Json: false,
|
Json: false,
|
||||||
Backtrace: "",
|
Backtrace: "",
|
||||||
Debug: false,
|
Debug: false,
|
||||||
|
EnableBlockTracking: false,
|
||||||
},
|
},
|
||||||
RPCBatchLimit: 100,
|
RPCBatchLimit: 100,
|
||||||
RPCReturnDataLimit: 100000,
|
RPCReturnDataLimit: 100000,
|
||||||
|
|
@ -1186,6 +1190,8 @@ func (c *Config) buildEth(stack *node.Node, accountManager *accounts.Manager) (*
|
||||||
n.DatabaseFreezer = c.Ancient
|
n.DatabaseFreezer = c.Ancient
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n.EnableBlockTracking = c.Logging.EnableBlockTracking
|
||||||
|
|
||||||
return &n, nil
|
return &n, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,13 @@ func (c *Command) Flags(config *Config) *flagset.Flagset {
|
||||||
Default: c.cliConfig.Logging.Debug,
|
Default: c.cliConfig.Logging.Debug,
|
||||||
Group: "Logging",
|
Group: "Logging",
|
||||||
})
|
})
|
||||||
|
f.BoolFlag(&flagset.BoolFlag{
|
||||||
|
Name: "log.enable-block-tracking",
|
||||||
|
Usage: "Enables additional logging of information collected while tracking block lifecycle",
|
||||||
|
Value: &c.cliConfig.Logging.EnableBlockTracking,
|
||||||
|
Default: c.cliConfig.Logging.EnableBlockTracking,
|
||||||
|
Group: "Logging",
|
||||||
|
})
|
||||||
|
|
||||||
// heimdall
|
// heimdall
|
||||||
f.StringFlag(&flagset.StringFlag{
|
f.StringFlag(&flagset.StringFlag{
|
||||||
|
|
|
||||||
|
|
@ -920,7 +920,7 @@ func (w *worker) commitTransactions(env *environment, txs *transactionsByPriceAn
|
||||||
EnableMVHashMap := w.chainConfig.IsCancun(env.header.Number)
|
EnableMVHashMap := w.chainConfig.IsCancun(env.header.Number)
|
||||||
|
|
||||||
// create and add empty mvHashMap in statedb
|
// create and add empty mvHashMap in statedb
|
||||||
if EnableMVHashMap {
|
if EnableMVHashMap && w.IsRunning() {
|
||||||
deps = map[int]map[int]bool{}
|
deps = map[int]map[int]bool{}
|
||||||
|
|
||||||
chDeps = make(chan blockstm.TxDep)
|
chDeps = make(chan blockstm.TxDep)
|
||||||
|
|
@ -955,8 +955,16 @@ func (w *worker) commitTransactions(env *environment, txs *transactionsByPriceAn
|
||||||
|
|
||||||
mainloop:
|
mainloop:
|
||||||
for {
|
for {
|
||||||
|
// Check interruption signal and abort building if it's fired.
|
||||||
|
if interrupt != nil {
|
||||||
|
if signal := interrupt.Load(); signal != commitInterruptNone {
|
||||||
|
breakCause = "interrupt"
|
||||||
|
return signalToErr(signal)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if interruptCtx != nil {
|
if interruptCtx != nil {
|
||||||
if EnableMVHashMap {
|
if EnableMVHashMap && w.IsRunning() {
|
||||||
env.state.AddEmptyMVHashMap()
|
env.state.AddEmptyMVHashMap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -970,13 +978,6 @@ mainloop:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check interruption signal and abort building if it's fired.
|
|
||||||
if interrupt != nil {
|
|
||||||
if signal := interrupt.Load(); signal != commitInterruptNone {
|
|
||||||
breakCause = "interrupt"
|
|
||||||
return signalToErr(signal)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// If we don't have enough gas for any further transactions then we're done.
|
// If we don't have enough gas for any further transactions then we're done.
|
||||||
if env.gasPool.Gas() < params.TxGas {
|
if env.gasPool.Gas() < params.TxGas {
|
||||||
breakCause = "Not enough gas for further transactions"
|
breakCause = "Not enough gas for further transactions"
|
||||||
|
|
@ -1055,7 +1056,7 @@ mainloop:
|
||||||
coalescedLogs = append(coalescedLogs, logs...)
|
coalescedLogs = append(coalescedLogs, logs...)
|
||||||
env.tcount++
|
env.tcount++
|
||||||
|
|
||||||
if EnableMVHashMap {
|
if EnableMVHashMap && w.IsRunning() {
|
||||||
env.depsMVFullWriteList = append(env.depsMVFullWriteList, env.state.MVFullWriteList())
|
env.depsMVFullWriteList = append(env.depsMVFullWriteList, env.state.MVFullWriteList())
|
||||||
env.mvReadMapList = append(env.mvReadMapList, env.state.MVReadMap())
|
env.mvReadMapList = append(env.mvReadMapList, env.state.MVReadMap())
|
||||||
|
|
||||||
|
|
@ -1085,7 +1086,7 @@ mainloop:
|
||||||
txs.Pop()
|
txs.Pop()
|
||||||
}
|
}
|
||||||
|
|
||||||
if EnableMVHashMap {
|
if EnableMVHashMap && w.IsRunning() {
|
||||||
env.state.ClearReadMap()
|
env.state.ClearReadMap()
|
||||||
env.state.ClearWriteMap()
|
env.state.ClearWriteMap()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ gcmode = "archive"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 50
|
maxpeers = 50
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ syncmode = "full"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 50
|
maxpeers = 50
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ syncmode = "full"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 20
|
maxpeers = 20
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ syncmode = "full"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 50
|
maxpeers = 50
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Source: bor
|
Source: bor
|
||||||
Version: 1.2.3
|
Version: 1.2.7
|
||||||
Section: develop
|
Section: develop
|
||||||
Priority: standard
|
Priority: standard
|
||||||
Maintainer: Polygon <release-team@polygon.technology>
|
Maintainer: Polygon <release-team@polygon.technology>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Source: bor
|
Source: bor
|
||||||
Version: 1.2.3
|
Version: 1.2.7
|
||||||
Section: develop
|
Section: develop
|
||||||
Priority: standard
|
Priority: standard
|
||||||
Maintainer: Polygon <release-team@polygon.technology>
|
Maintainer: Polygon <release-team@polygon.technology>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Source: bor-profile
|
Source: bor-profile
|
||||||
Version: 1.2.3
|
Version: 1.2.7
|
||||||
Section: develop
|
Section: develop
|
||||||
Priority: standard
|
Priority: standard
|
||||||
Maintainer: Polygon <release-team@polygon.technology>
|
Maintainer: Polygon <release-team@polygon.technology>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Source: bor-profile
|
Source: bor-profile
|
||||||
Version: 1.2.3
|
Version: 1.2.7
|
||||||
Section: develop
|
Section: develop
|
||||||
Priority: standard
|
Priority: standard
|
||||||
Maintainer: Polygon <release-team@polygon.technology>
|
Maintainer: Polygon <release-team@polygon.technology>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Source: bor-profile
|
Source: bor-profile
|
||||||
Version: 1.2.3
|
Version: 1.2.7
|
||||||
Section: develop
|
Section: develop
|
||||||
Priority: standard
|
Priority: standard
|
||||||
Maintainer: Polygon <release-team@polygon.technology>
|
Maintainer: Polygon <release-team@polygon.technology>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Source: bor-profile
|
Source: bor-profile
|
||||||
Version: 1.2.3
|
Version: 1.2.7
|
||||||
Section: develop
|
Section: develop
|
||||||
Priority: standard
|
Priority: standard
|
||||||
Maintainer: Polygon <release-team@polygon.technology>
|
Maintainer: Polygon <release-team@polygon.technology>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ gcmode = "archive"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 50
|
maxpeers = 50
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ syncmode = "full"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 50
|
maxpeers = 50
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ syncmode = "full"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 1
|
maxpeers = 1
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ syncmode = "full"
|
||||||
# json = false
|
# json = false
|
||||||
# backtrace = ""
|
# backtrace = ""
|
||||||
# debug = true
|
# debug = true
|
||||||
|
# enable-block-tracking = false
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 50
|
maxpeers = 50
|
||||||
|
|
|
||||||
|
|
@ -196,6 +196,7 @@ var (
|
||||||
BerlinBlock: big.NewInt(13996000),
|
BerlinBlock: big.NewInt(13996000),
|
||||||
LondonBlock: big.NewInt(22640000),
|
LondonBlock: big.NewInt(22640000),
|
||||||
ShanghaiBlock: big.NewInt(41874000),
|
ShanghaiBlock: big.NewInt(41874000),
|
||||||
|
CancunBlock: big.NewInt(45648608),
|
||||||
Bor: &BorConfig{
|
Bor: &BorConfig{
|
||||||
JaipurBlock: big.NewInt(22770000),
|
JaipurBlock: big.NewInt(22770000),
|
||||||
DelhiBlock: big.NewInt(29638656),
|
DelhiBlock: big.NewInt(29638656),
|
||||||
|
|
@ -261,6 +262,7 @@ var (
|
||||||
BerlinBlock: big.NewInt(14750000),
|
BerlinBlock: big.NewInt(14750000),
|
||||||
LondonBlock: big.NewInt(23850000),
|
LondonBlock: big.NewInt(23850000),
|
||||||
ShanghaiBlock: big.NewInt(50523000),
|
ShanghaiBlock: big.NewInt(50523000),
|
||||||
|
CancunBlock: big.NewInt(54876000),
|
||||||
Bor: &BorConfig{
|
Bor: &BorConfig{
|
||||||
JaipurBlock: big.NewInt(23850000),
|
JaipurBlock: big.NewInt(23850000),
|
||||||
DelhiBlock: big.NewInt(38189056),
|
DelhiBlock: big.NewInt(38189056),
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import (
|
||||||
const (
|
const (
|
||||||
VersionMajor = 1 // Major version component of the current release
|
VersionMajor = 1 // Major version component of the current release
|
||||||
VersionMinor = 2 // Minor version component of the current release
|
VersionMinor = 2 // Minor version component of the current release
|
||||||
VersionPatch = 3 // Patch version component of the current release
|
VersionPatch = 7 // Patch version component of the current release
|
||||||
VersionMeta = "" // Version metadata to append to the version string
|
VersionMeta = "" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue