system-program: Remove zero lamport check on transfers (#17726) (#17764)

* system-program: Move lamports == 0 check on transfers

* Address feedback

* Update stake split to explicitly allocate + assign

* Update stake tests referring to split instruction

* Revert whitespace

* Update split instruction index in test

* Remove unnecessary `assign_with_seed` from `split_with_seed`

* Fix stake instruction parser

* Update test to allow splitting into account with lamports

(cherry picked from commit 8f5e773caf)

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
This commit is contained in:
mergify[bot]
2021-06-06 18:27:29 +00:00
committed by GitHub
parent 6d5a4b5cce
commit e5ea16fad8
6 changed files with 59 additions and 46 deletions

View File

@@ -1467,7 +1467,7 @@ mod tests {
)); // Same recipient, same lockups
}
const SET_LOCKUP_INDEX: usize = 4;
const SET_LOCKUP_INDEX: usize = 5;
#[test]
fn test_set_split_stake_lockup() {