Skip to content

Latest commit

 

History

History

nodejs

khala-fabric-sdk-node

fabric-sdk-node integrated utils

lerna

Component module list

Windows Extra prerequisite

  • global setup: require admin shell
    • npm install --global windows-build-tools if you see Error "Could+not+install+Visual+Studio+Build+Tools"
      try to run installer in C:\Users\<username>\.windows-build-tools\vs_BuildTools and follow the wizard
    • npm install --global grpc

Test

- intergration test and e2e test locates in [delphi-fabric](https://github.com/davidkhala/delphi-fabric)

Notes

  • node-gyp rebuild require make and g++
  • Block data emitted in block event has a structure documented in types.js
  • Now User and Client is separated. Client is less useful for most actions.
  • configtxlator handler (for both CLI or server based) in binManager.js
  • [gPRC] waitForReady will response back positive response with non-TLS protocol
    • With grpcs://domain.org setup, we could get pong response from grpc://domain.org
  • proposal response .responses.map(({connection})=>connection) could label each response with Endorser detail
  • configtxlator Rest server is deprecated but kept in BinManger const binManager = new BinManager(); await binManager.configtxlatorRESTServer('down|start');
  • collection-level-endorsement-policies
    • If a collection-level endorsement policy is set, transactions that write to a private data collection key will require that the specified organization peers have endorsed the transaction.
    • The collection-level endorsement policy may be less restrictive or more restrictive than the chaincode-level endorsement policy and the collection’s private data distribution policy.

TODO

Fabric weakness

  • Does not support multiple stream managed in single EventService even with multiple targets configured
    • Only single eventService._current_eventer take effect
    • _current_eventer is set from either one workable target