fix block out of order error
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user