cli: Stop topping up buffer balance (#20181) (#20312)

(cherry picked from commit 53a810dbad)

Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
mergify[bot]
2021-09-30 12:31:12 -04:00
committed by GitHub
parent ef5a0e842c
commit 9cc26b3b00

View File

@ -2029,7 +2029,6 @@ fn complete_partial_program_init(
if account.owner != *loader_id {
instructions.push(system_instruction::assign(elf_pubkey, loader_id));
}
}
if account.lamports < minimum_balance {
let balance = minimum_balance - account.lamports;
instructions.push(system_instruction::transfer(
@ -2048,6 +2047,7 @@ fn complete_partial_program_init(
)
.into());
}
}
Ok((instructions, balance_needed))
}