Guys, I've added a code screenshot above the gif, is it better now?
Just curious, how many hours do you think you've spent on this project?
I'd say something in the range of 500-1000 hours.
That's less than I was expecting. Did you study any existing library to get up to speed?
No, after I had studied BEP-3, wiki and and a few papers (most importantly "BitTorrent economics"), I had a very clear understanding of what needs to be done.