Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blockchain/sync: demote chain exchange warning to debug message #1439

Merged
merged 3 commits into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blockchain/chain_sync/src/network_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use forest_libp2p::{
use futures::channel::oneshot::channel as oneshot_channel;
use ipld_blockstore::BlockStore;
use libp2p::core::PeerId;
use log::{trace, warn};
use log::{debug, trace, warn};
use std::convert::TryFrom;
use std::sync::Arc;
use std::time::{Duration, SystemTime};
Expand Down Expand Up @@ -191,7 +191,7 @@ where
break;
}
Err(e) => {
warn!("Failed chain_exchange response: {}", e);
debug!("Failed chain_exchange response: {}", e);
continue;
}
},
Expand Down
4 changes: 2 additions & 2 deletions crypto/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ mod tests {
let mut secp_addr = Address::new_secp256k1(&pub_key.serialize()).unwrap();
for network in [Network::Mainnet, Network::Testnet] {
let address = secp_addr.set_network(network);
assert!(verify_secp256k1_sig(&signature, &data, &address).is_ok());
assert!(verify_secp256k1_sig(&signature, &data, address).is_ok());
}
}

Expand Down Expand Up @@ -314,7 +314,7 @@ mod tests {
}

fn generate_signature(priv_key: &SecretKey, msg: &Message) -> [u8; 65] {
let (sig, recovery_id) = sign(&msg, &priv_key);
let (sig, recovery_id) = sign(msg, priv_key);
let mut signature = [0; 65];
signature[..64].copy_from_slice(&sig.serialize());
signature[64] = recovery_id.serialize();
Expand Down