1. 14 Jul, 2018 6 commits
  2. 13 Jul, 2018 7 commits
  3. 11 Jul, 2018 3 commits
  4. 10 Jul, 2018 21 commits
    • Matthew Sykes's avatar
      [FAB-11053] extract config block helpers to nwo · 6e8d5564
      Matthew Sykes authored
      
      
      Change-Id: I4159e84a512a52bdba7917a03200c1614067ee7f
      Signed-off-by: default avatarMatthew Sykes <sykesmat@us.ibm.com>
      6e8d5564
    • Matthew Sykes's avatar
      [FAB-11052] begin adding nwo support for discovery · 5d808449
      Matthew Sykes authored
      
      
      Change-Id: Iac1be44a5a64d37467e83fac968c84796af7d38d
      Signed-off-by: default avatarMatthew Sykes <sykesmat@us.ibm.com>
      5d808449
    • Matthew Sykes's avatar
      [FAB-11051] refactor install/instantiate/upgrade · edec005f
      Matthew Sykes authored
      
      
      - remove InstallChaincode and InstantiateChaincode from network
      - create install, instantiate, and ensure instantiated helpers to
        deploy
      - create upgrade command and helpers
      
      Change-Id: I9b1395d41be25aba2e3f2067500b0ed265c1196a
      Signed-off-by: default avatarMatthew Sykes <sykesmat@us.ibm.com>
      edec005f
    • Jason Yellick's avatar
      Merge "[FAB-10967] SideDB video link" · 81fb533d
      Jason Yellick authored
      81fb533d
    • pama-ibm's avatar
      [FAB-10967] SideDB video link · 74161124
      pama-ibm authored
      
      
      Added a link to the private data video
      that D. Enyeart created to the private data
      tutorial (see additional resources
      in the tutorial TOC)
      
      Change-Id: Iac691b2882072324e9d0aa7eb9e02e4eccb544ce
      Signed-off-by: default avatarpama-ibm <pama@ibm.com>
      74161124
    • Jason Yellick's avatar
      FAB-10977 Extract lifecycle to interface · b1dd84b9
      Jason Yellick authored
      
      
      This is step two to remove lifecycle from the chaincode package,
      replacing the explicit dependency in the tests on the lifecycle
      implementation with a mocked implementation.
      
      Change-Id: I4243d691d2de7dabac3af998c3b8b8354e80a602
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      b1dd84b9
    • Jason Yellick's avatar
      FAB-10976 Move lifecycle to its own package · 305c5ad9
      Jason Yellick authored
      
      
      Because of some errors with cyclical imports for the chaincode package
      tests which are not written as _test packages, we need to define a
      structure to represent a chaincode which is not the
      ChaincodeDeploymentSpec but which is also not inside of the chaincode
      package.  Defining this in the lifecycle portion makes sense, so as a
      prerequisite, moving lifecycle from the chaincode package, to a
      subpackage called lifecycle.
      
      Note: This introduces some stuttering, that will be remedied in a later
      CR.
      
      Change-Id: I8883b9fc39d7b23d42ba6df31389e5a9df248457
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      305c5ad9
    • Jason Yellick's avatar
      FAB-10975 Split Execute into Execute/ExecuteInit · 59182528
      Jason Yellick authored
      
      
      Presently, the Execute function can either take a
      'ChaincodeInvocationSpec' or a 'ChaincodeDeploymentSpec', and the path
      switches in a few different places depending on which it is.  This makes
      the code complicated and difficult to understand, and in the interest of
      removing the chaincode deployment spec entirely, this code path should
      be isolated.
      
      Change-Id: I1f54684dba5877b5c629a59d344803f6423cc3da
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      59182528
    • Jason Yellick's avatar
      FAB-10974 Remove cc-spec from core/controller · 881fc85b
      Jason Yellick authored
      
      
      This is part of the hygiene work to stop using external messaging protos
      to pass state internally.
      
      Change-Id: I13a03631de57292f7e7b52294c126635749402f6
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      881fc85b
    • Jason Yellick's avatar
      FAB-10835 Remove chaincode spec from platforms · 5d34c6a8
      Jason Yellick authored
      
      
      Make the parameters to the platforms functions explicit rather than
      using the chaincode spec structures.
      
      Change-Id: I3139c843750d54b6085633d863566b145d4499c5
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      5d34c6a8
    • Jason Yellick's avatar
      FAB-10834 GetMetadataProvider to accept code bytes · 62d81452
      Jason Yellick authored
      
      
      This CR completes the work of removing the chaincode spec and chaincode
      deployment spec from the platforms.Platform interface.  There is some
      outstanding work remaining to remove it entirely from the package which
      will follow this CR.
      
      Change-Id: Ib7d56d88267b72eb5de95ad382c8d59c581d2d55
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      62d81452
    • Jason Yellick's avatar
      FAB-10833 Fix ccmetadata package structure · 39a1a8c7
      Jason Yellick authored
      
      
      The ccmetadata is imported by utils and by other platforms, but is also
      part of the platforms interface definitions itself.  This CR moves the
      interface definition into the platforms package where it belongs, and
      also updates the implementation to accept an interface instead of
      requiring the chaincode deployment spec.  It is part of a series to
      remove the deployment spec from the platforms package.
      
      Change-Id: I7ab07c98a88fdf67129c29320ac1433e8b466695
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      39a1a8c7
    • Jason Yellick's avatar
      FAB-10832 GenerateDockerBuild to accept path, code · fe3bbe2c
      Jason Yellick authored
      
      
      Continuing a series of removing the chaincode spec dependencies from the
      platforms package.
      
      Change-Id: I23f108d895078db80d9b6ff1f733d27a71d5f548
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      fe3bbe2c
    • Jason Yellick's avatar
      FAB-10831 Remove unused GenerateDockerfile parm · b2db32ab
      Jason Yellick authored
      
      
      The CDS is never actually used in any capacity for GenerateDockerfile
      so, this CR removes it from the interface definition.
      
      Change-Id: I95f595d9877d2e76229ce1b13be197e288e57af1
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      b2db32ab
    • Jason Yellick's avatar
      FAB-10830 GetDeploymentPackage to take string · aff080c9
      Jason Yellick authored
      
      
      Part of the ongoing series to remove the chaincode protos from the
      platforms package, this CR passes in "path" explicitly as a string to
      GetDeploymentPackage, as it was the only piece fo the chaincode spec
      beign used.
      
      Change-Id: Ifaa8a16bdbeae84c479a8e33a9abc47ef175c551
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      aff080c9
    • Jason Yellick's avatar
      FAB-10829 Remove unused java hash file/function · 5d6fe7df
      Jason Yellick authored
      
      
      The java platform comment claims that the call to the hash computation
      function affects the tar writer, but it does not in fact, and the hash
      is discarded, so, this is all useless code. Removing.
      
      Change-Id: Iad9c9bbbd4bdb7805f4d234db4091a1fad3448b2
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      5d6fe7df
    • Jason Yellick's avatar
      FAB-10828 ValidateDepSpec to ValidateCodePackage · 77d4b817
      Jason Yellick authored
      
      
      Part of an ongoing series to remove all references to the chaincode
      protos from the platforms package so that they can eventually be
      replaced.  ValidateDeploymentSpec was only ever inspecting the code
      package bytes and nothing else about the spec, so changing this method
      to take the bytes directly.
      
      Change-Id: I897028f3bf4ea9818f685d01fba09ede5783637d
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      77d4b817
    • Jason Yellick's avatar
      FAB-10827 Remove meaningless file write from test · 9e47bf27
      Jason Yellick authored
      
      
      The node platform test currently creates a dummy file, then stats it and
      reads it in, then creates a tar header from the stat result, then
      modifies the tar header.  All of this is unnecessary code when the test
      can simply create the tar custom tar header directly.  This CR does just
      that.
      
      Change-Id: I9ea0ada2df5441b102faf7ead3ecc9457c7b3d93
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      9e47bf27
    • Jason Yellick's avatar
      FAB-10826 Change ValidateSpec to ValidatePath · adca9539
      Jason Yellick authored
      
      
      This is part of a CR series to remove the explicit dependency of the
      chaincode spec and deployment spec from the platforms package.
      Ultimately, these messages were designed for fabric v0.5/v0.6 and would
      not have been recycled given more time.  This is a step in allowing us
      to use a different, more fabric v1.0 natural format for describing
      chaincodes.
      
      Change-Id: Ibbd20f3ce85f226e4c2cc03b3e2fd70081815ba6
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>
      adca9539
    • Baohua Yang's avatar
      [FAB-11073] Fix linter checking · 33bcc43f
      Baohua Yang authored
      
      
      The linter checking ignores the new added `cmd` pkg.
      This patchset will let linter check the `cmd` pkg, too.
      
      Change-Id: If51d66a918eae5f7422e47bbef58c0b1452baf2a
      Signed-off-by: default avatarBaohua Yang <yangbaohua@gmail.com>
      33bcc43f
    • Matthew Sykes's avatar
      [FAB-10899] ignore context in VMController · 613e8450
      Matthew Sykes authored
      
      
      In go, a context is an object that carries cancellation signals across
      API boundaries. In fabric, contexts are associated with gRPC requests
      and get propagated through the system. When a request to invoke
      chaincode is received, the context is propagated to the controller
      responsible for managing container requests where it is misused.
      
      The controller spawns a go routine to handle the container request and
      signals completion via a channel. The Process function then waits for
      the request to complete or for the context to get canceled. When the
      context it canceled, the processor still waits for the request to
      complete before returning to the caller. This means the operation is
      never really canceled at this layer and, since it has to complete,
      it's likely that it has succeeded.
      
      Unfortunately, once the context is canceled, the controller returns the
      cancellation error from the context causing the callers to treat the
      operation as a failure.
      
      As the code downstream of the controller doesn't properly honor the
      context either and future releases remove it entirely, we'll simply
      ignore context cancellation signals in the controller.
      
      Change-Id: I51d8be9ef41e586c982abe268e6f9e0d61d4d7a7
      Signed-off-by: default avatarMatthew Sykes <sykesmat@us.ibm.com>
      613e8450
  5. 09 Jul, 2018 1 commit
    • pama-ibm's avatar
      [FAB-11102] Visual Vocab · 6d4bf4e7
      pama-ibm authored
      
      
      Added images from our visual vocabulary
      library to the Glossary & updated
      definition for Block. 
      
      Change-Id: I89f7694cd04c3828e3c48fdd2bb47b2178abcc85
      Signed-off-by: default avatarpama-ibm <pama@ibm.com>
      6d4bf4e7
  6. 08 Jul, 2018 2 commits