Skip to content

Commit 073ece1

Browse files
committed
bump version to v0.14.1
1 parent 7962576 commit 073ece1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
const (
1212
Debug = true
13-
BuildVersion = "v0.14.0-BUILD_VERSION"
13+
BuildVersion = "v0.14.1-BUILD_VERSION"
1414

1515
MainnetId = "6430225c42bb015b4da03102fa962e4f4ef3969e03e04345db229f8377ef7997"
1616

kernel/space.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ func (chain *Chain) AggregateRoundSpace() {
1919
}
2020
logger.Printf("AggregateRoundSpace(%s) begin with %d:%d\n", chain.ChainId, batch, round)
2121

22+
period := time.Duration(config.SnapshotRoundGap / 2)
23+
if chain.node.GetRemovedOrCancelledNode(chain.ChainId) != nil {
24+
period = time.Duration(chain.node.custom.Node.KernelOprationPeriod/2) * time.Second
25+
}
2226
for chain.running {
2327
if cs := chain.State; cs == nil {
2428
logger.Printf("AggregateRoundSpace(%s) no state yet\n", chain.ChainId)
@@ -30,7 +34,7 @@ func (chain *Chain) AggregateRoundSpace() {
3034
panic(fmt.Errorf("AggregateRoundSpace(%s) waiting %d %d", chain.ChainId, frn, round))
3135
}
3236
if frn < round+1 {
33-
time.Sleep(time.Duration(config.SnapshotRoundGap / 2))
37+
time.Sleep(period)
3438
continue
3539
}
3640

0 commit comments

Comments
 (0)