cli: Stop topping up buffer balance (#20181)

This commit is contained in:
Justin Starry
2021-09-29 12:27:18 -04:00
committed by GitHub
parent c02ef395ed
commit 53a810dbad

View File

@ -2037,7 +2037,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(
@ -2056,6 +2055,7 @@ fn complete_partial_program_init(
)
.into());
}
}
Ok((instructions, balance_needed))
}