Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ordislow 26.0rc2 #1

Open
wants to merge 3 commits into
base: 26.x
Choose a base branch
from
Open

Ordislow 26.0rc2 #1

wants to merge 3 commits into from

Conversation

cculianu
Copy link
Owner

This is just here to make it easy to review both commits at once as a single PR.

By default the "standard" txns are ones that filter-out ordinals.
Setting -ordisrespector=0 turns off this specific standardness flag.
We if -ordislow=1 (default), we maintain a rolling bloom filter of
1 million txns (~12.6MB memory) to keep track of ordinal-containing
mempool txns seen. If a block arrives that contains such a txn, even
before we fully evaluate it, we suppress announcements of the block
to peers.

Also added logic to refuse to upload the block to any peers after the
fact as well.

Required a new concept in the script engine: a script "warning", which
gets bubbled up to caller and is used to decide if a txn we have seen
has ordinals or not.
… IBD

Fixes a theoretical corner-case where if we are IBDing and some peer
asks us for the ord block and we have it at the tip, which is actively
being added-to, there is no reason why we shouldn't forward the block
along, since it clearly is not "new" since we are still building our
tip.

Not a huge deal either way but this `i` needed dotting.
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.

None yet

1 participant