chainbuilder

command
v3.0.0-...-051b268 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

README

Chainbuilder

chainbuilder is a tool for building a Celestia chain for testing and development purposes.

Usage

Use go to run the binary as follows:

go run ./tools/chainbuilder

This will create a directory with the name testnode-{chainID}. All files will be populated and blocks generated based on specified input. You can run a validator on the file system afterwards by calling:

celestia-appd start --home /path/to/testnode-{chainID}

The following are the set of options when generating a chain:

  • num-blocks the number of blocks to be generated (default: 100)
  • block-size the size of the blocks to be generated (default <2MB). This will be a single PFB transaction
  • square-size the size of the max square (default: 128)
  • existing-dir point this to a directory if you want to extend an existing chain rather than create a new one
  • namespace allows you to pick a custom v0 namespace. By default "test" will be chosen.

This tool takes roughly 60-70ms per 2MB block.

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