If you don’t know what RFC0002 is, please read this article:
I’d like to discuss how the coinstake transaction can optimize the merging and splitting of outputs given a particular minter budget. Currently, the protocol merges all mint block rewards and splits in half outputs that mint in less than 90 days. I want to seek a solution like this to the output complexity caused by splitting the coinstake transaction.
First, I suggest a more aggressive split:
Split in half if output mints before 90 days
Split in thirds if output mints before 60 days
Split in quarters if output mints before 50 days
Split in ‘n’ parts if output mints before ‘30+60/(n-1)’ days
Limit the total number of splits such that the resulting transaction will not exceed the minter budget
A generalized merge is more complicated. I’m currently thinking something like: take the current PoS difficulty, calculate percent chance of minting each output over the next 90 days (like the wallet does in the staking section) and merge everything under a certain threshold. This is also limited by the minter budget and takes precedence over splitting outputs.