Documentation ¶
Index ¶
- func NewChainDebugger(w io.Writer, users []key.Sender) *chaindebugger
- type Chain
- func (c *Chain) Append(blk *block.Block)
- func (c *Chain) Base() (*block.Block, error)
- func (c *Chain) BlockByIndex(i int) *block.Block
- func (c *Chain) Get(h []byte) (*block.Block, error)
- func (c *Chain) Head() (*block.Block, error)
- func (c *Chain) HeadHash() []byte
- func (c *Chain) Iter() block.Iterator
- func (c *Chain) Len() int
- func (c *Chain) Push(blk *block.Block) error
- func (c *Chain) Transaction(id []byte) *block.Transaction
- type Engine
- type TransactionBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain is an in memory blockchain used for testing
func (*Chain) BlockByIndex ¶
BlockByIndex indexes the underlying array of blocks
func (*Chain) Transaction ¶
func (c *Chain) Transaction(id []byte) *block.Transaction
Transaction will get a transaction
type Engine ¶
type Engine struct { Chain block.Chain UTXO block.UTXOSet // contains filtered or unexported fields }
Engine is a type that is meant to facilitate randomized transactions for the purpose of testing
type TransactionBuilder ¶
type TransactionBuilder struct {
// contains filtered or unexported fields
}
func (*TransactionBuilder) BuildTransactions ¶
func (txb *TransactionBuilder) BuildTransactions(f block.TxFinder) ([]*block.Transaction, error)
func (*TransactionBuilder) Reset ¶
func (txb *TransactionBuilder) Reset()
Click to show internal directories.
Click to hide internal directories.