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

Avoid passing entire Bundle to the Preprocess function

    Details

    • Type: Story
    • Status: Backlog (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The Preprocess function in pkg/tx/interfaces.go

      Preprocess(latestChannelConfig *channelconfig.Bundle) error

      receives a pointer to the entire channel config bundle which is a superset of what is needed and makes things very hard to mock. We recommend passing in one or more interfaces with dependencies

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ales Alessandro Sorniotti
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code