* chore: cargo +nightly clippy --fix -Z unstable-options (cherry picked from commit6514096a67) # Conflicts: # core/src/banking_stage.rs # core/src/cost_model.rs # core/src/cost_tracker.rs # core/src/execute_cost_table.rs # core/src/replay_stage.rs # core/src/tvu.rs # ledger-tool/src/main.rs # programs/bpf_loader/build.rs # rbpf-cli/src/main.rs # sdk/cargo-build-bpf/src/main.rs # sdk/cargo-test-bpf/src/main.rs # sdk/src/secp256k1_instruction.rs * chore: cargo fmt (cherry picked from commit789f33e8db) * Updates BPF program assert_instruction_count tests. (cherry picked from commitc1e03f3410) # Conflicts: # programs/bpf/tests/programs.rs * Resolve conflicts Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net> Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@@ -52,7 +52,7 @@ fn test_shrink_and_clean() {
|
||||
|
||||
for (pubkey, account) in alive_accounts.iter_mut() {
|
||||
account.checked_sub_lamports(1).unwrap();
|
||||
accounts.store_uncached(current_slot, &[(&pubkey, &account)]);
|
||||
accounts.store_uncached(current_slot, &[(pubkey, account)]);
|
||||
}
|
||||
accounts.add_root(current_slot);
|
||||
}
|
||||
@@ -121,9 +121,9 @@ fn test_bad_bank_hash() {
|
||||
|
||||
for (key, account) in &account_refs {
|
||||
assert_eq!(
|
||||
db.load_account_hash(&ancestors, &key, None, LoadHint::Unspecified)
|
||||
db.load_account_hash(&ancestors, key, None, LoadHint::Unspecified)
|
||||
.unwrap(),
|
||||
AccountsDb::hash_account(some_slot, *account, &key)
|
||||
AccountsDb::hash_account(some_slot, *account, key)
|
||||
);
|
||||
}
|
||||
existing.clear();
|
||||
|
||||
Reference in New Issue
Block a user