simulation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FreeNodesCount          = "free_node_count"
	Deposit                 = "deposit"
	SessionInactiveInterval = "session_inactive_interval"
)

Variables

This section is empty.

Functions

func GenerateRandomNode added in v0.2.0

func GenerateRandomNode(r *rand.Rand) types.Node

func GenerateRandomSession added in v0.2.0

func GenerateRandomSession(r *rand.Rand, id hub.SubscriptionID) types.Session

func GenerateRandomSubscription added in v0.2.0

func GenerateRandomSubscription(r *rand.Rand, node types.Node) types.Subscription

func SimulateEndBlock added in v0.2.0

func SimulateEndBlock(keeper vpn.Keeper) simulation.Operation

func SimulateMsgDeregisterNode added in v0.2.0

func SimulateMsgDeregisterNode(keeper vpn.Keeper) simulation.Operation

func SimulateMsgEndSubscription

func SimulateMsgEndSubscription(keeper vpn.Keeper) simulation.Operation

func SimulateMsgRegisterNode

func SimulateMsgRegisterNode(keeper vpn.Keeper) simulation.Operation

func SimulateMsgStartSubscription

func SimulateMsgStartSubscription(keeper vpn.Keeper) simulation.Operation

func SimulateMsgUpdateNodeInfo

func SimulateMsgUpdateNodeInfo(keeper vpn.Keeper) simulation.Operation

func SimulateMsgUpdateSessionInfo

func SimulateMsgUpdateSessionInfo(keeper vpn.Keeper) simulation.Operation

Types

This section is empty.

Jump to

Keyboard shortcuts

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