Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
e53be286
Commit
e53be286
authored
Sep 02, 2019
by
linj
Committed by
vipwzw
Sep 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tradeAction not need coinsAccount field
parent
dda04c7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
tradedb.go
plugin/dapp/trade/executor/tradedb.go
+7
-9
No files found.
plugin/dapp/trade/executor/tradedb.go
View file @
e53be286
...
...
@@ -11,7 +11,6 @@ import (
"strconv"
"strings"
"github.com/33cn/chain33/account"
"github.com/33cn/chain33/client"
"github.com/33cn/chain33/common"
dbm
"github.com/33cn/chain33/common/db"
...
...
@@ -247,19 +246,18 @@ func (buydb *buyDB) getSellLogs(sellerAddr string, sellID string, boardlotCnt in
}
type
tradeAction
struct
{
coinsAccount
*
account
.
DB
db
dbm
.
KV
txhash
string
fromaddr
string
blocktime
int64
height
int64
execaddr
string
db
dbm
.
KV
txhash
string
fromaddr
string
blocktime
int64
height
int64
execaddr
string
}
func
newTradeAction
(
t
*
trade
,
tx
*
types
.
Transaction
)
*
tradeAction
{
hash
:=
hex
.
EncodeToString
(
tx
.
Hash
())
fromaddr
:=
tx
.
From
()
return
&
tradeAction
{
t
.
Get
CoinsAccount
(),
t
.
Get
StateDB
(),
hash
,
fromaddr
,
return
&
tradeAction
{
t
.
GetStateDB
(),
hash
,
fromaddr
,
t
.
GetBlockTime
(),
t
.
GetHeight
(),
dapp
.
ExecAddress
(
string
(
tx
.
Execer
))}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment