github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/store/mainchain/storages/block_info.go (about)

     1  package storages
     2  
     3  import (
     4  	"math/big"
     5  
     6  	"github.com/sixexorg/magnetic-ring/common"
     7  	"github.com/sixexorg/magnetic-ring/core/mainchain/types"
     8  	"github.com/sixexorg/magnetic-ring/store/mainchain/states"
     9  )
    10  
    11  type LeagueKV struct {
    12  	K common.Address
    13  	V common.Hash
    14  }
    15  
    16  type BlockInfo struct {
    17  	Block         *types.Block
    18  	Receipts      types.Receipts
    19  	AccountStates states.AccountStates
    20  	LeagueStates  states.LeagueStates
    21  	Members       states.LeagueMembers
    22  	LeagueKVs     []*LeagueKV
    23  	FeeSum        *big.Int
    24  	ObjTxs        types.Transactions
    25  	GasDestroy    *big.Int
    26  }
    27  
    28  func (this *BlockInfo) Height() uint64 {
    29  	return this.Block.Header.Height
    30  }