From d82ef7a2a66619d7e82be5b881339476f0dfe6b7 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Mon, 4 Aug 2025 21:32:49 +0300 Subject: [PATCH 1/5] Update freezer_table_test.go --- core/rawdb/freezer_table_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/freezer_table_test.go b/core/rawdb/freezer_table_test.go index 447146393..91b4943e5 100644 --- a/core/rawdb/freezer_table_test.go +++ b/core/rawdb/freezer_table_test.go @@ -894,7 +894,7 @@ func getChunk(size int, b int) []byte { } // TODO (?) -// - test that if we remove several head-files, aswell as data last data-file, +// - test that if we remove several head-files, as well as data last data-file, // the index is truncated accordingly // Right now, the freezer would fail on these conditions: // 1. have data files d0, d1, d2, d3 From 965c94974e49d9a4107ccea6c579bdedf6df1d4a Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Mon, 4 Aug 2025 21:34:01 +0300 Subject: [PATCH 2/5] Update difflayer.go --- core/state/snapshot/difflayer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/snapshot/difflayer.go b/core/state/snapshot/difflayer.go index ac9fc98eb..c4be1973a 100644 --- a/core/state/snapshot/difflayer.go +++ b/core/state/snapshot/difflayer.go @@ -43,7 +43,7 @@ var ( aggregatorMemoryLimit = uint64(4 * 1024 * 1024) // aggregatorItemLimit is an approximate number of items that will end up - // in the agregator layer before it's flushed out to disk. A plain account + // in the aggregator layer before it's flushed out to disk. A plain account // weighs around 14B (+hash), a storage slot 32B (+hash), a deleted slot // 0B (+hash). Slots are mostly set/unset in lockstep, so that average at // 16B (+hash). All in all, the average entry seems to be 15+32=47B. Use a From c9e9252494c022786f05b54cb863cb5114695cc9 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Mon, 4 Aug 2025 21:37:55 +0300 Subject: [PATCH 3/5] Update freezer_test.go --- core/rawdb/freezer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/freezer_test.go b/core/rawdb/freezer_test.go index b4bd6a382..ad939e979 100644 --- a/core/rawdb/freezer_test.go +++ b/core/rawdb/freezer_test.go @@ -275,7 +275,7 @@ func TestFreezerReadonlyValidate(t *testing.T) { } require.NoError(t, f.Close()) - // Re-openening as readonly should fail when validating + //Re-opening as readonly should fail when validating // table lengths. _, err = NewFreezer(dir, "", true, 2049, tables) if err == nil { From 08ca4668330010ab4a46d62cef77f971ae324290 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Mon, 4 Aug 2025 21:38:50 +0300 Subject: [PATCH 4/5] Update accessors_chain_test.go --- core/rawdb/accessors_chain_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/accessors_chain_test.go b/core/rawdb/accessors_chain_test.go index a7ceb7299..2bd1a74eb 100644 --- a/core/rawdb/accessors_chain_test.go +++ b/core/rawdb/accessors_chain_test.go @@ -228,7 +228,7 @@ func TestBadBlockStorage(t *testing.T) { t.Fatalf("Failed to load all bad blocks") } - // Write a bunch of bad blocks, all the blocks are should sorted + // Write a bunch of bad blocks, all the blocks should sorted // in reverse order. The extra blocks should be truncated. for _, n := range rand.Perm(100) { block := types.NewBlockWithHeader(&types.Header{ From c7014363b32433426fb6d073a4e9d22d32f8d687 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Mon, 4 Aug 2025 21:39:48 +0300 Subject: [PATCH 5/5] Update pruner.go --- core/state/pruner/pruner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go index a0f95078d..b7398f213 100644 --- a/core/state/pruner/pruner.go +++ b/core/state/pruner/pruner.go @@ -121,7 +121,7 @@ func prune(snaptree *snapshot.Tree, root common.Hash, maindb ethdb.Database, sta // the trie nodes(and codes) belong to the active state will be filtered // out. A very small part of stale tries will also be filtered because of // the false-positive rate of bloom filter. But the assumption is held here - // that the false-positive is low enough(~0.05%). The probablity of the + // that the false-positive is low enough(~0.05%). The probability of the // dangling node is the state root is super low. So the dangling nodes in // theory will never ever be visited again. var (