From 6efb032b54bd38efa98e6d39021a765d9997857c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 1 Oct 2020 11:10:09 +1000 Subject: New Tx must have completed=false This uncovers a race condition where new Tx are already marked completed. --- funcs.go | 1 + 1 file changed, 1 insertion(+) (limited to 'funcs.go') diff --git a/funcs.go b/funcs.go index b418cd7..91d6bc8 100644 --- a/funcs.go +++ b/funcs.go @@ -35,6 +35,7 @@ func init() { func newTx() *Tx { tx := txPool.Get().(*Tx) tx.tries = 0 + tx.completed = false return tx } -- cgit v1.2.3