Skip to content

Commit

Permalink
bump version to v0.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfung committed Sep 27, 2022
1 parent 7962576 commit 073ece1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
Debug = true
BuildVersion = "v0.14.0-BUILD_VERSION"
BuildVersion = "v0.14.1-BUILD_VERSION"

MainnetId = "6430225c42bb015b4da03102fa962e4f4ef3969e03e04345db229f8377ef7997"

Expand Down
6 changes: 5 additions & 1 deletion kernel/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ func (chain *Chain) AggregateRoundSpace() {
}
logger.Printf("AggregateRoundSpace(%s) begin with %d:%d\n", chain.ChainId, batch, round)

period := time.Duration(config.SnapshotRoundGap / 2)
if chain.node.GetRemovedOrCancelledNode(chain.ChainId) != nil {
period = time.Duration(chain.node.custom.Node.KernelOprationPeriod/2) * time.Second
}
for chain.running {
if cs := chain.State; cs == nil {
logger.Printf("AggregateRoundSpace(%s) no state yet\n", chain.ChainId)
Expand All @@ -30,7 +34,7 @@ func (chain *Chain) AggregateRoundSpace() {
panic(fmt.Errorf("AggregateRoundSpace(%s) waiting %d %d", chain.ChainId, frn, round))
}
if frn < round+1 {
time.Sleep(time.Duration(config.SnapshotRoundGap / 2))
time.Sleep(period)
continue
}

Expand Down

0 comments on commit 073ece1

Please sign in to comment.