Skip to content

Commit

Permalink
fix: fixed the bug of repeated jailed
Browse files Browse the repository at this point in the history
  • Loading branch information
fiamma-builder committed Aug 19, 2024
1 parent 8a3a0c5 commit 48739cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scripts/run_localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ if ! fiammad genesis validate-genesis; then
exit 1
fi

# P2P configuration
fiammad config set config p2p.addr_book_strict false --skip-validate

#RPC configuration
fiammad config set config rpc.laddr "tcp://0.0.0.0:26657" --skip-validate
#Explorer configuration
Expand Down
4 changes: 3 additions & 1 deletion x/bitvmstaker/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ func (k *Keeper) EndBlocker(ctx context.Context) error {
if err != nil {
return err
}
return k.stakingKeeper.Jail(ctx, conAddress)
if !validator.IsJailed() {
return k.stakingKeeper.Jail(ctx, conAddress)
}
}
}
return nil
Expand Down

0 comments on commit 48739cc

Please sign in to comment.