|
|
@ -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 { |
|
|
|