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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Complete
    • Highest
    • Resolution: Done
    • None
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: