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 b64077b commit 835f5bbCopy full SHA for 835f5bb
modules/btc_teleport.py
@@ -111,8 +111,13 @@ def get_offers(self):
111
result = self.ton.liteClient.Run(cmd)
112
raw_offers = self.ton.Result2List(result)
113
raw_offers = raw_offers[0]
114
- config34 = self.ton.GetConfig34()
115
- total_weight = config34.get("totalWeight")
+ validators = self.ton.GetValidatorsList(fast=True)
+ total_weight = 0
116
+ for v in validators:
117
+ if v['is_masterchain'] is False:
118
+ continue
119
+ total_weight += v['weight']
120
+
121
offers = {}
122
for offer in raw_offers:
123
if len(offer) == 0:
0 commit comments