Documentation ¶
Index ¶
- type Option
- func Datastore(ds repo.Datastore) Option
- func DefaultOptions() Option
- func GenesisOutputs(outputs []*transactions.Output) Option
- func InitialCoins(n uint64) Option
- func NBlocks(n int) Option
- func NTxsPerBlock(n int) Option
- func NetworkKey(privKey crypto.PrivKey) Option
- func Params(params *params.NetworkParams) Option
- func SpendKey(privKey crypto.PrivKey) Option
- type SpendableNote
- type TestHarness
- func (h *TestHarness) Accumulator() *blockchain.Accumulator
- func (h *TestHarness) Blockchain() *blockchain.Blockchain
- func (h *TestHarness) Clone() (*TestHarness, error)
- func (h *TestHarness) GenerateBlockWithTransactions(txs []*transactions.Transaction, createdNotes []*SpendableNote) error
- func (h *TestHarness) GenerateBlocks(n int) error
- func (h *TestHarness) SpendableNotes() []*SpendableNote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(cfg *config) error
Option is configuration option function for the Network
func DefaultOptions ¶
func DefaultOptions() Option
func GenesisOutputs ¶
func GenesisOutputs(outputs []*transactions.Output) Option
func InitialCoins ¶
func NTxsPerBlock ¶
func NetworkKey ¶
func Params ¶
func Params(params *params.NetworkParams) Option
type SpendableNote ¶
type TestHarness ¶
type TestHarness struct {
// contains filtered or unexported fields
}
func NewTestHarness ¶
func NewTestHarness(opts ...Option) (*TestHarness, error)
func (*TestHarness) Accumulator ¶
func (h *TestHarness) Accumulator() *blockchain.Accumulator
func (*TestHarness) Blockchain ¶
func (h *TestHarness) Blockchain() *blockchain.Blockchain
func (*TestHarness) Clone ¶
func (h *TestHarness) Clone() (*TestHarness, error)
func (*TestHarness) GenerateBlockWithTransactions ¶
func (h *TestHarness) GenerateBlockWithTransactions(txs []*transactions.Transaction, createdNotes []*SpendableNote) error
func (*TestHarness) GenerateBlocks ¶
func (h *TestHarness) GenerateBlocks(n int) error
func (*TestHarness) SpendableNotes ¶
func (h *TestHarness) SpendableNotes() []*SpendableNote
Click to show internal directories.
Click to hide internal directories.