core/rawdb/ancient_scheme.go — Version Comparison¶
| v1.17.3 | v1.17.4 | |
|---|---|---|
| Branch | etc/v1.17.3-full-node |
etc/v1.17.4-full-node |
| Delta | +8 -4 | +5 -0 |
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.
ETC delta on v1.17.4 (+5 -0)
diff --git a/core/rawdb/ancient_scheme.go b/core/rawdb/ancient_scheme.go
index 9ee8f9d3d..417145e29 100644
--- a/core/rawdb/ancient_scheme.go
+++ b/core/rawdb/ancient_scheme.go
@@ -39,6 +39,9 @@ const (
// ChainFreezerBALTable indicates the name of the freezer block access list
// table introduced by EIP-7928.
ChainFreezerBALTable = "bals"
+
+ // ETC: ChainFreezerDifficultyTable indicates the name of the freezer total difficulty table.
+ ChainFreezerDifficultyTable = "diffs"
)
// Identifiers of tail groups used by the chain freezer.
@@ -64,6 +67,8 @@ var chainFreezerTableConfigs = map[string]freezerTableConfig{
ChainFreezerBodiesTable: {noSnappy: false, tailGroup: ChainFreezerBlockDataGroup},
ChainFreezerReceiptTable: {noSnappy: false, tailGroup: ChainFreezerBlockDataGroup},
ChainFreezerBALTable: {noSnappy: false, tailGroup: ChainFreezerBALGroup},
+ // ETC: total difficulty is retained long-term (not tail-pruned), like headers.
+ ChainFreezerDifficultyTable: {noSnappy: true},
}
// freezerTableConfig contains the settings for a freezer table.