-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: update payment id to cover all transaction types (#6744)
Description --- - Updated `PaymentId::Open`, `PaymentId::AddressAndData` and `PaymentId::TransactionInfo` to reflect the transaction type for all defined types in `pub enum TxType`. - Fixed transaction identification for all defined types in `pub enum TxType`. - Added method `transaction_type_from_encrypted_data` to the wallet FFI and a unit test to test all cases. - Added wallet FFI test cases to ensure coin-join and coin-split transactions are correctly flagged in the payment ID. _**TODO:** System-level testing mobile wallet recovery into a view-only console wallet._ Close issues #6713 and #6745 Motivation and Context --- The payment ID did not cover all transaction types or provide sufficient information for wallet recovery. How Has This Been Tested? --- - System-level testing (console wallet recovered as a view-only wallet) - Added unit tests for the wallet FFI What process can a PR reviewer use to test or verify this change? --- Code review System-level tests <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [ ] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [X] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> BREAKING CHANGE: - Added a new wallet FFI method: `fn transaction_type_from_encrypted_data` - Embedded `PaymentId` enum in `EncryptedData` changed: - `PaymentId::Open` changed - `PaymentId::Address` fell away - `PaymentId::AddressAndData` changed - `PaymentId::TransactionInfo` changed - No changes to pre-mine payment IDs in the genesis block that makes use of `PaymentId::U64` --------- Co-authored-by: SW van Heerden <[email protected]>
- Loading branch information
1 parent
e5193a8
commit 5f4f95b
Showing
35 changed files
with
1,310 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.