Full sync, no stalls, no need to manually shutdown and restart the node during first sync!
Bug has been a plague to Grin for years and I fixed it!
Full sync, no stalls, no need to manually shutdown and restart the node during first sync!
Bug has been a plague to Grin for years and I fixed it!
So it will automatically re-sync the whole node from scratch in case itâs stuck? or itâs just continuing to sync the remaining un-synced data?
Anyways, great thanks for your efforts.
@hellogrin Good question! No, not from scratch, it keeps the progress. It just does a quick restart of the node in the background and then continues the sync.
If it starts hitting the error too much I might add a ban peer script to ban the offending peer(s) but so far it hasnât been a problem.
Any feedback or testing you guys want to run is
welcome.
maybe @ardocrat has ability to verify the code. if iâm not mistaken, long time back he mentioned this issue came from dandelion or something.
I added additional logging in my code that logs msg sizes and it could have been this code that revealed the âtry_send disconnectedâ error originating from a peer that I think causes the stall during PIBD sync. The try_send error is what I programmed the node to recognize before triggering the soft-reset and it seemed to work flawlessly.
Anyone can run my modified grin node and try it for themselves. But yes, having someone like @ardocrat or @Yeastplume or @tromp review my code would be hella useful.
Technically the official grin node software is broken, has been for years cuz it stalls out during the initial sync step. Welp, my node works fine so Iâd recommend using the software from my fork since itâs better than official. (No stalls, better logging, and msg header size limit increased to adjust for the actual message header size) (Imagine my shock when I revealed that the real msg header size was larger than the set maximum⌠derp!)
I wonder how much yall was paying the last dev(s) who left the project? Iâll take my payments in grin coin since the last dev(s) didnât or couldnât fix it, but I did!

Thank you, sorry for late response, I am active on Telegram most of the time.