Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAB-17419 Fix off_chain_data sample error #146

Merged
merged 1 commit into from
Mar 31, 2020

Commits on Mar 31, 2020

  1. FAB-17419 Fix off_chain_data sample error

    Before fix:
    
    $ node blockEventListener.js
    fabric-samples/off_chain_data/blockProcessing.js:53
                  continue();
                          ^
    
    SyntaxError: Unexpected token '('
        at Module._compile (internal/modules/cjs/loader.js:895:18)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
        at Module.load (internal/modules/cjs/loader.js:815:32)
        at Function.Module._load (internal/modules/cjs/loader.js:727:14)
        at Module.require (internal/modules/cjs/loader.js:852:19)
        at require (internal/modules/cjs/helpers.js:74:18)
        at Object.<anonymous> (fabric-samples/off_chain_data/blockEventListener.js:48:25)
        at Module._compile (internal/modules/cjs/loader.js:959:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
        at Module.load (internal/modules/cjs/loader.js:815:32)
    
    After fix:
    
    $ node blockEventListener.js
    Wallet path: fabric-samples/off_chain_data/wallet
    2020-03-31T06:14:26.643Z - error: [Channel.js]: Channel:mychannel received discovery error:failed constructing descriptor for chaincodes:<name:"_lifecycle" >
    Listening for block events, nextblock: 0
    Added block 0 to ProcessingMap
    Added block 1 to ProcessingMap
    Added block 2 to ProcessingMap
    ------------------------------------------------
    Block Number: 0
    ------------------------------------------------
    Block Number: 1
    ------------------------------------------------
    Block Number: 2
    
    Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
    lehors committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    561769b View commit details
    Browse the repository at this point in the history