Documentation
¶
Overview ¶
Package prottest provides utilities for Chain Protocol testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeBlock ¶
MakeBlock makes a new block from the pool in c, commits it, and returns it. It assumes c's consensus program requires 0 signatures. (This is true for chains returned by NewChain.) If c requires more than 0 signatures, MakeBlock will fail. MakeBlock always makes a block; if there are no transactions in the pool, it makes an empty block.
func NewChain ¶
NewChain makes a new Chain using memstore and mempool for storage, along with an initial block using a 0/0 multisig program. It commits the initial block before returning the Chain.
func NewChainWithStorage ¶
NewChainWithStorage makes a new Chain using store and pool for storage, along with an initial block using a 0/0 multisig program. It commits the initial block before returning the Chain.
Types ¶
This section is empty.