fix block out of order error

This commit is contained in:
Tadge Dryja 2016-02-25 18:19:43 -08:00
parent caf56aaff0
commit 2c1f42d6fd

@ -396,9 +396,10 @@ func (s *SPVCon) AskForBlocks() error {
if dbTip == headerTip { // if this is the last block, indicate finality
hah.final = true
}
s.outMsgQueue <- gdataMsg
// 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.outMsgQueue <- gdataMsg
dbTip++
}
return nil