Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Problem updating endorsingpeers/peerorgs variables #361

Open
Dudu3710 opened this issue Oct 31, 2022 · 7 comments
Open

Problem updating endorsingpeers/peerorgs variables #361

Dudu3710 opened this issue Oct 31, 2022 · 7 comments

Comments

@Dudu3710
Copy link

When commit or instantiate are called, they use endorsingpeers/peerorgs variables in a for loop, to get all the necessary information about the peers. But in the commit command for example it only recognize the orgs and peers that are in the network that called the function. In my case i have a channel with two different networks connected and i cant reach majority using this functions because the command don`t use the other network orgs/peers in the for loop.
for_loop

Where this variables are? How can i change them?

@litong01
Copy link
Contributor

@Dudu3710 I believe that you should use -o to specify an org for the commit command.

@Dudu3710
Copy link
Author

Dudu3710 commented Oct 31, 2022

Thanks for your answer.

I used -o but the problem is still going on.

@Dudu3710
Copy link
Author

Dudu3710 commented Nov 4, 2022

Thanks for your answer.

I used -o but the problem is still going on.

I followed the docs/ExpandYourNetwork.md file to run an example. and when i tried to run the commit function using mysite1 i received the error that i can`t reach majority, i think is because the endorsingpeers/peerorgs variables are not being updated.
Is normal that only mysite0 can commit?

@litong01
Copy link
Contributor

litong01 commented Nov 4, 2022 via email

@Dudu3710
Copy link
Author

Dudu3710 commented Nov 4, 2022

I do not think that is the case. It depends how many approve the action. Probably your site1 has less number of orgs?

Sent from my iPhone On Nov 4, 2022, at 12:43 PM, Dudu3710 @.> wrote:  Thanks for your answer. I used -o but the problem is still going on. I followed the docs/ExpandYourNetwork. md file to run an example. and when i tried to run the commit function using mysite1 i received the error that i cant reach majority, ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Thanks for your answer. I used -o but the problem is still going on. I followed the docs/ExpandYourNetwork.md file to run an example. and when i tried to run the commit function using mysite1 i received the error that i cant reach majority, i think is because the endorsingpeers/peerorgs variables are not being updated. Is normal that only mysite0 can commit? — Reply to this email directly, view it on GitHub<#361 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAO2NSZTGBSD2PIXEQLQNUTWGU4KRANCNFSM6AAAAAARTM5TJI. You are receiving this because you commented.Message ID: @.>

Yes, site1 have only 1 org, but they all approved so in this case anyone that approve can commit right?

@litong01
Copy link
Contributor

litong01 commented Nov 4, 2022 via email

@Dudu3710
Copy link
Author

Dudu3710 commented Nov 4, 2022

Using the site1:
Github_issue_1

checking the cccommit.sh script, site1 only have 1 org so it will only use 1 org on commit function. Generating an endorsment policy failure (i am using majority).
Github_issue_2.

This problem got worse when i executed an example with 2 sites with 2 orgs each, neither has majority so i can`t commit.

I checked that all orgs have approved the definition.
Github_issue_3

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants