Delete unused type (#7653)

This commit is contained in:
Rob Walker
2020-01-02 13:15:31 -08:00
committed by GitHub
parent e97b0088f2
commit 63f185f9bf
3 changed files with 8 additions and 15 deletions

View File

@ -843,7 +843,12 @@ pub fn create_lockup_stake_account(
let mut stake_account = Account::new(lamports, std::mem::size_of::<StakeState>(), &id());
let rent_exempt_reserve = rent.minimum_balance(stake_account.data.len());
assert!(lamports >= rent_exempt_reserve);
assert!(
lamports >= rent_exempt_reserve,
"lamports: {} is less than rent_exempt_reserve {}",
lamports,
rent_exempt_reserve
);
stake_account
.set_state(&StakeState::Initialized(Meta {