misc

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2018 License: GPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Generate genesis

we can use genesis related tools to generate genesis.josn or genesis allocates for dev and mainnet.

1. generate genesis.json

use gen_genesis/main.go to generate genesis output, then we can redirect the output to somewhere you want.

  • development genesis output
$ cd gen_genesis
$ go run ./main.go dev > ../genesis/dev_genesis.json
  • mainnet genesis output
$ cd gen_genesis
$ go run ./main.go mainnet > ../genesis/mainnet_genesis.json

the genesis.josn can be used to --vm-genesis string VM genesis file when init the node. if we omit the --vm-genesis, the app will use default config. the default config come from the genesis.go and *_alloc.go.

2. how to make allocates

use genesis/mkalloc.go to make allocates, example as follow

$ cd genesis
$ go run ./mkalloc.go devAllocData ./dev_genesis.go > dev_alloc.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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