fabric orderer报错 “the identity is a member of a different MSP(expected OrdererMSP, got Org1MSP)“

Build fabric manually from scratch: generate cert, key, create genesis.block channel.tx anchor.tx; use SDK to build channel and future work

An error is reported when creating an application channel in the SDK

 

Check the log of the orderer node

"the identity is a member of a different MSP(expected OrdererMSP, got Org1MSP)"

Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ OrdererOrg.Writers]

Evaluation Failed: Only 0 policies were satisfied, but needed 1 of [ Orderer.Writers Consortiums.Writers]

I thought my certification path was wrong, or the policies were set wrong

but! turn out:

When using configtxgen create genesis.block and [channel.tx anchor.tx], the parameter -channelID is required, but the value should be different.

genesis.block uses the system channel ID "syschan", and the others are the application channel ID "mychnnel"

Regenerate the genesis block in this way, update the corresponding position in docker-compose.yaml, and restart

Guess you like

Origin blog.csdn.net/wwqcherry/article/details/111052077