clean up code

pull/166/head
Minh Doan 6 years ago committed by Minh Doan
parent 9bae7dd3bd
commit e3e3ec04bb
  1. 6
      services/explorer/service.go

@ -8,7 +8,6 @@ import (
"net/http" "net/http"
"os" "os"
"strconv" "strconv"
"time"
"github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/rlp"
"github.com/gorilla/mux" "github.com/gorilla/mux"
@ -142,11 +141,6 @@ func (s *Service) GetAccountBlocks(from, to int) []*types.Block {
return blocks return blocks
} }
// GetTime ...
func GetTime(timestamp int64) string {
return time.Unix(timestamp, 0).String()
}
// GetTransaction ... // GetTransaction ...
func GetTransaction(tx *types.Transaction, accountBlock *types.Block) Transaction { func GetTransaction(tx *types.Transaction, accountBlock *types.Block) Transaction {
if tx.To() == nil { if tx.To() == nil {

Loading…
Cancel
Save