Commit e53be286 authored by linj's avatar linj Committed by vipwzw

tradeAction not need coinsAccount field

parent dda04c7e
...@@ -11,7 +11,6 @@ import ( ...@@ -11,7 +11,6 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/33cn/chain33/account"
"github.com/33cn/chain33/client" "github.com/33cn/chain33/client"
"github.com/33cn/chain33/common" "github.com/33cn/chain33/common"
dbm "github.com/33cn/chain33/common/db" dbm "github.com/33cn/chain33/common/db"
...@@ -247,7 +246,6 @@ func (buydb *buyDB) getSellLogs(sellerAddr string, sellID string, boardlotCnt in ...@@ -247,7 +246,6 @@ func (buydb *buyDB) getSellLogs(sellerAddr string, sellID string, boardlotCnt in
} }
type tradeAction struct { type tradeAction struct {
coinsAccount *account.DB
db dbm.KV db dbm.KV
txhash string txhash string
fromaddr string fromaddr string
...@@ -259,7 +257,7 @@ type tradeAction struct { ...@@ -259,7 +257,7 @@ type tradeAction struct {
func newTradeAction(t *trade, tx *types.Transaction) *tradeAction { func newTradeAction(t *trade, tx *types.Transaction) *tradeAction {
hash := hex.EncodeToString(tx.Hash()) hash := hex.EncodeToString(tx.Hash())
fromaddr := tx.From() fromaddr := tx.From()
return &tradeAction{t.GetCoinsAccount(), t.GetStateDB(), hash, fromaddr, return &tradeAction{t.GetStateDB(), hash, fromaddr,
t.GetBlockTime(), t.GetHeight(), dapp.ExecAddress(string(tx.Execer))} t.GetBlockTime(), t.GetHeight(), dapp.ExecAddress(string(tx.Execer))}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment