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

Decode core.yaml into peer configuration structure when starting the peer node or cli

    XMLWordPrintable

Details

    • Story
    • Status: Backlog
    • Medium
    • Resolution: Unresolved
    • v2.0.0
    • Future
    • fabric-peer
    • None
    • 1
    • Unset
    • Unset
    • Unset

    Description

      Where viper is initialized today (in cmd/peer/main.go), using the new configuration package, parse core.yaml into the peer configuration structures. Explicitly pass the configuration to the command constructors to enable future changes that have the commands pull their configuration from the struct instead of viper.

      The viper infrastructure should remain active to prevent modifications to tests and existing implementations that rely on environment variables.

      Acceptance:

      Parsing of existing core.yaml should be successful in the main.

      Out of scope: removing viper from anything or rewiring to use the new config. Future stories/tasks will be created for that work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sykesm Matthew Sykes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: