Commit f0140fe1 authored by pengjun's avatar pengjun Committed by vipwzw

fix #203

parent 5a497198
...@@ -465,7 +465,6 @@ func (client *client) RequestTx(currSeq int64, preMainBlockHash []byte) ([]*type ...@@ -465,7 +465,6 @@ func (client *client) RequestTx(currSeq int64, preMainBlockHash []byte) ([]*type
//lastSeq = currSeq-1, main node not update //lastSeq = currSeq-1, main node not update
if lastSeq+1 == currSeq { if lastSeq+1 == currSeq {
plog.Debug("Waiting new sequence from main chain") plog.Debug("Waiting new sequence from main chain")
time.Sleep(time.Second * time.Duration(blockSec*2))
return nil, nil, -1, paracross.ErrParaWaitingNewSeq return nil, nil, -1, paracross.ErrParaWaitingNewSeq
} }
...@@ -604,7 +603,7 @@ func (client *client) CreateBlock() { ...@@ -604,7 +603,7 @@ func (client *client) CreateBlock() {
} }
} }
incSeqFlag = false incSeqFlag = false
time.Sleep(time.Second) time.Sleep(time.Second * time.Duration(blockSec))
continue continue
} }
......
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