Skip to content

Update op-conductor-ops.py#2

Open
rychrr wants to merge 1 commit intoinkonchain:mainfrom
rychrr:patch-1
Open

Update op-conductor-ops.py#2
rychrr wants to merge 1 commit intoinkonchain:mainfrom
rychrr:patch-1

Conversation

@rychrr
Copy link
Copy Markdown

@rychrr rychrr commented Oct 3, 2025

sequencer.voting → is a boolean (True if it’s a voter, False if not). int(not sequencer.voting) → flips it, then casts to 0/1.

If sequencer.voting=True → not True=False → int(False)=0. If sequencer.voting=False → not False=True → int(True)=1.

So basically:

0 means "voter"
1 means "non-voter"

This inversion suggests your membership[...]["suffrage"] is encoded the opposite way (maybe 0 = voter, 1 = non-voter).

But the inversion is confusing and easy to misinterpret. If someone reading the code assumes True = voter, they’ll think the comparison is wrong.

Description

A clear and concise description of the features you're adding in this pull request.

Tests

Please describe any tests you've added. If you've added no tests, or left important behavior untested, please explain why not.

Additional context

Add any other context about the problem you're solving.

Metadata

  • Fixes #[Link to Issue]

sequencer.voting → is a boolean (True if it’s a voter, False if not).
int(not sequencer.voting) → flips it, then casts to 0/1.

If sequencer.voting=True → not True=False → int(False)=0.
If sequencer.voting=False → not False=True → int(True)=1.

So basically:

0 means "voter"
1 means "non-voter"


This inversion suggests your membership[...]["suffrage"] is encoded the opposite way (maybe 0 = voter, 1 = non-voter).

But the inversion is confusing and easy to misinterpret.
If someone reading the code assumes True = voter, they’ll think the comparison is wrong.
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