Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

approve/update 前供使用者確認 approve/update 的內容 #21

Closed
kth-tw opened this issue Dec 8, 2021 · 4 comments
Closed

approve/update 前供使用者確認 approve/update 的內容 #21

kth-tw opened this issue Dec 8, 2021 · 4 comments

Comments

@kth-tw
Copy link
Collaborator

kth-tw commented Dec 8, 2021

ISSUE

說明 (Description)

新指令: bdk org decode-envelop

種類 (Issue Type)

[x] Feature Request
[ ] Report Bug
[ ] Other


新功能 (Feature Request)

在 approve 前無法檢查內容

...

可能的解法 (Proposed Solution)
decode channel-artifacts/{channelName}/{channelName}_update_envelope.pb

@kth-tw
Copy link
Collaborator Author

kth-tw commented Dec 24, 2021

指令就叫 bdk channel decode-envelop ?

@SecondDim
Copy link
Contributor

是否可以補充,預想的完整的輸出內容?

Can you add the expected complete output content?

@kth-tw
Copy link
Collaborator Author

kth-tw commented Dec 24, 2021

若是要加新Peer進system-channel,會顯示

Approved org: Org0Orderer
Add org to system channel: OrgNew , verify: match

Approved org 是已經 approve 的 org
verify 是與 org-json 比較的結果

@SecondDim
Copy link
Contributor

建議改為輸出成三行,而且可以透過變數 --verify 控制 exit code ,如果失敗 exit 可以帶非0值

# bdk org decode-envelop

Approved org: Org0Orderer
Add org to system channel: OrgNew 
verify: succeeded

# exit-code: 0
# bdk org decode-envelop

Approved org: Org0Orderer
Add org to system channel: OrgNew 
verify: failed

# exit-code: 0
# bdk org decode-envelop --verify

Approved org: Org0Orderer
Add org to system channel: OrgNew 
verify: failed

# exit-code: 255

@kth-tw kth-tw mentioned this issue Dec 28, 2021
12 tasks
@kth-tw kth-tw closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants