Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1284

Blocking Issue: Unable to use read_ledger tool with the parameter "to"

    Details

    • Type: Bug
    • Status: Complete
    • Priority: Highest
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      EV 18.09 Stability-RocksDB, 18.08 Stability-Monitoring

      Description

      Mike used the following command line for the read_ledger tool with the latest stable release Indy Node 1.3.57

      The issue is the default for read_ledger only shows the first 100 transactions. Now we are unable to read the ledger past the first 100 transactions which is a problem.

      Upgrading the live pool will not occur until this is fixed

      sudo read_ledger --type domain --frm 400 --to 500
      Traceback (most recent call last):
      File "/usr/local/bin/read_ledger", line 163, in <module>
      print_txns(ledger, args)
      File "/usr/local/bin/read_ledger", line 120, in print_txns
      print_all(ledger, serializer)
      File "/usr/local/bin/read_ledger", line 141, in print_all
      for txn in ledger.getAllTxn(frm=frm, to=to):
      File "/usr/local/lib/python3.5/dist-packages/ledger/ledger.py", line 233, in getAllTxn
      if to is None or int(seq_no) <= to:
      TypeError: unorderable types: int() <= str()

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              krw910 Kelly Wilson
              Watchers:
              Kelly Wilson, NIkita Zhigunenko, Sergey Shilov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: