Skip to content

core/rawdb/ancient_scheme.go — Version Comparison

v1.16.8 v1.17.3
Branch etc/v1.16.8-full-node etc/v1.17.3-full-node
Delta +8 -4 +8 -4
ETC delta on v1.16.8 (+8 -4)
diff --git a/core/rawdb/ancient_scheme.go b/core/rawdb/ancient_scheme.go
index afec7848c..7a30cc7b7 100644
--- a/core/rawdb/ancient_scheme.go
+++ b/core/rawdb/ancient_scheme.go
@@ -35,6 +35,9 @@ const (

    // ChainFreezerReceiptTable indicates the name of the freezer receipts table.
    ChainFreezerReceiptTable = "receipts"
+
+   // ETC: ChainFreezerDifficultyTable indicates the name of the freezer total difficulty table.
+   ChainFreezerDifficultyTable = "diffs"
 )

 // chainFreezerTableConfigs configures the settings for tables in the chain freezer.
@@ -42,10 +45,11 @@ const (
 // tail truncation is disabled for the header and hash tables, as these are intended
 // to be retained long-term.
 var chainFreezerTableConfigs = map[string]freezerTableConfig{
-   ChainFreezerHeaderTable:  {noSnappy: false, prunable: false},
-   ChainFreezerHashTable:    {noSnappy: true, prunable: false},
-   ChainFreezerBodiesTable:  {noSnappy: false, prunable: true},
-   ChainFreezerReceiptTable: {noSnappy: false, prunable: true},
+   ChainFreezerHeaderTable:     {noSnappy: false, prunable: false},
+   ChainFreezerHashTable:       {noSnappy: true, prunable: false},
+   ChainFreezerBodiesTable:     {noSnappy: false, prunable: true},
+   ChainFreezerReceiptTable:    {noSnappy: false, prunable: true},
+   ChainFreezerDifficultyTable: {noSnappy: false, prunable: false},
 }

 // freezerTableConfig contains the settings for a freezer table.
ETC delta on v1.17.3 (+8 -4)
diff --git a/core/rawdb/ancient_scheme.go b/core/rawdb/ancient_scheme.go
index afec7848c..980fd9ce8 100644
--- a/core/rawdb/ancient_scheme.go
+++ b/core/rawdb/ancient_scheme.go
@@ -35,6 +35,9 @@ const (

    // ChainFreezerReceiptTable indicates the name of the freezer receipts table.
    ChainFreezerReceiptTable = "receipts"
+
+   // ETC: ChainFreezerDifficultyTable indicates the name of the freezer total difficulty table.
+   ChainFreezerDifficultyTable = "diffs"
 )

 // chainFreezerTableConfigs configures the settings for tables in the chain freezer.
@@ -42,10 +45,11 @@ const (
 // tail truncation is disabled for the header and hash tables, as these are intended
 // to be retained long-term.
 var chainFreezerTableConfigs = map[string]freezerTableConfig{
-   ChainFreezerHeaderTable:  {noSnappy: false, prunable: false},
-   ChainFreezerHashTable:    {noSnappy: true, prunable: false},
-   ChainFreezerBodiesTable:  {noSnappy: false, prunable: true},
-   ChainFreezerReceiptTable: {noSnappy: false, prunable: true},
+   ChainFreezerHeaderTable:     {noSnappy: false, prunable: false},
+   ChainFreezerHashTable:       {noSnappy: true, prunable: false},
+   ChainFreezerBodiesTable:     {noSnappy: false, prunable: true},
+   ChainFreezerReceiptTable:    {noSnappy: false, prunable: true},
+   ChainFreezerDifficultyTable: {noSnappy: true, prunable: false},
 }

 // freezerTableConfig contains the settings for a freezer table.

← Back to Version Comparison