From 2c1f42d6fdb0ba17f9f6603f77037a5307a3a9a4 Mon Sep 17 00:00:00 2001 From: Tadge Dryja Date: Thu, 25 Feb 2016 18:19:43 -0800 Subject: [PATCH] fix block out of order error --- uspv/eight333.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uspv/eight333.go b/uspv/eight333.go index 54886036..5a6478a3 100644 --- a/uspv/eight333.go +++ b/uspv/eight333.go @@ -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