cjdelisle / packetcrypt_rs

PacketCrypt in Rust
53 stars 43 forks source link

Fix mineOld not able to be changed #52

Closed RandGenXYZ closed 1 year ago

RandGenXYZ commented 2 years ago

If pools fail to find a block for quite some time, the chances of them having a slab devoid of mature anns increases and the chances of finding a block decreases. In a chain stall, restarting a pool and losing mature anns may mean the slab will fill with useless anns and the pool will end up stuck because the only way for anns to mature is for the chain to advance.

In those situations, increasing mineOld for annminers to supply fresh mature anns is the only way to start mining blocks again. Pools can't currently do that because the annminer code doesn't allow this. This fixes the issue.

This should help pool operators handle shortages better in the future without having to use privately generated anns at custom mineOlds.

cjdelisle commented 1 year ago

Thanks !