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
0f29c24b
Commit
0f29c24b
authored
Feb 28, 2019
by
vipwzw
Committed by
33cn
Feb 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linter
parent
8699771d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
ticket.go
plugin/dapp/ticket/wallet/ticket.go
+1
-1
proc.go
vendor/github.com/33cn/chain33/blockchain/proc.go
+1
-2
query_tx.go
vendor/github.com/33cn/chain33/blockchain/query_tx.go
+0
-5
queueprotocol.go
vendor/github.com/33cn/chain33/client/queueprotocol.go
+2
-2
No files found.
plugin/dapp/ticket/wallet/ticket.go
View file @
0f29c24b
...
...
@@ -338,7 +338,7 @@ func (policy *ticketPolicy) getTickets(addr string, status int32) ([]*ty.Ticket,
api
:=
policy
.
getAPI
()
msg
,
err
:=
api
.
Query
(
ty
.
TicketX
,
"TicketList"
,
reqaddr
)
if
err
!=
nil
{
bizlog
.
Error
(
"getTickets"
,
"Query error"
,
err
)
bizlog
.
Error
(
"getTickets"
,
"
addr"
,
addr
,
"status"
,
status
,
"
Query error"
,
err
)
return
nil
,
err
}
reply
:=
msg
.
(
*
ty
.
ReplyTicketList
)
...
...
vendor/github.com/33cn/chain33/blockchain/proc.go
View file @
0f29c24b
...
...
@@ -137,10 +137,9 @@ func (chain *BlockChain) queryTx(msg *queue.Message) {
txhash
:=
(
msg
.
Data
)
.
(
*
types
.
ReqHash
)
TransactionDetail
,
err
:=
chain
.
ProcQueryTxMsg
(
txhash
.
Hash
)
if
err
!=
nil
{
chainlog
.
Error
(
"ProcQueryTxMsg"
,
"err"
,
err
.
Error
())
chainlog
.
Debug
(
"ProcQueryTxMsg"
,
"err"
,
err
.
Error
())
msg
.
Reply
(
chain
.
client
.
NewMessage
(
"rpc"
,
types
.
EventTransactionDetail
,
err
))
}
else
{
//chainlog.Debug("ProcQueryTxMsg", "success", "ok")
msg
.
Reply
(
chain
.
client
.
NewMessage
(
"rpc"
,
types
.
EventTransactionDetail
,
TransactionDetail
))
}
}
...
...
vendor/github.com/33cn/chain33/blockchain/query_tx.go
View file @
0f29c24b
...
...
@@ -164,13 +164,8 @@ func (chain *BlockChain) ProcQueryTxMsg(txhash []byte) (proof *types.Transaction
if
err
!=
nil
{
return
nil
,
err
}
TransactionDetail
.
Proofs
=
proofs
chainlog
.
Debug
(
"ProcQueryTxMsg"
,
"proofs"
,
TransactionDetail
.
Proofs
)
setTxDetailFromTxResult
(
&
TransactionDetail
,
txresult
)
chainlog
.
Debug
(
"ProcQueryTxMsg"
,
"TransactionDetail"
,
TransactionDetail
.
String
())
return
&
TransactionDetail
,
nil
}
...
...
vendor/github.com/33cn/chain33/client/queueprotocol.go
View file @
0f29c24b
...
...
@@ -171,12 +171,12 @@ func (q *QueueProtocol) GetBlocks(param *types.ReqBlocks) (*types.BlockDetails,
func
(
q
*
QueueProtocol
)
QueryTx
(
param
*
types
.
ReqHash
)
(
*
types
.
TransactionDetail
,
error
)
{
if
param
==
nil
{
err
:=
types
.
ErrInvalidParam
log
.
Error
(
"QueryTx"
,
"Error"
,
err
)
log
.
Debug
(
"QueryTx"
,
"Error"
,
err
)
return
nil
,
err
}
msg
,
err
:=
q
.
query
(
blockchainKey
,
types
.
EventQueryTx
,
param
)
if
err
!=
nil
{
log
.
Error
(
"QueryTx"
,
"Error"
,
err
.
Error
())
log
.
Debug
(
"QueryTx"
,
"Error"
,
err
.
Error
())
return
nil
,
err
}
if
reply
,
ok
:=
msg
.
GetData
()
.
(
*
types
.
TransactionDetail
);
ok
{
...
...
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