Merge pull request #1326 from jagerman/x25519-expiry

Don't fail to send proof for expired x25519 keys
This commit is contained in:
Jason Rhinelander 2020-10-19 15:30:40 -03:00 committed by GitHub
commit 1ec915d723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2212,7 +2212,7 @@ namespace cryptonote
return;
auto pubkey = m_service_node_list.get_pubkey_from_x25519(m_service_keys.pub_x25519);
if (pubkey != crypto::null_pkey && pubkey != m_service_keys.pub)
if (pubkey != crypto::null_pkey && pubkey != m_service_keys.pub && m_service_node_list.is_service_node(pubkey, false /*don't require active*/))
{
MGINFO_RED(
"Failed to submit uptime proof: another service node on the network is using the same ed/x25519 keys as "