Merge branch 'fix'

pull/166/head
Minh Doan 6 years ago
commit 7fc0df17cd
  1. 1
      services/explorer/service.go
  2. 1
      services/explorer/storage.go
  3. 1
      services/explorer/structs.go

@ -152,6 +152,7 @@ func GetTransaction(tx *types.Transaction, accountBlock *types.Block) Transactio
From: tx.To().Hex(),
To: tx.To().Hex(),
Value: strconv.Itoa(int(tx.GasPrice().Int64())),
Bytes: strconv.Itoa(int(tx.Size())),
}
}

@ -117,6 +117,7 @@ func (storage *Storage) Dump(accountBlock []byte, height uint32) {
From: tx.To().Hex(),
To: tx.To().Hex(),
Value: strconv.Itoa(int(tx.Value().Int64())),
Bytes: strconv.Itoa(int(tx.Size())),
}
if data, err := rlp.EncodeToBytes(explorerTransaction); err == nil {
key := GetTXKey(tx.Hash().Hex())

@ -27,6 +27,7 @@ type Transaction struct {
From string `json:"from"`
To string `json:"to"`
Value string `json:"value"`
Bytes string `json:"bytes"`
}
// BlockInfo ...

Loading…
Cancel
Save