flow-dps-indexer

command
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

README

Flow DPS Indexer

Description

The Flow DPS Indexer binary implements the core functionality to create the index for past sporks. It needs a reference to the protocol state database of the spork, as well as the trie directory and an execution state checkpoint. The index is generated in the form of a Badger database that allows random access to any ledger register at any block height.

Usage

Usage of flow-dps-indexer:
  -c, --checkpoint string    checkpoint file for state trie
  -d, --data string          database directory for protocol data
  -f, --force                overwrite existing index database
  -i, --index string         database directory for state index (default "index")
  -a, --index-all            index everything
      --index-collections    index collections
      --index-commits        index commits
      --index-events         index events
      --index-guarantees     index collection guarantees
      --index-headers        index headers
      --index-payloads       index payloads
      --index-results        index transaction results
      --index-seals          index seals
      --index-transactions   index transactions
  -l, --level string         log output level (default "info")
  -m, --metrics                     enable metrics collection and output
      --metrics-interval duration   defines the interval of metrics output to log (default 5m0s)
  -t, --trie string          data directory for state ledger

Example

The below command line starts indexing a past spork from the on-disk information.

./flow-dps-indexer -a -l debug -d /var/flow/data/protocol -t /var/flow/data/execution -c /var/flow/bootstrap/root.checkpoint -i /var/flow/data/index

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL