Difference between revisions of "Geth snapshot"

From wikieduonline
Jump to navigation Jump to search
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  [[geth snapshot --help]]
 
  [[geth snapshot --help]]
  <code>[[geth snapshot prune-state]]</code>
+
  [[geth snapshot verify-state]]
 +
[[geth snapshot prune-state]]
 +
[[geth snapshot check-dangling-storage]]
 +
[[geth snapshot inspect-account]] 
 +
[[geth snapshot traverse-state]]   
 +
[[geth snapshot traverse-rawstate]]     
 +
[[geth snapshot dump]]                 
 +
[[geth snapshot export-preimages]]
  
<pre>
 
geth snapshot --help
 
NAME:
 
  geth snapshot - A set of commands based on the snapshot
 
  
USAGE:
+
[[geth db stats]] | grep [[snapshots]]
  geth snapshot command [command options] [arguments...]
+
Snapshots: 0  earliest seq num: 0
  
COMMANDS:
+
[[geth db inspect]] | grep snapshot
  prune-state            Prune stale ethereum state data based on the snapshot
+
| Key-Value store      | Account snapshot       | 409.64 KiB |  8893 |
  verify-state            Recalculate state hash based on the snapshot for verification
+
  | Key-Value store      | Storage snapshot       | 0.00 B    |    0 |
  check-dangling-storage Check that there is no 'dangling' snap storage
+
| Key-Value store       | Clique snapshots        | 0.00 B    |    0 |
  inspect-account        Check all snapshot layers for the specific account
 
  traverse-state          Traverse the state with given root hash and perform quick verification
 
  traverse-rawstate       Traverse the state with given root hash and perform detailed verification
 
  dump                    Dump a specific block from storage (same as 'geth dump' but using snapshots)
 
  export-preimages       Export the preimage in snapshot enumeration order
 
  help, h                Shows a list of commands or help for one command
 
  
OPTIONS:
 
  
          --help, -h                          (default: false)
+
geth db metadata | grep snapshot
                show help
+
| [[snapshotDisabled]]        | false                                                             |
</pre>
+
| [[snapshotJournal]]        | 34 bytes                                                          |
 +
| [[snapshotRecoveryNumber]]  | <nil>                                                             |
 +
| [[snapshotRoot]]            | 0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709123454525434 |
  
 +
== Related errors ==
 +
* [[WARN Failed to load snapshot, regenerating]]
 +
* [[WARN Failed to load snapshot err="head doesn't match snapshot: have XXXX, want XXXX"]]
 +
* [[WARN Loaded snapshot journal]]
 +
* [[INFO aborting state snapshot generation]]
 +
* [[INFO Resuming state snapshot generation]]
 +
* [[INFO generating state snapshot]]
 +
* [[INFO Allocated cache and file handles]]
 +
* [[INFO Loaded most recent local block]]
 +
* [[INFO Loaded most recent local finalized block number]]
 +
 +
== Related ==
 +
* [[Snapshot]]
 +
* <code>[[geth logs]]</code>
 +
* <code>[[geth db]]</code>
 +
* <code>[[geth --snapshot]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{geth snapshot}}
 
* {{geth}}
 
* {{geth}}
  
 
[[Category:Geth]]
 
[[Category:Geth]]

Latest revision as of 11:52, 30 October 2024

geth snapshot --help
geth snapshot verify-state
geth snapshot prune-state
geth snapshot check-dangling-storage
geth snapshot inspect-account   
geth snapshot traverse-state     
geth snapshot traverse-rawstate      
geth snapshot dump                   
geth snapshot export-preimages 


geth db stats | grep snapshots
Snapshots: 0  earliest seq num: 0
geth db inspect | grep snapshot
| Key-Value store       | Account snapshot        | 409.64 KiB |  8893 |
| Key-Value store       | Storage snapshot        | 0.00 B     |     0 |
| Key-Value store       | Clique snapshots        | 0.00 B     |     0 |


geth db metadata | grep snapshot
| snapshotDisabled        | false                                                              |
| snapshotJournal         | 34 bytes                                                           |
| snapshotRecoveryNumber  | <nil>                                                              |
| snapshotRoot            | 0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709123454525434 |

Related errors[edit]

Related[edit]

See also[edit]

Advertising: