hyperledger-labs / blockchain-verifier

bcverifier: Blockchain verification tool
Apache License 2.0
16 stars 8 forks source link

TextEncoder is not defined when opening ./blockfile_000000 #31

Open MiguelMotaG opened 1 year ago

MiguelMotaG commented 1 year ago

Hi, I just installed blockchain-verifier, I'm trying to parse the a block file from my system channel, I'm running

$ npx bcverifier -n generic-block -c ./blockfile_000000 -o result.json start
TextEncoder is not defined

but I'm getting this message "TextEncoder is not defined", I already tried to define a TextEncoder without results, any suggestion?

thanks !

shimos commented 1 year ago

Thank you for trying out Blockchain Verifier, but unfortunately, I could not reproduce your issue.

When I ran the command, I've got:

$ npx bcverifier -n generic-block -c ./blockfile_000000 -o result.json start
BCVerifier Error: No suitable network plugin found
Error: No suitable network plugin found

I suspect that the message has something to do with your node environment. Could you elaborate your environment a little bit more? (btw, generic-block in the option should be fabric-block)

MiguelMotaG commented 1 year ago

Sorry was such in a hurry that I didn't notice that Node.js >= v16 is required, I have v10.19.0, so I think it just won't work.

thanks anyways.