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

Backend- Improper updation of Txn Count and Chaincodes list #408

Closed
ArchanaArige opened this issue Jun 28, 2023 · 0 comments · Fixed by #411
Closed

Backend- Improper updation of Txn Count and Chaincodes list #408

ArchanaArige opened this issue Jun 28, 2023 · 0 comments · Fixed by #411
Assignees
Labels

Comments

@ArchanaArige
Copy link
Contributor

What happened?

Backend - Issue in updating the Txn count w.r.t mutiple versions of the same chaincode and issue in fetching the chaincodes list w.r.t to other channel.
Considerations:
Tested with Hyperledger Fabric Version 2.2 and 2.4.7
No of Channels -2
channel Name:"mychannelb" In this channel the deployed chaincode name is "basic" and with versions 1 and 2. The other deployed chaincode is "auction" with version 1.
channel name: "channel2" In this channel the deployed chaincode name is "auction" - version 1.

Issue#1: When we invoke a Txn, the Txn count is incrementing by one in all the available versions of the same chaincode.

<style> </style>
CC Name CC version Txn Count Comments
basic 1 8 The Txn Count will be incremented by 1, when a txn is invoked in basic-V2.

The below screenshot shows the txn count increment in "basic-V1" with 9 txn count.
image

Isse#2: Issue in fetching the list of chaincodes when there are multiple channels.
The chaincode installed in channel2 is only "auction" but it is picking even the "basic- V2" chaincode which is installed in channel - mychannelb.
image

What did you expect to happen?

The correct Txn count w.r.t chaincode version.
Fetch the correct list of chanicodes installed with specific to channels.

How can we reproduce it (as minimally and precisely as possible)?

  1. The Hyperledger Fabric network consideration is mentioned in "What happened" section of this issue.
  2. click on the chaincodes tab w.r.t to each channel in the UI.

Anything else we need to know?

No response

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Developer Done
Development

Successfully merging a pull request may close this issue.

1 participant