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
ffcac50d
Commit
ffcac50d
authored
Nov 22, 2018
by
Hugo
Committed by
vipwzw
Nov 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tendermint valnode go vet problem
parent
f59b7b4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
peer_set.go
plugin/consensus/tendermint/peer_set.go
+1
-1
exec.go
plugin/dapp/valnode/executor/exec.go
+2
-2
No files found.
plugin/consensus/tendermint/peer_set.go
View file @
ffcac50d
...
@@ -537,7 +537,7 @@ FOR_LOOP:
...
@@ -537,7 +537,7 @@ FOR_LOOP:
tendermintlog
.
Debug
(
"Receiving vote"
,
"vote-height"
,
vote
.
Height
,
"peerip"
,
pc
.
ip
.
String
())
tendermintlog
.
Debug
(
"Receiving vote"
,
"vote-height"
,
vote
.
Height
,
"peerip"
,
pc
.
ip
.
String
())
pc
.
state
.
SetHasVote
(
vote
)
pc
.
state
.
SetHasVote
(
vote
)
}
else
if
pkt
.
TypeID
==
ttypes
.
ProposalBlockID
{
}
else
if
pkt
.
TypeID
==
ttypes
.
ProposalBlockID
{
block
:=
&
ttypes
.
TendermintBlock
{
realMsg
.
(
*
tmtypes
.
TendermintBlock
)}
block
:=
&
ttypes
.
TendermintBlock
{
TendermintBlock
:
realMsg
.
(
*
tmtypes
.
TendermintBlock
)}
tendermintlog
.
Debug
(
"Receiving proposal block"
,
"block-height"
,
block
.
Header
.
Height
,
"peerip"
,
pc
.
ip
.
String
())
tendermintlog
.
Debug
(
"Receiving proposal block"
,
"block-height"
,
block
.
Header
.
Height
,
"peerip"
,
pc
.
ip
.
String
())
pc
.
state
.
SetHasProposalBlock
(
block
)
pc
.
state
.
SetHasProposalBlock
(
block
)
}
}
...
...
plugin/dapp/valnode/executor/exec.go
View file @
ffcac50d
...
@@ -10,11 +10,11 @@ import (
...
@@ -10,11 +10,11 @@ import (
)
)
func
(
val
*
ValNode
)
Exec_Node
(
node
*
pty
.
ValNode
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
func
(
val
*
ValNode
)
Exec_Node
(
node
*
pty
.
ValNode
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
receipt
:=
&
types
.
Receipt
{
types
.
ExecOk
,
nil
,
nil
}
receipt
:=
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
nil
,
Logs
:
nil
}
return
receipt
,
nil
return
receipt
,
nil
}
}
func
(
val
*
ValNode
)
Exec_BlockInfo
(
blockInfo
*
pty
.
TendermintBlockInfo
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
func
(
val
*
ValNode
)
Exec_BlockInfo
(
blockInfo
*
pty
.
TendermintBlockInfo
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
receipt
:=
&
types
.
Receipt
{
types
.
ExecOk
,
nil
,
nil
}
receipt
:=
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
nil
,
Logs
:
nil
}
return
receipt
,
nil
return
receipt
,
nil
}
}
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