core/rawdb/ancient_scheme.go¶
| Type | MOD |
| Upstream Lines | 147 |
| Changed | +8 -4 |
Add total difficulty to ancient freezer columns
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.