ergoplatform / ergo

Ergo protocol description & reference client implementation
https://ergoplatform.org/
Creative Commons Zero v1.0 Universal
504 stars 170 forks source link

Put mining fee inputs into multiple transactions when too many of them #2185

Open kushti opened 2 months ago

kushti commented 2 months ago

In the block candidate generation logic (collectRewards function in CandidateGenerator class) all the fee inputs are collected with one transaction only just, however, if there are too many inputs, the transaction may be invalid. Break fee inputs up in chunks. Write a test for that.