24bc83a448
* Add block categorization (is_final=) * Add godo task for vulcanizeDB (Example of how everything could work together) * Add unique constraint on block_number and node * Add index on block_id for transactions_table * Add node_id index on blocks table * Sort transactions returned from FindBlock by tx_hash * lowercase tx_to, tx_from like etherscan
17 lines
287 B
Go
17 lines
287 B
Go
package core
|
|
|
|
type Block struct {
|
|
Difficulty int64
|
|
GasLimit int64
|
|
GasUsed int64
|
|
Hash string
|
|
Nonce string
|
|
Number int64
|
|
ParentHash string
|
|
Size int64
|
|
Time int64
|
|
Transactions []Transaction
|
|
UncleHash string
|
|
IsFinal bool
|
|
}
|