From 565e9bf79a17e04077603900639389a5cd8a41a2 Mon Sep 17 00:00:00 2001 From: zjubfd <296179868@qq.com> Date: Tue, 11 Jan 2022 11:01:22 +0800 Subject: [PATCH] update comments fix ut --- core/blockchain_diff_test.go | 2 +- core/state_prefetcher.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/blockchain_diff_test.go b/core/blockchain_diff_test.go index facd86b52b..451a966589 100644 --- a/core/blockchain_diff_test.go +++ b/core/blockchain_diff_test.go @@ -372,7 +372,7 @@ func TestFreezeDiffLayer(t *testing.T) { t.Errorf("size of diff queue is wrong, expected: %d, get: %d", blockNum-1, fullBackend.chain.diffQueue.Size()) } - time.Sleep(diffLayerFreezerRecheckInterval + 1*time.Second) + time.Sleep(diffLayerFreezerRecheckInterval + 2*time.Second) if fullBackend.chain.diffQueue.Size() != int(fullBackend.chain.triesInMemory) { t.Errorf("size of diff queue is wrong, expected: %d, get: %d", blockNum, fullBackend.chain.diffQueue.Size()) } diff --git a/core/state_prefetcher.go b/core/state_prefetcher.go index a6b80d2449..ec4e7bf972 100644 --- a/core/state_prefetcher.go +++ b/core/state_prefetcher.go @@ -36,7 +36,7 @@ type statePrefetcher struct { engine consensus.Engine // Consensus engine used for block rewards } -// newStatePrefetcher initialises a new statePrefetcher. +// NewStatePrefetcher initialises a new statePrefetcher. func NewStatePrefetcher(config *params.ChainConfig, bc *BlockChain, engine consensus.Engine) *statePrefetcher { return &statePrefetcher{ config: config,