Skip to content

Commit

Permalink
Problem: slashing fix not applied on mainnet (#1040)
Browse files Browse the repository at this point in the history
* Problem: slashing fix not applied on mainnet

Solution:
- add mainnet softfork height

* fix workflow
  • Loading branch information
yihuang authored Mar 29, 2024
1 parent 1df9b2a commit 5d52377
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ jobs:
run: make nix-integration-test
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -118,8 +117,7 @@ jobs:
run: make nix-integration-test-upgrade
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -156,8 +154,7 @@ jobs:
run: make nix-integration-test-ledger
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -194,8 +191,7 @@ jobs:
run: make nix-integration-test-solomachine
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -232,8 +228,7 @@ jobs:
run: make nix-integration-test-slow
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -270,8 +265,7 @@ jobs:
run: make nix-integration-test-ibc
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -308,8 +302,7 @@ jobs:
run: make nix-integration-test-byzantine
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -346,8 +339,7 @@ jobs:
run: make nix-integration-test-gov
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -385,8 +377,7 @@ jobs:
run: make nix-integration-test-grpc
- name: Convert coverage data
run: |
nix profile install nixpkgs#go_1_20
go tool covdata textfmt -i=coverage -o profile.txt
nix develop -c go tool covdata textfmt -i=coverage -o profile.txt
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

*Mar 1, 2024*
*Mar 29, 2024*

## v4.2.9

Expand Down
1 change: 1 addition & 0 deletions app/forks.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
var SlashingForkHeights = map[string]int64{
"testnet-croeseid-4": 14857500,
"tempcrypto-org-chain-mainnet-dryrun-1": 6782000,
"crypto-org-chain-mainnet-1": 16978800,
}

func SlashingForkEnabled(ctx sdk.Context) bool {
Expand Down

0 comments on commit 5d52377

Please sign in to comment.