Skip to content

Commit d7ac313

Browse files
author
eric
committed
The new economic system and support required by the gas fee are added to the contract
1 parent f039053 commit d7ac313

File tree

3 files changed

+1
-157
lines changed

3 files changed

+1
-157
lines changed

consensus/parlia/abi.go

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,84 +2,6 @@ package parlia
22

33
const validatorSetABI = `
44
[
5-
{
6-
"inputs": [
7-
{
8-
"internalType": "contract IStaking",
9-
"name": "stakingContract",
10-
"type": "address"
11-
},
12-
{
13-
"internalType": "contract ISlashingIndicator",
14-
"name": "slashingIndicatorContract",
15-
"type": "address"
16-
},
17-
{
18-
"internalType": "contract ISystemReward",
19-
"name": "systemRewardContract",
20-
"type": "address"
21-
},
22-
{
23-
"internalType": "contract IStakingPool",
24-
"name": "stakingPoolContract",
25-
"type": "address"
26-
},
27-
{
28-
"internalType": "contract IGovernance",
29-
"name": "governanceContract",
30-
"type": "address"
31-
},
32-
{
33-
"internalType": "contract IChainConfig",
34-
"name": "chainConfigContract",
35-
"type": "address"
36-
},
37-
{
38-
"internalType": "contract IRuntimeUpgrade",
39-
"name": "runtimeUpgradeContract",
40-
"type": "address"
41-
},
42-
{
43-
"internalType": "contract IDeployerProxy",
44-
"name": "deployerProxyContract",
45-
"type": "address"
46-
}
47-
],
48-
"stateMutability": "nonpayable",
49-
"type": "constructor"
50-
},
51-
{
52-
"inputs": [
53-
{
54-
"internalType": "uint64",
55-
"name": "blockNumber",
56-
"type": "uint64"
57-
}
58-
],
59-
"name": "OnlyBlock",
60-
"type": "error"
61-
},
62-
{
63-
"inputs": [
64-
{
65-
"internalType": "address",
66-
"name": "coinbase",
67-
"type": "address"
68-
}
69-
],
70-
"name": "OnlyCoinbase",
71-
"type": "error"
72-
},
73-
{
74-
"inputs": [],
75-
"name": "OnlyGovernance",
76-
"type": "error"
77-
},
78-
{
79-
"inputs": [],
80-
"name": "OnlySlashingIndicator",
81-
"type": "error"
82-
},
835
{
846
"anonymous": false,
857
"inputs": [

consensus/parlia/parlia.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ func (p *Parlia) getCurrentValidators(blockHash common.Hash) ([]common.Address,
10541054
}
10551055
func (p *Parlia) BlockRewards(blockNumber *big.Int) *big.Int {
10561056
if rules := p.chainConfig.Rules(blockNumber); rules.HasBlockRewards {
1057-
if p.chainConfig.Parlia.StopMintBlock.Cmp(blockNumber) >= 0 {
1057+
if p.chainConfig.Parlia.StopMintBlock != nil && p.chainConfig.Parlia.StopMintBlock.Cmp(blockNumber) >= 0 {
10581058
return big.NewInt(0)
10591059
}
10601060
blockRewards := p.chainConfig.Parlia.BlockRewards

eth/abi.go

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,84 +2,6 @@ package eth
22

33
const chainConfigABI = `
44
[
5-
{
6-
"inputs": [
7-
{
8-
"internalType": "contract IStaking",
9-
"name": "stakingContract",
10-
"type": "address"
11-
},
12-
{
13-
"internalType": "contract ISlashingIndicator",
14-
"name": "slashingIndicatorContract",
15-
"type": "address"
16-
},
17-
{
18-
"internalType": "contract ISystemReward",
19-
"name": "systemRewardContract",
20-
"type": "address"
21-
},
22-
{
23-
"internalType": "contract IStakingPool",
24-
"name": "stakingPoolContract",
25-
"type": "address"
26-
},
27-
{
28-
"internalType": "contract IGovernance",
29-
"name": "governanceContract",
30-
"type": "address"
31-
},
32-
{
33-
"internalType": "contract IChainConfig",
34-
"name": "chainConfigContract",
35-
"type": "address"
36-
},
37-
{
38-
"internalType": "contract IRuntimeUpgrade",
39-
"name": "runtimeUpgradeContract",
40-
"type": "address"
41-
},
42-
{
43-
"internalType": "contract IDeployerProxy",
44-
"name": "deployerProxyContract",
45-
"type": "address"
46-
}
47-
],
48-
"stateMutability": "nonpayable",
49-
"type": "constructor"
50-
},
51-
{
52-
"inputs": [
53-
{
54-
"internalType": "uint64",
55-
"name": "blockNumber",
56-
"type": "uint64"
57-
}
58-
],
59-
"name": "OnlyBlock",
60-
"type": "error"
61-
},
62-
{
63-
"inputs": [
64-
{
65-
"internalType": "address",
66-
"name": "coinbase",
67-
"type": "address"
68-
}
69-
],
70-
"name": "OnlyCoinbase",
71-
"type": "error"
72-
},
73-
{
74-
"inputs": [],
75-
"name": "OnlyGovernance",
76-
"type": "error"
77-
},
78-
{
79-
"inputs": [],
80-
"name": "OnlySlashingIndicator",
81-
"type": "error"
82-
},
835
{
846
"anonymous": false,
857
"inputs": [

0 commit comments

Comments
 (0)