Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme #512

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,23 @@ du -hsc /erigon/snapshots/*
4.1T /erigon/snapshots
```

```
# bsc-mainnet - archive - Sep 2024

du -hsc /erigon/*
327M /erigon/parlia
5.1G /erigon/chaindata
4.2T /erigon/snapshots
4.2T total

du -hsc /erigon/snapshots/*
332G /erigon-data/snapshots/accessor
562G /erigon-data/snapshots/domain
882G /erigon-data/snapshots/history
1.3T /erigon-data/snapshots/idx
4.4T /erigon/snapshots
```

### E3 other perf trics

- `--sync.loop.block.limit=10_000 --batchSize=2g` - likely will help for sync speed.
Expand Down
5 changes: 4 additions & 1 deletion cmd/state/exec3/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ func (rw *Worker) RunTxTaskNoLock(txTask *state.TxTask, isMining bool) {
rules := txTask.Rules
var err error
header := txTask.Header
lastBlockTime := header.Time - rw.chainConfig.Parlia.Period
var lastBlockTime uint64
if rw.isPoSA {
lastBlockTime = header.Time - rw.chainConfig.Parlia.Period
}
//fmt.Printf("txNum=%d blockNum=%d history=%t\n", txTask.TxNum, txTask.BlockNum, txTask.HistoryExecution)

switch {
Expand Down
4 changes: 2 additions & 2 deletions consensus/misc/eip4844.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ func VerifyAbsenceOfCancunHeaderFields(header *types.Header) error {
// VerifyPresenceOfBohrHeaderFields checks that the fields introduced in Cancun (EIP-4844, EIP-4788) are present.
func VerifyPresenceOfBohrHeaderFields(header *types.Header) error {
if header.BlobGasUsed == nil {
return fmt.Errorf("header is missing blobGasUsed")
return errors.New("header is missing blobGasUsed")
}
if header.ExcessBlobGas == nil {
return fmt.Errorf("header is missing excessBlobGas")
return errors.New("header is missing excessBlobGas")
}
if header.ParentBeaconBlockRoot == nil || *header.ParentBeaconBlockRoot != (libcommon.Hash{}) {
return fmt.Errorf("invalid parentBeaconRoot, have %#x, expected zero hash", header.ParentBeaconBlockRoot)
Expand Down
4 changes: 2 additions & 2 deletions consensus/parlia/feynmanfork.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package parlia

import (
"container/heap"
"fmt"
"errors"
"github.com/erigontech/erigon-lib/kv"
"github.com/erigontech/erigon-lib/kv/rawdbv3"
"math/big"
Expand Down Expand Up @@ -163,7 +163,7 @@ func (p *Parlia) getValidatorElectionInfo(header *types.Header, ibs *state.Intra
return nil, err
}
if totalLength.Int64() != int64(len(validators)) || totalLength.Int64() != int64(len(votingPowers)) || totalLength.Int64() != int64(len(voteAddrs)) {
return nil, fmt.Errorf("validator length not match")
return nil, errors.New("validator length not match")
}

validatorItems := make([]ValidatorItem, len(validators))
Expand Down
3 changes: 2 additions & 1 deletion eth/protocols/eth/protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ func TestNewBlockPacket_EncodeDecode(t *testing.T) {
var actual NewBlockPacket
err = rlp.DecodeBytes(enc, &actual)
require.NoError(t, err)
require.Equal(t, item.msg, actual)
_, err = rlp.EncodeToBytes(actual)
require.NoError(t, err)
}
}
Loading