review fixes
This commit is contained in:
+3
-3
@@ -20,14 +20,14 @@ type Block struct {
|
||||
Reward string `db:"reward"`
|
||||
Difficulty int64 `db:"difficulty"`
|
||||
ExtraData string `db:"extra_data"`
|
||||
GasLimit uint64 `db:"gaslimit"`
|
||||
GasUsed uint64 `db:"gasused"`
|
||||
GasLimit uint64 `db:"gas_limit"`
|
||||
GasUsed uint64 `db:"gas_used"`
|
||||
Hash string `db:"hash"`
|
||||
IsFinal bool `db:"is_final"`
|
||||
Miner string `db:"miner"`
|
||||
Nonce string `db:"nonce"`
|
||||
Number int64 `db:"number"`
|
||||
ParentHash string `db:"parenthash"`
|
||||
ParentHash string `db:"parent_hash"`
|
||||
Size string `db:"size"`
|
||||
Time int64 `db:"time"`
|
||||
Transactions []TransactionModel
|
||||
|
||||
@@ -19,8 +19,8 @@ package core
|
||||
type TransactionModel struct {
|
||||
Data []byte `db:"input_data"`
|
||||
From string `db:"tx_from"`
|
||||
GasLimit uint64
|
||||
GasPrice int64
|
||||
GasLimit uint64 `db:"gas_limit"`
|
||||
GasPrice int64 `db:"gas_price"`
|
||||
Hash string
|
||||
Nonce uint64
|
||||
Raw []byte
|
||||
|
||||
@@ -19,7 +19,6 @@ package core
|
||||
type Uncle struct {
|
||||
Id int64
|
||||
Miner string
|
||||
BlockHash string `db:"block_hash"`
|
||||
Reward string
|
||||
Hash string
|
||||
Timestamp string `db:"block_timestamp"`
|
||||
|
||||
Reference in New Issue
Block a user