Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
integration:
name: Integration (unit + e2e + build)
runs-on: ubuntu-latest
timeout-minutes: 90
timeout-minutes: 180
needs: [meta]
outputs:
version: ${{ needs.meta.outputs.version }}
Expand Down Expand Up @@ -120,11 +120,11 @@ jobs:
set -euo pipefail

echo "Starting E2E..."
( go test -v -count=1 -timeout 40m ./e2e/... ) &
( go test -v -count=1 -timeout 120m ./e2e/... ) &
pid=$!
echo "E2E pid=$pid"

for i in $(seq 1 2700); do
for i in $(seq 1 7200); do
if ! kill -0 "$pid" 2>/dev/null; then
echo "E2E finished, waiting..."
wait "$pid"
Expand All @@ -149,14 +149,14 @@ jobs:
sleep 1
done

echo "ERROR: E2E exceeded watchdog (45m) - killing..."
echo "ERROR: E2E exceeded watchdog (120m) - killing..."
kill "$pid" || true
sleep 2
kill -9 "$pid" || true
exit 1


echo "ERROR: E2E exceeded watchdog (45m) - killing..."
echo "ERROR: E2E exceeded watchdog (120m) - killing..."
kill "$pid" || true
sleep 2
kill -9 "$pid" || true
Expand Down
224 changes: 0 additions & 224 deletions back_Makefile

This file was deleted.

10 changes: 5 additions & 5 deletions blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ func (b *Blockchain) updateGasPriceAvg(newValues []*big.Int) {
sum = sum.Add(sum, val)
}
if len(newValues) == 0 {
// Kein neuer Wert, setze Default falls kein alter Wert existiert
// No new value; set a default only when no previous value exists
if b.gpAverage.count.Uint64() == 0 {
b.gpAverage.price = big.NewInt(int64(chain.MinBaseFee))
b.gpAverage.count = big.NewInt(1)
return
}
// Ansonsten nichts ändern
// Otherwise keep the current value unchanged
return
}

Expand Down Expand Up @@ -1417,12 +1417,12 @@ func mulDivClampU64(a, b, c, d uint64) uint64 {

// CalculateBaseFee calculates the basefee of the header.
func (b *Blockchain) CalculateBaseFee(parent *types.Header) uint64 {
// Minimum BaseFee (statisch oder dynamisch)
// Minimum base fee (static or dynamic)
minBaseFee := b.resolveMinBaseFee(parent)

var baseFee uint64

// Genesis oder erster London-Block?
// Genesis or first London block?
if parent.BaseFee == 0 {
if b.config.Genesis.BaseFee > 0 {
baseFee = b.config.Genesis.BaseFee
Expand Down Expand Up @@ -1466,7 +1466,7 @@ func (b *Blockchain) CalculateBaseFee(parent *types.Header) uint64 {
}
}

// Sicherheitsanker: niemals unter minBaseFee
// Safety guard: never go below minBaseFee.
if baseFee < minBaseFee {
return minBaseFee
}
Expand Down
4 changes: 2 additions & 2 deletions blockchain/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ func TestBlockchain_WriteFullBlock(t *testing.T) {
Transactions: []*types.Transaction{tx},
},
Receipts: receipts,
}, "polybft")
}, "ibft")

require.NoError(t, err)
require.Equal(t, 0, len(db))
Expand All @@ -1507,7 +1507,7 @@ func TestBlockchain_WriteFullBlock(t *testing.T) {
Transactions: []*types.Transaction{tx},
},
Receipts: receipts,
}, "polybft")
}, "ibft")

require.NoError(t, err)
require.Equal(t, 8, len(db))
Expand Down
2 changes: 1 addition & 1 deletion bls/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func UnmarshalPrivateKey(data []byte) (*PrivateKey, error) {
}

// Otherwise, trying to assume the given data is a hex encoded big int represented as a bytes array.
// This is needed in order to be compatible with the currently stored polybft BLS keys.
// This is needed in order to be compatible with the currently stored legacy BLS keys.
var err error
if pk.s, err = hex.DecodeHexToBig(string(data)); err != nil {
return nil, err
Expand Down
4 changes: 3 additions & 1 deletion chain/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const (
EIP2929 = "EIP2929"
EIP2930 = "EIP2930"
EIP3651 = "EIP3651"
FeePoolSplit = "feePoolSplit"
)

// Forks is map which contains all forks and their starting blocks from genesis
Expand Down Expand Up @@ -153,6 +154,7 @@ func (f *Forks) At(block uint64) ForksInTime {
EIP2929: f.IsActive(EIP2929, block),
EIP2930: f.IsActive(EIP2930, block),
EIP3651: f.IsActive(EIP3651, block),
FeePoolSplit: f.IsActive(FeePoolSplit, block),
}
}

Expand Down Expand Up @@ -205,7 +207,7 @@ type ForksInTime struct {
EIP155,
QuorumCalcAlignment,
TxHashWithType,
LondonFix, EIP3860, EIP2929, EIP2930, EIP3651 bool
LondonFix, EIP3860, EIP2929, EIP2930, EIP3651, FeePoolSplit bool
}

// AllForksEnabled should contain all supported forks by current edge version
Expand Down
Loading
Loading