Skip to content
Snippets Groups Projects
Commit efc69d82 authored by Alexander Theißen's avatar Alexander Theißen Committed by GitHub
Browse files

seal: Prevent contracts from going below subsistence (#6623)


* seal: Do not allow transfers to bring total balance below subsistence deposit

This also reworks the rent system to take the total balance into account
when evaluating whether the account is above the subsistence deposit.

* Fix nits from review

* Fix typo

* Do not enforce subsistence when called from EOA

* Rename CallOrigin to TransactorKind

* Add debug asserts to check the invariants of a plain account transactor

* Fix typo

Co-authored-by: default avatarSergei Shulepov <sergei@parity.io>

Co-authored-by: default avatarSergei Shulepov <sergei@parity.io>
parent 64114267
Branches
No related merge requests found
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