mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-05 23:03:06 +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)?;
|
self.block_store.put_block_at_id(block)?;
|
||||||
|
|
||||||
//Snapshot
|
//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
|
//Serializing all important data structures
|
||||||
|
|
||||||
//If we fail serialization, it is not the reason to stop running
|
//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> {
|
fn vec_u8_to_vec_u64(bytes: Vec<u8>) -> Vec<u64> {
|
||||||
// Pad with zeros to make sure it's a multiple of 8
|
// Pad with zeros to make sure it's a multiple of 8
|
||||||
let mut padded = bytes.clone();
|
let mut padded = bytes.clone();
|
||||||
while padded.len() % 8 != 0 {
|
while !padded.len().is_multiple_of(8) {
|
||||||
padded.push(0);
|
padded.push(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user