davidkel / hlf

0 stars 0 forks source link

[Java] Peer Roles don't appear to be processed when defined in a connection profile #29

Open davidkel opened 4 years ago

davidkel commented 4 years ago

Given a channel definition such as

"channels": {
    "mychannel": {
        "peers": {
            "peer0.org1.example.com": {
                "endorsingPeer": false
            }
        }
    }
}

I defined the peer to be non-endorsing yet the following call

Collection<Peer> cpsd = c.getPeers(EnumSet.of(PeerRole.ENDORSING_PEER));

Still returns me the peer in mychannel which implies that this peer is still considered an endorsing peer even though the role definition in the ccp explicitly says it isn't

Apparently roles are to be removed in 2.0.0