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

feat: sender and receiver protocols use bytes (not hex string) in wallet database #5950

Merged

Conversation

hansieodendaal
Copy link
Contributor

Description

Changed the sender and receiver protocol in the wallet database to use bytes instead of a hex string, as the underlying data type is encrypted bytes. This issue was highlighted due to the to_hex function in tari_utilities not being able to convert large transactions into hex strings (returned String to large) for saving in the wallet database.

Motivation and Context

See above.

How Has This Been Tested?

Existing unit tests and cucumber tests passed
Added a new integration-level unit test async fn large_interactive_transaction() to test the conversion from pending outgoing and incoming transactions to and from the database.

What process can a PR reviewer use to test or verify this change?

Code walk-through
Run the new unit test

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Changed the sender and receiver protocol sin the wallet database to use bytes instead of a hex string, as the underlying data type is encrypted bytes. This issue was highlighted due to the to_hex function in tari_utilities not being able to convert large transactions into hex strings (returned **String to large**) for saving in the wallet database.
@hansieodendaal hansieodendaal changed the title feat: sender and receiver protocols use bytes for transaction protocol (not hex string) in wallet database feat: sender and receiver protocols use bytes for (not hex string) in wallet database Nov 13, 2023
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Nov 13, 2023
@hansieodendaal hansieodendaal changed the title feat: sender and receiver protocols use bytes for (not hex string) in wallet database feat: sender and receiver protocols use bytes (not hex string) in wallet database Nov 13, 2023
Copy link

github-actions bot commented Nov 13, 2023

Test Results (CI)

1 258 tests   1 258 ✔️  11m 39s ⏱️
     39 suites         0 💤
       1 files           0

Results for commit 3b6c0b7.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 13, 2023

Test Results (Integration tests)

31 tests   31 ✔️  14m 11s ⏱️
11 suites    0 💤
  2 files      0

Results for commit 3b6c0b7.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Nov 13, 2023
@SWvheerden SWvheerden merged commit 4cbdfec into tari-project:development Nov 13, 2023
13 checks passed
@hansieodendaal hansieodendaal deleted the ho_sender_receiver_protocol branch November 20, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants