Rename transactions to full_sync_transactions

- Table has foreign key to blocks
- Add transaction RLP and transaction index to table
- Enables other tables with standalone transactions or transactions
  associated with other data structures (e.g. headers)
This commit is contained in:
Rob Mulholand
2019-03-28 14:31:17 -05:00
parent 48f6114791
commit d93006321b
30 changed files with 498 additions and 272 deletions
+8 -6
View File
@@ -17,13 +17,15 @@
package core
type Transaction struct {
Hash string `db:"hash"`
Data string `db:"input_data"`
Nonce uint64 `db:"nonce"`
To string `db:"tx_to"`
From string `db:"tx_from"`
GasLimit uint64 `db:"gaslimit"`
GasPrice int64 `db:"gasprice"`
GasLimit uint64
GasPrice int64
Hash string
Nonce uint64
Raw []byte
Receipt
Value string `db:"value"`
To string `db:"tx_to"`
TxIndex int64 `db:"tx_index"`
Value string
}