go-spacemesh icon indicating copy to clipboard operation
go-spacemesh copied to clipboard

atxs: changes related to poet ticks

Open dshulyak opened this issue 3 years ago • 1 comments

the weight of the atx computed from tick count multiplied by the number of units. tick height of the atx computed from base tick height plus tick count. base tick height is a tick height of the positioning atx. tick count is a number of leaves in the poet proof divided by tick size. tick size is a protocol parameter, meant to kept the size of the weight in uint64 bounds.

positioning atx is an atx with the highest tick height from the last epoch.

dshulyak avatar Aug 02 '22 09:08 dshulyak

the verify flow is not intuitive. i'd prefer to move things around and make sure once the ID is set, the tick height is also recorded.

id needs to be computed earlier, in order to check data in the database. ticks can be recorded only after validation i will check if i can shift that around in a way that allows to bypass expensive validation, but likely it won't be possible

is it possible to combine the API for base tick height and tick count into just tick height?

base tick height is used for proposals tick count is used for weight computation

dshulyak avatar Aug 10 '22 04:08 dshulyak

bors try

dshulyak avatar Aug 15 '22 04:08 dshulyak

try

Build succeeded:

bors[bot] avatar Aug 15 '22 05:08 bors[bot]

bors merge

dshulyak avatar Aug 15 '22 06:08 dshulyak

Pull request successfully merged into develop.

Build succeeded:

bors[bot] avatar Aug 15 '22 06:08 bors[bot]