Skip to content

[OZ][N-02] Functions Are Updating the State Without Event Emissions#114

Open
Mike-CZ wants to merge 1 commit intomainfrom
mike/oz-n-02
Open

[OZ][N-02] Functions Are Updating the State Without Event Emissions#114
Mike-CZ wants to merge 1 commit intomainfrom
mike/oz-n-02

Conversation

@Mike-CZ
Copy link
Collaborator

@Mike-CZ Mike-CZ commented Dec 13, 2024

This PR adds event emissions into ConstantsManager and SFC contracts.

@Mike-CZ Mike-CZ requested a review from thaarok December 13, 2024 10:46
snapshot.endBlock,
snapshot.baseRewardPerSecond,
snapshot.totalSupply
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am really not sure if we want to introduce an even emission into the epoch sealing...

}
snapshot.validatorIDs = nextValidatorIDs;

emit SealedEpochValidators(currentEpoch(), snapshot.totalStake, snapshot.validatorIDs);
Copy link
Collaborator

Choose a reason for hiding this comment

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

At least I would remove the snapshot.validatorIDs from the event, as that may become big as the network grows. Who is interested may find the info in the external-internal tx calldata.

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