Skip to content

Commit

Permalink
fix using zero BreatheBlockInterval failed for ganges network
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Sep 7, 2020
1 parent f1d40d5 commit c5e7a7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,10 @@ func (app *BinanceChain) PreDeliverTx(req abci.RequestDeliverTx) (res abci.Respo
func (app *BinanceChain) isBreatheBlock(height int64, lastBlockTime time.Time, blockTime time.Time) bool {
// lastBlockTime is zero if this blockTime is for the first block (first block doesn't mean height = 1, because after
// state sync from breathe block, the height is breathe block + 1)
if height > 1455000 && height < 2463645{
if height > 1455000 && height < 2892000{
app.baseConfig.BreatheBlockInterval = 3112
}else{
app.baseConfig.BreatheBlockInterval = 0
}
if app.baseConfig.BreatheBlockInterval > 0 {
return height%int64(app.baseConfig.BreatheBlockInterval) == 0
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var (
Version string
)

const NodeVersion = "v0.7.2-bsc.beta.4"
const NodeVersion = "v0.7.2-bsc.beta.5"

func init() {
Version = fmt.Sprintf("Binance Chain Release: %s;", NodeVersion)
Expand Down

0 comments on commit c5e7a7b

Please sign in to comment.