mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
resolved conflicts
This commit is contained in:
parent
a37f60d6a3
commit
de13a538f6
1 changed files with 0 additions and 85 deletions
|
|
@ -25,91 +25,6 @@ func SetIShyftTracer(st shyfttracerinterface.IShyftTracer) {
|
||||||
IShyftTracer = st
|
IShyftTracer = st
|
||||||
}
|
}
|
||||||
|
|
||||||
// //SBlock type
|
|
||||||
// type SBlock struct {
|
|
||||||
// Hash string
|
|
||||||
// Coinbase string
|
|
||||||
// AgeGet string
|
|
||||||
// Age time.Time
|
|
||||||
// ParentHash string
|
|
||||||
// UncleHash string
|
|
||||||
// Difficulty string
|
|
||||||
// Size string
|
|
||||||
// Rewards string
|
|
||||||
// Number string
|
|
||||||
// GasUsed uint64
|
|
||||||
// GasLimit uint64
|
|
||||||
// Nonce uint64
|
|
||||||
// TxCount int
|
|
||||||
// UncleCount int
|
|
||||||
// Blocks []SBlock
|
|
||||||
// }
|
|
||||||
|
|
||||||
// type InteralWrite struct {
|
|
||||||
// Hash string
|
|
||||||
// Type string
|
|
||||||
// From string
|
|
||||||
// To string
|
|
||||||
// Value string
|
|
||||||
// Gas uint64
|
|
||||||
// GasUsed uint64
|
|
||||||
// Input string
|
|
||||||
// Output string
|
|
||||||
// Time string
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //blockRes struct
|
|
||||||
// // type blockRes struct {
|
|
||||||
// // hash string
|
|
||||||
// // coinbase string
|
|
||||||
// // number string
|
|
||||||
// // Blocks []SBlock
|
|
||||||
// // }
|
|
||||||
|
|
||||||
// type SAccounts struct {
|
|
||||||
// Addr string
|
|
||||||
// Balance string
|
|
||||||
// AccountNonce string
|
|
||||||
// }
|
|
||||||
|
|
||||||
// type accountRes struct {
|
|
||||||
// addr string
|
|
||||||
// balance string
|
|
||||||
// AllAccounts []SAccounts
|
|
||||||
// }
|
|
||||||
|
|
||||||
// type txRes struct {
|
|
||||||
// TxEntry []ShyftTxEntryPretty
|
|
||||||
// }
|
|
||||||
|
|
||||||
// type ShyftTxEntryPretty struct {
|
|
||||||
// TxHash string
|
|
||||||
// To *common.Address
|
|
||||||
// ToGet string
|
|
||||||
// From string
|
|
||||||
// BlockHash string
|
|
||||||
// BlockNumber string
|
|
||||||
// Amount string
|
|
||||||
// GasPrice uint64
|
|
||||||
// Gas uint64
|
|
||||||
// GasLimit uint64
|
|
||||||
// Cost uint64
|
|
||||||
// Nonce uint64
|
|
||||||
// Status string
|
|
||||||
// IsContract bool
|
|
||||||
// Age time.Time
|
|
||||||
// Data []byte
|
|
||||||
// }
|
|
||||||
|
|
||||||
// type SendAndReceive struct {
|
|
||||||
// To string
|
|
||||||
// From string
|
|
||||||
// Amount string
|
|
||||||
// Address string
|
|
||||||
// Balance string
|
|
||||||
// AccountNonce uint64 `json:",string"`
|
|
||||||
// }
|
|
||||||
|
|
||||||
//SWriteBlock writes to block info to sql db
|
//SWriteBlock writes to block info to sql db
|
||||||
func SWriteBlock(block *types.Block, receipts []*types.Receipt) error {
|
func SWriteBlock(block *types.Block, receipts []*types.Receipt) error {
|
||||||
sqldb, err := DBConnection()
|
sqldb, err := DBConnection()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue