Replace u32 with a PeerstateKeyType enum

This commit is contained in:
Alexander Krotov
2019-11-30 19:18:02 +01:00
parent 694d8fd6fb
commit 3a08c92433
3 changed files with 36 additions and 28 deletions

View File

@@ -1664,7 +1664,7 @@ fn check_verified_properties(
let fp = peerstate.gossip_key_fingerprint.clone();
if let Some(fp) = fp {
peerstate.set_verified(
DC_PS_GOSSIP_KEY,
PeerstateKeyType::GossipKey,
&fp,
PeerstateVerifiedStatus::BidirectVerified,
);