iotaledger / iri

IOTA Reference Implementation
Other
1.15k stars 370 forks source link

Use LinkedBlockingQueue to fix sync problems #1841

Closed GalRogozinski closed 4 years ago

GalRogozinski commented 4 years ago

Description of change

Resolves a syncing problem by using a linked blocking queue

Fixes #1742 Replaces #1833 which was merged to another branch

Type of change

How the change has been tested

IRI was synced without needing to restart and no error appeared It should be noted that I did notice a slow down in syncing

I think we should investigate going back to array based queues later on to speed things up

Make sure to provide instructions for the maintainer as well as any relevant configurations.

Change checklist

Add an x to the boxes that are relevant to your changes, and delete any items that are not.