feat: reserve-expanding sync eligibility for redistribution game (SWIP-44) - #5568
feat: reserve-expanding sync eligibility for redistribution game (SWIP-44)#5568aloknerurkar wants to merge 1 commit into
Conversation
sbackend123
left a comment
There was a problem hiding this comment.
Nice job!
I would just clean up it a little bit - removing "formatting" changes, so PR looks bigger than it is.
752f1db to
791bd05
Compare
So this formatter is actually from our coding style doc. We used to follow it but I see now we dont. I had my editor setup to run these formatters as soon as I open any file. I will revert the changes for now but we should update the coding style and makefile for others in future. I personally prefer this formatting as it breaks down std library, external and internal imports. |
791bd05 to
6ea355a
Compare
Checklist
Description
Implements SWIP-44: Reserve-Expanding Sync Eligibility.
Currently, Bee excludes a node from participating in the redistribution game whenever any historical pullsync is active (SyncRate() > 0). When a node is expanding its reserve into a lower bin ($d-1$ ) in preparation for a storage radius decrease, this sync can take hours, causing the node to miss rounds despite maintaining a complete and valid reserve at the current storage depth $d$ .
Because the reserve digest$H(R_N(d))$ is computed strictly over PO bins $p \geq d$ , chunks arriving in bins $p < d$ are disjoint from the reserve and do not influence the digest. This PR amends the eligibility check to allow participation during sub-depth sync:
Open API Spec Version Changes (if applicable)
N/A
Motivation and Context (Optional)
Addresses SWIP-44 (ethersphere/SWIPs#92).
Related Issue (Optional)
Screenshots (if appropriate):
N/A
AI Disclosure