You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def s_slashes_to_prover(
params: AztecModelParams,
_2,
_3,
state: AztecModelState,
signal: SignalEvolveProcess,
):
"""
Logic for keeping track of how many slashes have occurred.
"""
old_slashes_to_prover = state["slashes_to_provers"]
transfers: Sequence[Transfer] = signal.get("transfers", []) # type: ignore
# Calculate the number of slashes of each type to add
delta_slashes_prover = len(
[
transfer
for transfer in transfers
if (transfer.kind == TransferKind.slash_prover) and (transfer.to_prover == True)
]
)
updated_slashes_to_prover = old_slashes_to_prover + delta_slashes_prover
return ("slashes_to_provers", updated_slashes_to_prover)
The text was updated successfully, but these errors were encountered:
In s_slashes_to_prover:
The text was updated successfully, but these errors were encountered: