Skip to content

Conversation

@jmhrpr
Copy link
Contributor

@jmhrpr jmhrpr commented Aug 31, 2022

This implements a finalize configuration option similar to in Oura. You can use it to make Scrolls stop processing blocks after processing a block with a specified hash or the first block which was created on or after a specified absolute slot.

For example you would include the following in your config to stop processing new blocks after processing the block with hash fafd996ddd3d2fdb2bf2a5dd5a3b32d0827fc53634871c85c5441959d7dae795:

    "finalize": {
        "until_hash": "fafd996ddd3d2fdb2bf2a5dd5a3b32d0827fc53634871c85c5441959d7dae795"
    },

Or to stop processing new blocks after processing the first block which was created on or after slot 1713945:

    "finalize": {
        "max_block_slot": 1713945
    },

Tested with N2N.

@jmhrpr jmhrpr requested a review from scarmuega as a code owner August 31, 2022 20:28
@scarmuega scarmuega merged commit fc30719 into txpipe:main Sep 1, 2022
@jmhrpr jmhrpr deleted the feat/config/finalize-at-block branch September 1, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants