Documentation
¶
Index ¶
- func MineAndSync(t testing.TB, hn *HostNode, addr types.Address, n int)
- func MineBlocks(t testing.TB, cn *ConsensusNode, addr types.Address, n int)
- func V1Network() (*consensus.Network, types.Block)
- func V2Network() (*consensus.Network, types.Block)
- func WaitForSync(t testing.TB, cm *chain.Manager, idx *index.Manager)
- type ConsensusNode
- type HostNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MineAndSync ¶
MineAndSync is a helper to mine blocks and wait for the index to catch up between each block
func MineBlocks ¶
MineBlocks is a helper to mine blocks and broadcast the headers
func V1Network ¶
V1Network is a test helper that returns a consensus.Network and genesis block suited for testing the v1 network
Types ¶
type ConsensusNode ¶
A ConsensusNode is a node with the core consensus components
type HostNode ¶
type HostNode struct { ConsensusNode Certs *certificates.Manager Settings *settings.ConfigManager Wallet *wallet.SingleAddressWallet Contracts *contracts.Manager Volumes *storage.VolumeManager Indexer *index.Manager Accounts *accounts.AccountManager Registry *registry.Manager }
A HostNode is a node with the core wallet components and the host components
Click to show internal directories.
Click to hide internal directories.