Documentation ¶
Index ¶
Constants ¶
View Source
const (
SimAppChainID = "milkyway-app"
)
SimAppChainID hardcoded chainID for simulation
Variables ¶
View Source
var DefaultConsensusParams = &tmproto.ConsensusParams{ Block: &tmproto.BlockParams{ MaxBytes: 200000, MaxGas: 2000000, }, Evidence: &tmproto.EvidenceParams{ MaxAgeNumBlocks: 302400, MaxAgeDuration: 504 * time.Hour, MaxBytes: 10000, }, Validator: &tmproto.ValidatorParams{ PubKeyTypes: []string{ tmtypes.ABCIPubKeyTypeEd25519, }, }, }
DefaultConsensusParams defines the default Tendermint consensus params used in MilkyWayApp testing.
Functions ¶
func SetupWithGenesisValSet ¶
func SetupWithGenesisValSet(t *testing.T, valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount, balances ...banktypes.Balance) *milkyway.MilkyWayApp
SetupWithGenesisValSet initializes a new MilkyWayApp with a validator set and genesis accounts that also act as delegators. For simplicity, each validator is bonded with a delegation of one consensus engine unit in the default token of the MilkyWayApp from first genesis account. A Nop logger is set in MilkyWayApp.
Types ¶
type EmptyAppOptions ¶
type EmptyAppOptions struct{}
func (EmptyAppOptions) Get ¶
func (EmptyAppOptions) Get(_ string) interface{}
type PV ¶
type PV struct {
PrivKey cryptotypes.PrivKey
}
Click to show internal directories.
Click to hide internal directories.