Skip to content

Commit

Permalink
Reset jail release block when validator jailed permanently (#933)
Browse files Browse the repository at this point in the history
* reset jail release block

* bindings
  • Loading branch information
tbssajal committed Feb 2, 2024
1 parent 4fa1d58 commit 044e4c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autonity/bindings.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions autonity/solidity/contracts/Accountability.sol
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ contract Accountability is IAccountability {
_val.totalSlashed += _slashingAmount;
_val.provableFaultCount += 1;
_val.state = ValidatorState.jailbound;
_val.jailReleaseBlock = 0;
autonity.updateValidatorAndTransferSlashedFunds(_val);
emit SlashingEvent(_val.nodeAddress, _slashingAmount, 0, true);
return;
Expand Down
2 changes: 1 addition & 1 deletion params/generated/Accountability.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion params/generated/AccountabilityTest.go

Large diffs are not rendered by default.

0 comments on commit 044e4c2

Please sign in to comment.