func Setup(isCheckTx bool) *RizonApp {
	app, genesisState := setup(!isCheckTx, 5)
	if !isCheckTx {
		stateBytes, err := json.MarshalIndent(genesisState, "", " ")
		if err != nil {
			panic(err)
		}
		app.InitChain(abci.RequestInitChain{
			Validators:      []abci.ValidatorUpdate{},
			ConsensusParams: DefaultConsensusParams,
			AppStateBytes:   stateBytes,
		})
	}
	return app
}
Setup initializes a new RizonApp.
package rizon
import (
	"encoding/json"
	rizontypes "github.com/rizon-world/rizon/types"
	abci "github.com/tendermint/tendermint/abci/types"
	"github.com/tendermint/tendermint/libs/log"
	tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
	tmtypes "github.com/tendermint/tendermint/types"
	dbm "github.com/tendermint/tm-db"
	"time"
)
var SetConfigFlag = false
func isConfigSet() bool {
	return SetConfigFlag
}
func toggleConfigFlag() {
	SetConfigFlag = !SetConfigFlag
}
var DefaultConsensusParams = &abci.ConsensusParams{
	Block: &abci.BlockParams{
		MaxBytes: 200000,
		MaxGas:   2000000,
	},
	Evidence: &tmproto.EvidenceParams{
		MaxAgeNumBlocks: 302400,
		MaxAgeDuration:  504 * time.Hour,  
		MaxBytes:        10000,
	},
	Validator: &tmproto.ValidatorParams{
		PubKeyTypes: []string{
			tmtypes.ABCIPubKeyTypeEd25519,
		},
	},
}
func SetRizonConfig() {
	if !isConfigSet() {
		rizontypes.SetConfig()
		toggleConfigFlag()
	}
}
func setup(withGenesis bool, invCheckPeriod uint) (*RizonApp, GenesisState) {
	SetRizonConfig()
	db := dbm.NewMemDB()
	encCdc := MakeEncodingConfig()
	app := NewRizonApp(log.NewNopLogger(),
		db,
		nil,
		true,
		map[int64]bool{},
		DefaultNodeHome,
		invCheckPeriod,
		encCdc,
		EmptyAppOptions{})
	if withGenesis {
		return app, NewDefaultGenesisState()
	}
	return app, GenesisState{}
}