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 44d515e commit dcf9298Copy full SHA for dcf9298
modules/btc_teleport.py
@@ -151,6 +151,10 @@ def vote_offer_btc_teleport(self, args):
151
validator_key = self.ton.GetValidatorKey()
152
validator_pubkey_b64 = self.ton.GetPubKeyBase64(validator_key)
153
validator_index = self.ton.GetValidatorIndex()
154
+ config34 = self.ton.GetConfig34()
155
+ if validator_index == -1 or validator_index >= config34['mainValidators']:
156
+ self.local.add_log("Can not vote for BTC Teleport proposal from non-masterchain validator", "error")
157
+ return
158
for offer_hash in args:
159
current_offers = self.get_offers()
160
if offer_hash not in current_offers:
0 commit comments