Commit 8fdb6cbf authored by gitlab's avatar gitlab

auto ci

parent 286dcbfa
......@@ -216,7 +216,7 @@ func (cs *ConsensusState) Start() {
// Stop timer and receive routine
func (cs *ConsensusState) Stop() {
cs.timeoutTicker.Stop()
cs.Quit <-struct{}{}
cs.Quit <- struct{}{}
}
//------------------------------------------------------------
......
......@@ -352,7 +352,7 @@ func incr2Nonce(nonce *[24]byte) {
// increment nonce big-endian by 1 with wraparound.
func incrNonce(nonce *[24]byte) {
for i := 23; 0 <= i; i-- {
nonce[i] ++
nonce[i]++
if nonce[i] != 0 {
return
}
......
......@@ -29,6 +29,7 @@ const fee = 1e6
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
var r *rand.Rand
// TxHeightOffset needed
var TxHeightOffset int64
......
......@@ -143,6 +143,7 @@ func MinInt(a, b int) int {
}
return b
}
// MaxInt ...
func MaxInt(a, b int) int {
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