mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
fix: more lints fix
This commit is contained in:
parent
7d11c95be8
commit
9646152550
@ -209,7 +209,7 @@ impl NodeChainStore {
|
||||
self.block_store.put_block_at_id(block)?;
|
||||
|
||||
//Snapshot
|
||||
if block_id % self.node_config.shapshot_frequency_in_blocks == 0 {
|
||||
if block_id.is_multiple_of(self.node_config.shapshot_frequency_in_blocks) {
|
||||
//Serializing all important data structures
|
||||
|
||||
//If we fail serialization, it is not the reason to stop running
|
||||
|
||||
@ -41,7 +41,7 @@ pub mod sequencer_client;
|
||||
fn vec_u8_to_vec_u64(bytes: Vec<u8>) -> Vec<u64> {
|
||||
// Pad with zeros to make sure it's a multiple of 8
|
||||
let mut padded = bytes.clone();
|
||||
while padded.len() % 8 != 0 {
|
||||
while !padded.len().is_multiple_of(8) {
|
||||
padded.push(0);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user