Skip to content

Commit

Permalink
pr feedback: key size 16 -> 12
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinSekar committed Nov 10, 2023
1 parent e1b5dac commit a5dd204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger/src/blockstore_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ impl Column for columns::MerkleRootMeta {
}

fn key((slot, fec_set_index): Self::Index) -> Vec<u8> {
let mut key = vec![0; 16];
let mut key = vec![0; 12];
BigEndian::write_u64(&mut key[..8], slot);
BigEndian::write_u32(&mut key[8..], fec_set_index);
key
Expand Down

0 comments on commit a5dd204

Please sign in to comment.