github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/cmd/util/README.md (about)

     1  # Util
     2  
     3  This package contains utilities that access a node's database.
     4  
     5  ## Usage
     6  
     7  Run `go run ./cmd/util` for usage details.
     8  
     9  
    10  ## Commands
    11  
    12  ### execution-state-extract
    13  Commands which reads WAL of Execution Node state from `execution-state-dir`, until it finds a State Commitment
    14  matching given `block-hash`. It then creates a checkpoint file (`root.checkpoint`) in `output-dir`. 
    15  This is Execution State at this block (with some historical states, according to cache length).
    16  
    17  Useful for sporking the network.
    18  
    19  Content of `output-dir` shall be used as Execution Node state directory to boot EN.
    20  
    21  Command should also print state commitment.