github ergoplatform/ergo v3.0.5
Ergo Mainnet 3.0.5 Release

latest releases: v5.0.24, v5.0.23, v6.0.0-alpha2...
5 years ago

This release is introducing an improved box selector (aka transaction assembler) and also memory footprint reduction, mostly due to optimized (de-)serialization.

The new replace-compact-collect is parameterized by maximum number of inputs a transaction can have, and optimal number of inputs.

Say, the selector is given boxes denoted by their values (1,2,3,4,...10). Then the selector is working as follows:

1) the selector first picking up boxes in given order (1,2,3,4,...)
2) if number of inputs exceeds the limit, the selector is sorting remaining boxes(actually, only 3*maximum inputs of them) by value in descending order and replaces small-value boxes in the inputs by big-value from the tail (1,2,3,4 => 10)
3) if the number of inputs still exceeds the limit, the selector is trying to throw away the dust if possible. E.g. if inputs are (100, 200, 1, 2, 1000), target value is 1300 and maximum number of inputs is 3, the selector kicks out (1, 2)
 4) if number of inputs after the previous steps is below optimal, the selector is trying to append the dust, by sorting remaining boxes in ascending order and appending them till optimal number of inputs.

Don't miss a new ergo release

NewReleases is sending notifications on new releases.