core/chain_makers.go — Version Comparison
|
v1.16.8 |
v1.17.3 |
| Branch |
etc/v1.16.8-full-node |
etc/v1.17.3-full-node |
| Delta |
+4 -4 |
+4 -4 |
ETC delta on v1.16.8 (+4 -4)
diff --git a/core/chain_makers.go b/core/chain_makers.go
index af55716cc..19e848225 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -238,9 +238,9 @@ func (b *BlockGen) AddUncle(h *types.Header) {
// The gas limit and price should be derived from the parent
h.GasLimit = parent.GasLimit
- if b.cm.config.IsLondon(h.Number) {
+ if b.cm.config.IsEIP1559(h.Number) {
h.BaseFee = eip1559.CalcBaseFee(b.cm.config, parent)
- if !b.cm.config.IsLondon(parent.Number) {
+ if !b.cm.config.IsEIP1559(parent.Number) {
parentGasLimit := parent.GasLimit * b.cm.config.ElasticityMultiplier()
h.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
}
@@ -606,9 +606,9 @@ func (cm *chainMaker) makeHeader(parent *types.Block, state *state.StateDB, engi
Time: time,
}
- if cm.config.IsLondon(header.Number) {
+ if cm.config.IsEIP1559(header.Number) {
header.BaseFee = eip1559.CalcBaseFee(cm.config, parentHeader)
- if !cm.config.IsLondon(parent.Number()) {
+ if !cm.config.IsEIP1559(parent.Number()) {
parentGasLimit := parent.GasLimit() * cm.config.ElasticityMultiplier()
header.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
}
ETC delta on v1.17.3 (+4 -4)
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 46cd98de6..025f5ba68 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -239,9 +239,9 @@ func (b *BlockGen) AddUncle(h *types.Header) {
// The gas limit and price should be derived from the parent
h.GasLimit = parent.GasLimit
- if b.cm.config.IsLondon(h.Number) {
+ if b.cm.config.IsEIP1559(h.Number) {
h.BaseFee = eip1559.CalcBaseFee(b.cm.config, parent)
- if !b.cm.config.IsLondon(parent.Number) {
+ if !b.cm.config.IsEIP1559(parent.Number) {
parentGasLimit := parent.GasLimit * b.cm.config.ElasticityMultiplier()
h.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
}
@@ -516,9 +516,9 @@ func (cm *chainMaker) makeHeader(parent *types.Block, state *state.StateDB, engi
Time: time,
}
- if cm.config.IsLondon(header.Number) {
+ if cm.config.IsEIP1559(header.Number) {
header.BaseFee = eip1559.CalcBaseFee(cm.config, parentHeader)
- if !cm.config.IsLondon(parent.Number()) {
+ if !cm.config.IsEIP1559(parent.Number()) {
parentGasLimit := parent.GasLimit() * cm.config.ElasticityMultiplier()
header.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
}
← Back to Version Comparison