Skip to content

Commit

Permalink
Merge pull request #1974 from lavanet/evm-pruning-alignment
Browse files Browse the repository at this point in the history
chore: align evm chains to 128 blocks pruning
  • Loading branch information
ranlavanet authored Feb 25, 2025
2 parents 8a2d890 + 9514779 commit 89f54a2
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 318 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func New(
// If evidence needs to be handled for the app, set routes in router here and seal
app.EvidenceKeeper = *evidenceKeeper

govConfig := govtypes.Config{MaxMetadataLen: 3000} // 1640 TODO fix it from spec test proposal
govConfig := govtypes.Config{MaxMetadataLen: 4000} // 1640 TODO fix it from spec test proposal
govKeeper := govkeeper.NewKeeper(
appCodec, keys[govtypes.StoreKey], app.AccountKeeper, app.BankKeeper,
app.StakingKeeper, app.MsgServiceRouter(), govConfig,
Expand Down
23 changes: 1 addition & 22 deletions specs/mainnet-1/specs/arbitrum.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,6 @@
"expected_value": "0xa4b1"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 288000
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 284000
}
}
]
},
Expand Down Expand Up @@ -230,7 +209,7 @@
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 284000
"block": 127
}
}
]
Expand Down
18 changes: 1 addition & 17 deletions specs/mainnet-1/specs/avalanche.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,9 @@
"expected_value": "0xa86a"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 43200
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 42600
}
}
]
"extensions": []
},
{
"enabled": true,
Expand Down
21 changes: 0 additions & 21 deletions specs/mainnet-1/specs/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,6 @@
"expected_value": "0x2105"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 43200
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 42600
}
}
]
}
Expand Down
22 changes: 1 addition & 21 deletions specs/mainnet-1/specs/blast.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,9 @@
"expected_value": "0x13e31"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 43200
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 43000
}
}
]
"extensions": []
}
]
},
Expand Down
22 changes: 1 addition & 21 deletions specs/mainnet-1/specs/celo.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,9 @@
"expected_value": "0xa4ec"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 17280
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 17040
}
}
]
"extensions": []
},
{
"enabled": false,
Expand Down
10 changes: 5 additions & 5 deletions specs/mainnet-1/specs/ethereum.json
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@
},
"values": [
{
"latest_distance": 6646
"latest_distance": 128
},
{
"extension": "archive",
Expand Down Expand Up @@ -1118,7 +1118,7 @@
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 6554
"block": 127
}
}
]
Expand Down Expand Up @@ -1358,7 +1358,7 @@
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 6554
"block": 127
}
}
]
Expand Down Expand Up @@ -1711,7 +1711,7 @@
},
"values": [
{
"latest_distance": 6646
"latest_distance": 128
},
{
"extension": "archive",
Expand All @@ -1725,7 +1725,7 @@
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 6554
"block": 127
}
}
]
Expand Down
22 changes: 1 addition & 21 deletions specs/mainnet-1/specs/fantom.json
Original file line number Diff line number Diff line change
Expand Up @@ -818,29 +818,9 @@
"expected_value": "0xfa"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 57600
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 56800
}
}
]
"extensions": []
},
{
"enabled": true,
Expand Down
22 changes: 1 addition & 21 deletions specs/mainnet-1/specs/fuse.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,9 @@
"expected_value": "0x7a"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 17280
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 17000
}
}
]
"extensions": []
}
],
"contributor": [
Expand Down
22 changes: 1 addition & 21 deletions specs/mainnet-1/specs/optimism.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,29 +133,9 @@
"expected_value": "0xa"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 43200
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 42600
}
}
]
"extensions": []
}
]
},
Expand Down
22 changes: 1 addition & 21 deletions specs/mainnet-1/specs/polygon.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,29 +331,9 @@
"expected_value": "0x89"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 43200
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 42600
}
}
]
"extensions": []
}
]
},
Expand Down
22 changes: 1 addition & 21 deletions specs/mainnet-1/specs/worldchain.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,9 @@
"expected_value": "0x1e0"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 43200
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 42600
}
}
]
"extensions": []
}
]
},
Expand Down
22 changes: 1 addition & 21 deletions specs/testnet-2/specs/bsc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,9 @@
"expected_value": "0x38"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 28800
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 28400
}
}
]
"extensions": []
}
]
},
Expand Down
Loading

0 comments on commit 89f54a2

Please sign in to comment.