You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/geth/dbcmd.go
+96Lines changed: 96 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,11 @@ package main
19
19
import (
20
20
"bytes"
21
21
"fmt"
22
+
"math"
22
23
"os"
23
24
"os/signal"
24
25
"path/filepath"
26
+
"runtime"
25
27
"slices"
26
28
"strconv"
27
29
"strings"
@@ -75,6 +77,7 @@ Remove blockchain and state databases`,
75
77
dbCompactCmd,
76
78
dbGetCmd,
77
79
dbDeleteCmd,
80
+
dbInspectTrieCmd,
78
81
dbPutCmd,
79
82
dbGetSlotsCmd,
80
83
dbDumpFreezerIndex,
@@ -93,6 +96,18 @@ Remove blockchain and state databases`,
93
96
Usage: "Inspect the storage size for each type of data in the database",
94
97
Description: `This commands iterates the entire database. If the optional 'prefix' and 'start' arguments are provided, then the iteration is limited to the given subset of data.`,
95
98
}
99
+
dbInspectTrieCmd=&cli.Command{
100
+
Action: inspectTrie,
101
+
Name: "inspect-trie",
102
+
ArgsUsage: "<blocknum> <jobnum>",
103
+
Flags: []cli.Flag{
104
+
utils.DataDirFlag,
105
+
},
106
+
Usage: "Print detailed trie information about the structure of account trie and storage tries.",
107
+
Description: `This commands iterates the entrie trie-backed state. If the 'blocknum' is not specified,
108
+
the latest block number will be used by default. 'jobnum' indicates the number of coroutines concurrently traversing
0 commit comments