Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (29 loc) · 869 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 869 Bytes

cosmos-firewall

Suitable for blockchain networks built on cosmos-sdk

Supported Networks

  • ethermint
  • fxcore

How to support your own network

  1. go get <your project>
  2. implement the appCreator function
  3. registerAppCreator
 func init() {
	applicationCreator := func() (Application, error) {
		return app.NewEthermintApp(nil, nil, nil, true, map[int64]bool{}, os.TempDir(), 5,
			encoding.MakeConfig(app.ModuleBasics), simapp.EmptyAppOptions{}), nil
	}
	registerAppCreator(ETHERMINT, applicationCreator)
}

start

1. make install
2. firewalld --help
3. firewalld start

docker start

1. docker build . -t functionX/cosmos-firewall
2. docker run -idt --name firewall -p 26657:26657 -p 1317:1317 -p 9090:9090 -v `pwd`/config:/build/config functionX/cosmos-firewall start --config /build/config/config.toml