We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45b96a7 commit 32afd4dCopy full SHA for 32afd4d
mytoncore/mytoncore.py
@@ -1436,6 +1436,18 @@ def ElectionEntry(self, args=None):
1436
if (startWorkTime - now) > self.local.db["participateBeforeEnd"] and \
1437
(now + self.local.db["periods"]["elections"]) < startWorkTime:
1438
return
1439
+
1440
+ vconfig = self.GetValidatorConfig()
1441
1442
+ have_adnl = False
1443
+ # Check if ADNL address is in the list
1444
+ for a in vconfig.adnl:
1445
+ if base64.b64decode(a.id).hex() == adnlAddr:
1446
+ have_adnl = True
1447
+ break
1448
+ if not have_adnl:
1449
+ raise Exception('ADNL address is not found')
1450
1451
# Check if election entry already completed
1452
entries = self.GetElectionEntries()
1453
if adnlAddr in entries:
0 commit comments