8000 Rules for using `SafeArith` · Issue #1098 · sigp/lighthouse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Rules for using SafeArith #1098
Closed
Closed
@JustinDrake

Description

@JustinDrake

What are the rules for using SafeArith? For example, why is safe_add not used in

epoch + T::EpochsPerSlashingsVector::to_u64().safe_div(2)?

or

state.get_all_slashings().iter().sum::<u64>();

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingconsensusAn issue/PR that touches consensus code, such as state_processing or block verification.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0