Skip to content

Commit

Permalink
update ForkHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed May 20, 2023
1 parent bcdcfb8 commit c4853d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ func (app *BanksyApp) GetTxConfig() client.TxConfig {

// BeginBlocker application updates every begin block
func (app *BanksyApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
if ctx.BlockHeight() == fork.HaltHeight && ctx.ChainID() == fork.ChainID {
if ctx.BlockHeight() == fork.ForkHeight && ctx.ChainID() == fork.ChainID {
mintCoin := sdk.NewCoin(fork.TokenDenom, fork.FaucetAmount)
err := app.BankKeeper.MintCoins(ctx, minttypes.ModuleName, sdk.NewCoins(mintCoin))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion app/upgrade/fork-testnet-2.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ var (
TokenDenom = "upica"
FaucetAddress = "banksy1wxl09qwpwe94c5702ttw5hj8h4lr4k5cleakh6"
// TODO: need to calculate halt height from halt time.
HaltHeight = int64(25642)
ForkHeight = int64(50200)
ChainID = "banksy-testnet-2"
)

0 comments on commit c4853d9

Please sign in to comment.