* 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:
@@ -66,7 +66,7 @@ impl Packets {
|
||||
|
||||
pub fn set_addr(&mut self, addr: &SocketAddr) {
|
||||
for m in self.packets.iter_mut() {
|
||||
m.meta.set_addr(&addr);
|
||||
m.meta.set_addr(addr);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -519,11 +519,11 @@ mod tests {
|
||||
let packet_offsets = sigverify::get_packet_offsets(&packet, 0);
|
||||
|
||||
assert_eq!(
|
||||
memfind(&tx_bytes, &tx.signatures[0].as_ref()),
|
||||
memfind(&tx_bytes, tx.signatures[0].as_ref()),
|
||||
Some(SIG_OFFSET)
|
||||
);
|
||||
assert_eq!(
|
||||
memfind(&tx_bytes, &tx.message().account_keys[0].as_ref()),
|
||||
memfind(&tx_bytes, tx.message().account_keys[0].as_ref()),
|
||||
Some(packet_offsets.pubkey_start as usize)
|
||||
);
|
||||
assert_eq!(
|
||||
@@ -531,7 +531,7 @@ mod tests {
|
||||
Some(packet_offsets.msg_start as usize)
|
||||
);
|
||||
assert_eq!(
|
||||
memfind(&tx_bytes, &tx.signatures[0].as_ref()),
|
||||
memfind(&tx_bytes, tx.signatures[0].as_ref()),
|
||||
Some(packet_offsets.sig_start as usize)
|
||||
);
|
||||
assert_eq!(packet_offsets.sig_len, 1);
|
||||
@@ -667,7 +667,7 @@ mod tests {
|
||||
let tx_bytes = serialize(&tx0).unwrap();
|
||||
assert!(tx_bytes.len() <= PACKET_DATA_SIZE);
|
||||
assert_eq!(
|
||||
memfind(&tx_bytes, &tx0.signatures[0].as_ref()),
|
||||
memfind(&tx_bytes, tx0.signatures[0].as_ref()),
|
||||
Some(SIG_OFFSET)
|
||||
);
|
||||
let tx1 = deserialize(&tx_bytes).unwrap();
|
||||
|
Reference in New Issue
Block a user