threefoldfoundation / tft-stellar

Threefoldtoken on the stellar network
Apache License 2.0
7 stars 5 forks source link

stats lib crashes #458

Closed robvanmieghem closed 1 year ago

robvanmieghem commented 1 year ago
2022-11-21 05:19:39.726 | ERROR    | updatestats:job:41 - Failed to update stats due to:
Traceback (most recent call last):

> File "/Users/rob/sandbox/code/github/threefoldfoundation/tft-stellar/ThreeBotPackages/tft_statistics/services/updatestats.py", line 33, in job
    tft = update_stats(tokencode="TFT")
          └ <function update_stats at 0x114fcc550>

  File "/Users/rob/sandbox/code/github/threefoldfoundation/tft-stellar/ThreeBotPackages/tft_statistics//../tft_statistics/sals/stats_sals.py", line 71, in update_stats
    stats = collector.getstatistics(tokencode, foundation_addresses, True)
            │         │             │          └ []
            │         │             └ 'TFT'
            │         └ <function StatisticsCollector.getstatistics at 0x114fcc4c0>
            └ <stats.StatisticsCollector object at 0x115491420>

  File "/Users/rob/sandbox/code/github/threefoldfoundation/tft-stellar/ThreeBotPackages/tft_statistics/sals/../../../lib/stats/stats.py", line 215, in getstatistics
    locked_account["until"] = self.lookup_lock_time(locked_account["preauth_signers"][0])
    │                         │    │                └ {'account': 'GA2GINGYF3PHAO6TGMMZYDMJ66JWKGOMV6JBNUNAUGBS5EJC33PLH4YQ', 'amount': 21202.6748971, 'preauth_signers': ['TC5YTW4...
    │                         │    └ <function StatisticsCollector.lookup_lock_time at 0x114fcc430>
    │                         └ <stats.StatisticsCollector object at 0x115491420>
    └ {'account': 'GA2GINGYF3PHAO6TGMMZYDMJ66JWKGOMV6JBNUNAUGBS5EJC33PLH4YQ', 'amount': 21202.6748971, 'preauth_signers': ['TC5YTW4...

  File "/Users/rob/sandbox/code/github/threefoldfoundation/tft-stellar/ThreeBotPackages/tft_statistics/sals/../../../lib/stats/stats.py", line 175, in lookup_lock_time
    if tx.time_bounds is not None:
       └ <stellar_sdk.transaction.Transaction object at 0x115f0e1d0>

AttributeError: 'Transaction' object has no attribute 'time_bounds'