Skip to content

Commit

Permalink
[FABN-874] Part 3, update anchor peers
Browse files Browse the repository at this point in the history
Found a flaw in block validation logic

Change-Id: I697073a45278e4134c395bb1dcd80a2f4141cc73
Signed-off-by: davidliu <[email protected]>
  • Loading branch information
davidkhala committed Sep 25, 2018
1 parent 8472880 commit d703cc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/e2e/updateAnchorPeers.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ test('\n\n***** End-to-end flow: setAnchorPeers *****\n\n', async (t) => {
'ssl-target-name-override': ORGS[org].peer1['server-hostname']
}
);
channel.addPeer(peer,ORGS[org].mspid);
channel.addPeer(peer, ORGS[org].mspid);
await channel.initialize();


Expand All @@ -107,7 +107,8 @@ test('\n\n***** End-to-end flow: setAnchorPeers *****\n\n', async (t) => {
const blockEventPromise = new Promise((resolve, reject) => {
const block_registration_number = eventHub.registerBlockEvent((block) => {
if (block.data.data.length !== 1) {
reject('Config block must only contain one transaction');
t.comment('Config block must only contain one transaction');
return;
}
const envelope = block.data.data[0];
const channel_header = envelope.payload.header.channel_header;
Expand Down

0 comments on commit d703cc2

Please sign in to comment.