From 073ece18df3073931e52d359e8ebbfd69338f221 Mon Sep 17 00:00:00 2001 From: Cedric Fung Date: Tue, 27 Sep 2022 21:51:33 +0000 Subject: [PATCH] bump version to v0.14.1 --- config/config.go | 2 +- kernel/space.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index f0e4a2859..59687f07f 100644 --- a/config/config.go +++ b/config/config.go @@ -10,7 +10,7 @@ import ( const ( Debug = true - BuildVersion = "v0.14.0-BUILD_VERSION" + BuildVersion = "v0.14.1-BUILD_VERSION" MainnetId = "6430225c42bb015b4da03102fa962e4f4ef3969e03e04345db229f8377ef7997" diff --git a/kernel/space.go b/kernel/space.go index 0a1819e02..334b15975 100644 --- a/kernel/space.go +++ b/kernel/space.go @@ -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) @@ -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 }