Skip to content

Commit ae510f7

Browse files
committed
Set backwards verification when contact is verified by gossip
1 parent 4bc71c4 commit ae510f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/receive_imf.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2522,6 +2522,8 @@ async fn mark_recipients_as_verified(
25222522
info!(context, "{verifier_addr} has verified {to_addr}.");
25232523
if let Some(fp) = peerstate.gossip_key_fingerprint.clone() {
25242524
peerstate.set_verified(PeerstateKeyType::GossipKey, fp, verifier_addr)?;
2525+
peerstate.self_verified_key_id =
2526+
Some(context.get_config_i64(Config::KeyId).await?).filter(|&id| id > 0);
25252527
peerstate.save_to_db(&context.sql).await?;
25262528

25272529
if !is_verified {

0 commit comments

Comments
 (0)