Commit 8fdb6cbf authored by gitlab's avatar gitlab

auto ci

parent 286dcbfa
...@@ -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{}{}
} }
//------------------------------------------------------------ //------------------------------------------------------------
......
...@@ -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
} }
......
...@@ -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
......
...@@ -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 {
......
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