Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Support multiple forks in the bank #2289

Closed
wants to merge 15 commits into from
4 changes: 2 additions & 2 deletions ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn main() {
);
exit(1);
}
let bank = Bank::new_with_builtin_programs();
let bank = Bank::default();
{
let genesis = entries.by_ref().take(NUM_GENESIS_ENTRIES);
if let Err(e) = bank.process_ledger(genesis) {
Expand Down Expand Up @@ -139,7 +139,7 @@ fn main() {
last_id = entry.id;
num_entries += 1;

if let Err(e) = bank.process_entry(&entry) {
if let Err(e) = bank.process_entries(&[entry]) {
eprintln!("verify failed at entry[{}], err: {:?}", i + 2, e);
if !matches.is_present("continue") {
exit(1);
Expand Down
Loading