Skip to content

Blacklist implementation #205

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Blacklist implementation #205

wants to merge 1 commit into from

Conversation

yacovm
Copy link
Collaborator

@yacovm yacovm commented Aug 1, 2025

This commit implements a blacklist that performs book-keeping of nodes that are blacklisted. The blacklist contains a node count, and a bit vector the size of the node count.

When a node is blacklisted, its corresponding bit is set to 1 in the bit vector.

A node can be removed from the blacklist by being voted to be redeemed by f+1 nodes.

The blacklist keeps track of redemptions via a bit vector per blacklisted node.

If a more than f nodes are blacklisted, a random node is removed from the blacklist.

This commit implements a blacklist that performs book-keeping of nodes that are blacklisted.
The blacklist contains a node count, and a bit vector the size of the node count.

When a node is blacklisted, its corresponding bit is set to 1 in the bit vector.

A node can be removed from the blacklist by being voted to be redeemed by f+1 nodes.

The blacklist keeps track of redemptions via a bit vector per blacklisted node.

If a more than f nodes are blacklisted, a random node is removed from the blacklist.

Signed-off-by: Yacov Manevich <yacov.manevich@avalabs.org>
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.

1 participant