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

Fixed the transfer of RBT tokens between DIDs that are present on the same node #207

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

arnabghose997
Copy link
Collaborator

Closes #206 and follows the suggestion mentioned in the issue.

A test case has been added which covers the transfer of RBT between DIDs present on the same server

…e node by adding a validation rule to check for receiver's DID in DIDTable following the DIDPeerTable check
@arnabghose997 arnabghose997 self-assigned this Aug 6, 2024
@arnabghose997 arnabghose997 added the bug Something isn't working label Aug 6, 2024
@arnabghose997 arnabghose997 marked this pull request as draft August 9, 2024 08:42
@arnabghose997
Copy link
Collaborator Author

arnabghose997 commented Aug 12, 2024

Covered the scenario where either the Sender or Receiver is present on a Quorum node. Briefly, the fix includes adding a condition inside updatePledgeToken function, where we only add the token chain block when neither the sender nor receiver are present on the Quorum node. This is done to resolve a situation where addition of block to the trans token can happen twice.

Tests have been written to cover these scenarios:

  • Transfer between DIDs, both present on same Non-Quorum Server
  • Transfer between DIDs, both present on same Quorum Server
  • Transfer between DIDs, both present on different Quorum Server
  • Transfer between DIDS, where the Sender is present on Quorum Server and Receiver is present on Non-Quorum Server
  • Transfer between DIDS, where the Sender is present on Non-Quorum Server and Receiver is present on Quorum Server

@arnabghose997 arnabghose997 marked this pull request as ready for review August 12, 2024 09:13
@arnabghose997 arnabghose997 marked this pull request as draft August 23, 2024 07:02
@arnabghose997 arnabghose997 changed the title Fixed transfer of RBT tokens between DIDs that are present on the same node Fixed the transfer of RBT tokens between DIDs that are present on the same node Nov 1, 2024
@arnabghose997 arnabghose997 force-pushed the arnab/fix-transfer-between-self-dids branch from bdd3e3e to 9739751 Compare November 1, 2024 07:45
@arnabghose997 arnabghose997 marked this pull request as ready for review November 11, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Unable to transfer RBT between DIDs belonging to the same Node server
1 participant