fix block out of order error
This commit is contained in:
1 parent
caf56aaff0
commit
2c1f42d6fd
1 file changed
+2
-1
+2
-1
@@ -396,9 +396,10 @@ func (s *SPVCon) AskForBlocks() error {
|
|||||||
if dbTip == headerTip { // if this is the last block, indicate finality
|
if dbTip == headerTip { // if this is the last block, indicate finality
|
||||||
hah.final = true
|
hah.final = true
|
||||||
}
|
}
|
||||||
s.outMsgQueue <- gdataMsg
|
|
||||||
// waits here most of the time for the queue to empty out
|
// waits here most of the time for the queue to empty out
|
||||||
s.blockQueue <- hah // push height and mroot of requested block on queue
|
s.blockQueue <- hah // push height and mroot of requested block on queue
|
||||||
|
s.outMsgQueue <- gdataMsg
|
||||||
|
|
||||||
dbTip++
|
dbTip++
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user