Skip to content

beacon state tile: stf rewrite#59

Open
ninaiiad wants to merge 3 commits into
mainfrom
ng/stf
Open

beacon state tile: stf rewrite#59
ninaiiad wants to merge 3 commits into
mainfrom
ng/stf

Conversation

@ninaiiad
Copy link
Copy Markdown
Collaborator

No description provided.

f.epoch.state.deposit_balance_to_consume = u64::MAX / 2;
for (i, (pk, creds, effective_balance, balance, act, exit)) in validators.iter().enumerate()
{
f.validators.pubkey_slice_mut()[i] = *pk;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like decompressed pubkeys missed. Might be we can move that to constructor of validators and use data.append function, which automatically create decompressed pubkey + add to index as it is less error prone

Also I think it is better not to give mut API for finalized data in general, only constructors + promote API can prevent lots of errors

finalized_validators,
pending_pool,
pending_pool_next: 1,
state: BeaconStateOwner::new(BeaconState::default()),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will need to pass the BeaconStateOwner by construction b/c other tiles will need readers and and readers are created from the owner.

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.

3 participants