Skip to content
Commit 5385639f authored by Niklas Adolfsson's avatar Niklas Adolfsson
Browse files

fix: remove `Misconduct::on_signal`

Essentially we may want a interface with the ability to:
	i) keep as severity window (2 * era_len) -> slash after that time has expired
	ii) slash `on_end_of_era`

Then `on_signal` becomes useless.

However, it would require a change on `Slashing::slash` which probably should return `Option<MisconductLevel>`

That would return `Some(MisconductLevel)` when a window has expired otherwise return `None`.
A `reporter` would need to call `slash` even if misconducts had occured
parent e5a065a8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment