From 9a1c01f4e474938101910b3a88bc7f7ff40adad6 Mon Sep 17 00:00:00 2001 From: chengzhinei Date: Mon, 13 Feb 2023 21:34:06 +0800 Subject: [PATCH] Merge PR: upload delta when fast sync (#2947) --- libs/tendermint/state/execution_dds.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libs/tendermint/state/execution_dds.go b/libs/tendermint/state/execution_dds.go index 4bc44420a6..f9bb79ca66 100644 --- a/libs/tendermint/state/execution_dds.go +++ b/libs/tendermint/state/execution_dds.go @@ -193,13 +193,11 @@ func (dc *DeltaContext) postApplyBlock(height int64, deltaInfo *DeltaInfo, // delta producer if dc.uploadDelta { trace.GetElapsedInfo().AddInfo(trace.Delta, fmt.Sprintf("ratio<%.2f>", dc.hitRatio())) - if !isFastSync { - wdFunc := evmWatchDataManager.CreateWatchDataGenerator() - wasmWdFunc := wasmWatchDataManager.CreateWatchDataGenerator() - go dc.uploadData(height, abciResponses, deltaMap, wdFunc, wasmWdFunc) - } else { - dc.logger.Info("Do not upload delta in case of fast sync:", "target-height", height) - } + + wdFunc := evmWatchDataManager.CreateWatchDataGenerator() + wasmWdFunc := wasmWatchDataManager.CreateWatchDataGenerator() + go dc.uploadData(height, abciResponses, deltaMap, wdFunc, wasmWdFunc) + } }