Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-4422

Improve orderer JSON ledger type to print protolator marshaled blocks

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • Medium
    • Resolution: Won't Do
    • v1.0.0-beta
    • None
    • fabric-orderer
    • Unset
    • Unset
    • Unset

    Description

      The orderer has a 'JSON' ledger as an option for block storage. This ledger is meant to be a debugging tool, so it prints the block contents as JSON so that the user may inspect the ledger easily with cat, etc.

      However, the JSON marshaling is done via the simple jsonpb marshaler, which simply converts the byte fields to base64, rather than displaying the marshaled message in a readable form.

      The protolator framework was created to solve just this problem, and could be utilized by the JSON ledger to make the debugging output much more useful.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jyellick Jason Yellick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: