You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PSL-1174] pasteld: update googletest library to the latest 1.14 - updated googletest library from v1.11 to v1.14 (08/02/2023) (#253)
[PSL-1177] pasteld: update zstd library to the latest v1.5.6
- updated zstd library from v.1.5.5 to v1.5.6 (03/30/2024)
[PSL-1173] pasteld: existing ticket validation in the forked chain
pasteld v2.3.0-beta2
- mainnet chain forked at height 657,925 and the same ticket was registered in both chains at different heights: 658,421 and 658,564
- the node active chain was the forked one
- main chain at one point became longer (more work) than the forked one, but it couldn't switch to that better chain
because of ticket validation failure (action registration ticket could not be validated - because it was finding
existing ticket registered in the forked chain, that ticket was written to the Ticket DB)
- ticket processor functions to find/list/process/get tickets by primary/secondary/mv keys were changed to make
them fork-aware. Optional parameter pindexPrev that points to the previous block being validated was passed to
all the functions. If this parameter is passed and the function finds the ticket in DB - it checks if this ticket
transaction is in the block which is direct ancestor of the pindexPrev block. If not - it will not return this ticket.
This way when validating forked chain ticket processor won't see tickets registered in the active chain after the fork point.
- corrected IsValid functions for all ticket types to work with new ticket processor functions including functions that work with
signatures, collections, collection items, dependent tickets, etc...
- switch to the better chain can be automatic if the reorg length is not longer that 99 blocks, for longer reorgs you have
to specify parameter in the command-line or pastel.conf: -rewindchain=_block_hash_.
- fixed IsIntendedChainRewind to allow specify -rewindchain block as fork block or its direct ancestor (up to 1000 blocks)
0 commit comments