ipld-eth-server/pkg/core/block.go

21 lines
702 B
Go
Raw Normal View History

package core
type Block struct {
Reward float64 `db:"block_reward"`
Difficulty int64 `db:"block_difficulty"`
ExtraData string `db:"block_extra_data"`
GasLimit int64 `db:"block_gaslimit"`
GasUsed int64 `db:"block_gasused"`
Hash string `db:"block_hash"`
IsFinal bool `db:"is_final"`
Miner string `db:"block_miner"`
Nonce string `db:"block_nonce"`
Number int64 `db:"block_number"`
ParentHash string `db:"block_parenthash"`
Size int64 `db:"block_size"`
Time int64 `db:"block_time"`
2017-10-31 13:58:04 +00:00
Transactions []Transaction
UncleHash string `db:"uncle_hash"`
UnclesReward float64 `db:"block_uncles_reward"`
}