chain_makers

BlockGen

// BlockGen creates blocks for testing.
// See GenerateChain for a detailed explanation.
type BlockGen struct {
    i           int
    parent      *types.Block
    chain       []*types.Block
    chainReader consensus.ChainReader
    header      *types.Header
    statedb     *state.StateDB

    gasPool  *GasPool
    txs      []*types.Transaction
    receipts []*types.Receipt

    config *params.ChainConfig
    engine consensus.Engine
}

Last updated

Was this helpful?