Update table columns (#26)

* Update block table names

* Update transaction table names
This commit is contained in:
Matt K
2018-02-02 16:12:14 -06:00
committed by GitHub
parent aea9c7b5e2
commit d5852654bb
9 changed files with 203 additions and 75 deletions
+6 -6
View File
@@ -1,13 +1,13 @@
package core
type Transaction struct {
Hash string `db:"tx_hash"`
Data string `db:"tx_input_data"`
Nonce uint64 `db:"tx_nonce"`
Hash string `db:"hash"`
Data string `db:"input_data"`
Nonce uint64 `db:"nonce"`
To string `db:"tx_to"`
From string `db:"tx_from"`
GasLimit int64 `db:"tx_gaslimit"`
GasPrice int64 `db:"tx_gasprice"`
GasLimit int64 `db:"gaslimit"`
GasPrice int64 `db:"gasprice"`
Receipt
Value string `db:"tx_value"`
Value string `db:"value"`
}