-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Utility] Update SessionSettlement when app goes into a negative amou…
…nt (#509) When an app exceeds its stake, make the settlement amount its full balance. Prevent an error to avoid consensus breaking issues. ## Issue It seems that a segfault occurs when we restart due to the -ve balance an app tries to hit. Started with this: <img width="762" alt="Screenshot 2024-04-27 at 6 28 01 PM" src="https://github.com/pokt-network/poktroll/assets/1892194/6231033b-f90e-43bc-aeb7-24285ba8a10f"> And then we found this: <img width="1063" alt="Screenshot 2024-04-27 at 5 37 33 PM" src="https://github.com/pokt-network/poktroll/assets/1892194/df55a2f0-78cd-43f2-98d5-07bd0d1fca0f"> <img width="1234" alt="Screenshot 2024-04-27 at 5 37 26 PM" src="https://github.com/pokt-network/poktroll/assets/1892194/b255a28c-f357-4e95-8bb1-0dad10f3951a"> Which led us to discovering this: <img width="1840" alt="Screenshot 2024-04-27 at 6 13 50 PM" src="https://github.com/pokt-network/poktroll/assets/1892194/55bbfb19-ca2a-49f2-bca8-0c008b6d9b85">
- Loading branch information
Showing
4 changed files
with
64 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters