-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add memo field to withdrawal transaction #4229
Conversation
I notice you have added a new storage class for transactions. There is already the bitcoinj Transaction which stores the transactions and has a memo field. What was the reasons for not using that? I suppose those transactions would be lost in an SPV resync. Just feels like quite a bit of extra work to store the memo field separately like this. |
Thank you very much for direction. I have updated the code in this PR: For now, I'll keep commits (to allow anyone to see the hisstory in this PR) but I will of course squash it before the merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -164,7 +163,8 @@ private WithdrawalView(BtcWalletService walletService, | |||
@Named(FormattingUtils.BTC_FORMATTER_KEY) CoinFormatter formatter, | |||
Preferences preferences, | |||
BtcAddressValidator btcAddressValidator, | |||
WalletPasswordWindow walletPasswordWindow) { | |||
WalletPasswordWindow walletPasswordWindow | |||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not customary. Not sure if it's in the style guide, but better keep it in line with other code and not line break before the parenthesis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 this looks like some forgotten change after reverting my previous changes.
Maybe question/suggestion - is there any good automated style check (ideally with fixer) to solve issues like this to save some time? I am not really experienced in Java ecosystem, but I believe there is something like https://eslint.org/ but for Java.
- "Memo" field is modeled as property of the new object Transaction which is stored in persitant storage. - Transaction object is modeled in a way that allows extension in the furure for more persisted attributes.
…ansaction object)
@sqrrm About the dark mode tooltip. I am not sure if its a bug in my PR. As I understand it, I am using standard Am I missing something? If not, I suggest to create a special Issue for this as bug in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
I agree, the tooltip you use should be fixed as a separate issue.
Will solve #1387
This is a Draft intended for early review because it is my first contribution during onboarding.Preview: