回复: 回复: [Hyperledger Fabric] Node SDK Invoke - Isn't Elligble
david liu <david-khala@...>
Without setting NodeOU, fabric only support classification of admin and member role. Please correct me if anyone think I am wrong.
Best Regards, David Liu
发件人: Nicholas Zanutim <nlzanutim@...>
发送时间: Wednesday, October 23, 2019 9:10:44 PM 收件人: Hyperledger-fabric <hyperledger-fabric@...>; david liu <david-khala@...> 主题: Re: 回复: [Hyperledger Fabric] Node SDK Invoke - Isn't Elligble Thanks man,
I got it to work.
What I changed was the orgs policies rule from admin, peer and client to member "OR('ExampleMSP.member')"
Writers:
Type: Signature
Rule: "OR(' ExampleMSP.admin', '
ExampleMSP.peer', '
ExampleMSP.client')"
Although I'm not sure why it worked because the user I registered is a "client". Could this be a bug in version 1.4.3?
I've been working with fabric for 2 years so I'm very familiar with it that's why I'm raising whether it could be a bug.
Em quarta-feira, 23 de outubro de 2019 09:56:12 BRT, david liu <david-khala@...> escreveu:
I guess you could carefully compare your entire configtx.yaml with
https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/configtx.yaml
Best Regards, David Liu
发件人:
Nicholas Leonardi via Lists.Hyperledger.Org
Hey guys, I'm having trouble invoking a transaction on a network and getting an error that I can't find anyone else having.
got query for channel channel from 192.168.6.33:33132 but it isn't eligible: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied
I understand it has to do with policies but they're all set for ANY in the configtx.yaml
Also, when I generate the channel genesis block, I'm still getting this warning
2019-10-23 09:11:57.649 -03 [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 006 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml 2019-10-23 09:11:57.649 -03 [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 007 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml
even though I have set the policies in the configtx like this:
Channel: &ChannelDefaults # Policies defines the set of policies at this level of the config tree # For Channel policies, their canonical path is # /Channel/<PolicyName> Policies: # Who may invoke the 'Deliver' API Readers: Type: ImplicitMeta Rule: "ANY Readers" # Who may invoke the 'Broadcast' API Writers: Type: ImplicitMeta Rule: "ANY Writers" # By default, who may modify elements at this config level Admins: Type: ImplicitMeta Rule: "ANY Admins"
Any insight is greatly appreciated
|
|