Skip to content

Commit

Permalink
chore: tweak debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Feb 7, 2024
1 parent 4adf9f9 commit 6c88eb6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/protocols/relayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,23 +129,24 @@ impl CKBProtocolHandler for RelayProtocol {
.ckb2023
.is_vm_version_2_and_syscalls_3_enabled(epoch);

debug!(
"RelayProtocol V{}({}).connected peer={}, epoch={}",
if self.v3 { '3' } else { '2' },
version,
peer,
epoch
);

if self.v3 && !ckb2023 {
debug!(
"RelayProtocol V3({}).connected peer={} is not ckb2023 enabled, ignore",
version, peer
);
debug!("peer={} is not ckb2023 enabled, ignore", peer);
return;
}

if !self.v3 && ckb2023 {
debug!(
"RelayProtocol V2({}).connected peer={} is ckb2023 enabled, ignore",
version, peer
);
debug!("peer={} is ckb2023 enabled, ignore", peer);
return;
}

debug!("RelayProtocol({}).connected peer={}", version, peer);
if self
.pending_txs
.read()
Expand Down

0 comments on commit 6c88eb6

Please sign in to comment.