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
8fdb6cbf
Commit
8fdb6cbf
authored
Nov 23, 2018
by
gitlab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
286dcbfa
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
4 additions
and
2 deletions
+4
-2
consensus_state.go
plugin/consensus/tendermint/consensus_state.go
+1
-1
node.go
plugin/consensus/tendermint/node.go
+0
-0
secret_connection.go
plugin/consensus/tendermint/secret_connection.go
+1
-1
tendermint.go
plugin/consensus/tendermint/tendermint.go
+0
-0
nonePerf.go
plugin/consensus/tendermint/tools/nonePerf.go
+1
-0
block.go
plugin/consensus/tendermint/types/block.go
+0
-0
evidence.go
plugin/consensus/tendermint/types/evidence.go
+0
-0
util.go
plugin/consensus/tendermint/types/util.go
+1
-0
vote_set.go
plugin/consensus/tendermint/types/vote_set.go
+0
-0
No files found.
plugin/consensus/tendermint/consensus_state.go
View file @
8fdb6cbf
...
@@ -216,7 +216,7 @@ func (cs *ConsensusState) Start() {
...
@@ -216,7 +216,7 @@ func (cs *ConsensusState) Start() {
// Stop timer and receive routine
// Stop timer and receive routine
func
(
cs
*
ConsensusState
)
Stop
()
{
func
(
cs
*
ConsensusState
)
Stop
()
{
cs
.
timeoutTicker
.
Stop
()
cs
.
timeoutTicker
.
Stop
()
cs
.
Quit
<-
struct
{}{}
cs
.
Quit
<-
struct
{}{}
}
}
//------------------------------------------------------------
//------------------------------------------------------------
...
...
plugin/consensus/tendermint/node.go
View file @
8fdb6cbf
plugin/consensus/tendermint/secret_connection.go
View file @
8fdb6cbf
...
@@ -352,7 +352,7 @@ func incr2Nonce(nonce *[24]byte) {
...
@@ -352,7 +352,7 @@ func incr2Nonce(nonce *[24]byte) {
// increment nonce big-endian by 1 with wraparound.
// increment nonce big-endian by 1 with wraparound.
func
incrNonce
(
nonce
*
[
24
]
byte
)
{
func
incrNonce
(
nonce
*
[
24
]
byte
)
{
for
i
:=
23
;
0
<=
i
;
i
--
{
for
i
:=
23
;
0
<=
i
;
i
--
{
nonce
[
i
]
++
nonce
[
i
]
++
if
nonce
[
i
]
!=
0
{
if
nonce
[
i
]
!=
0
{
return
return
}
}
...
...
plugin/consensus/tendermint/tendermint.go
View file @
8fdb6cbf
plugin/consensus/tendermint/tools/nonePerf.go
View file @
8fdb6cbf
...
@@ -29,6 +29,7 @@ const fee = 1e6
...
@@ -29,6 +29,7 @@ const fee = 1e6
const
letterBytes
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
const
letterBytes
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
var
r
*
rand
.
Rand
var
r
*
rand
.
Rand
// TxHeightOffset needed
// TxHeightOffset needed
var
TxHeightOffset
int64
var
TxHeightOffset
int64
...
...
plugin/consensus/tendermint/types/block.go
View file @
8fdb6cbf
plugin/consensus/tendermint/types/evidence.go
View file @
8fdb6cbf
plugin/consensus/tendermint/types/util.go
View file @
8fdb6cbf
...
@@ -143,6 +143,7 @@ func MinInt(a, b int) int {
...
@@ -143,6 +143,7 @@ func MinInt(a, b int) int {
}
}
return
b
return
b
}
}
// MaxInt ...
// MaxInt ...
func
MaxInt
(
a
,
b
int
)
int
{
func
MaxInt
(
a
,
b
int
)
int
{
if
a
>
b
{
if
a
>
b
{
...
...
plugin/consensus/tendermint/types/vote_set.go
View file @
8fdb6cbf
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