Cannot change owner if account is executable (#13977) (#13999)

(cherry picked from commit dca579851c)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-12-07 20:53:57 +00:00
committed by GitHub
parent abbc146508
commit 38485489c9
2 changed files with 12 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ adhere to the runtime policy.
The policy is as follows:
- Only the owner of the account may change owner.
- And only if the account is writable.
- And only if the account is not executable
- And only if the data is zero-initialized or empty.
- An account not assigned to the program cannot have its balance decrease.
- The balance of read-only and executable accounts may not change.