-
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
Clear payment account payload info from closed trades. #6001
Conversation
Hi @jmacxx thanks for sorting this out. just checking trades in mediation and arbitration will not count as completed trades? Assuming mediated trades are completed once payout occurs. What about arbitrated trades? What point do these become completed after payment is made to donation address? |
Also just wondering how this would affect how a duplicate offer creation when a previous offer has had their payload info removed? |
Answering your questions @pazza83 :
Correct, only trades that are Closed are considered.
Same, they transition to Closed once the arbitration ticket has been closed.
No effect as offers do not contain account payloads or contracts, only trades do. There's some work remaining to sanitize account payloads from closed dispute tickets which looks like the implementation will need refactoring, so moving this back into draft for a couple of days. |
Just so I am clear, I am assuming the payload is link to the local payment account (trading account) used to fund the trade? When an offer moves to 'history' currently it still has the information associated to what payment account (trading account) was used to fund the trade associated to it. Will that still be the case once the payload has been cleared? What I am getting at is once the trade contract details have been cleared, a local user should still not be able just to right click duplicate on a historic trade to see what local payment account (trading account) was used to fund the trade. |
I think we still want to maintain the ability to duplicate an offer as it is quite frequently used. Severing past offers' What is being done here is removing counterparties personal information from each Bisq instance. Yes it also removes copies of your own personal information from trades, which is good too. |
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 - Code changes are looking fine 👍
Was getting an NPE with closed trades older than v1.7.0. makerPaymentMethodId was new at that point (null for older trades). makerPaymentAccountPayload can be null for trades where we have removed account info for privacy reasons (see #6001). The payment method ID can always be obtained from offerPayload.
The additional weird thing about this is that it was a mediation case from today which seems to have lost all chat messages. It only happened on this side of the dispute. The other side still has the messages. Also the arbitrator still sees the messages. Application setting is on the default 20 days. |
I do see the expected logs e.g. for
But not for the recent trade |
Contract details are still available. |
I have not come across that issue before. I'm trying to reproduce it, so far not been able to. I wonder if anything can be seen in your log when it removed the chat messages from |
.filter(e -> e.isClosed()) | ||
.filter(e -> e.getTradeDate().toInstant().isBefore(safeDate)) |
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.
Maybe you want to use:
.filter(Dispute::isClosed)
.filter(e -> e.getOpeningDate().toInstant().isBefore(safeDate))
instead?
ah - I think I know what happened. I might have missed the log, but the trade I've put into mediation was already quite old. So at the moment when the dispute was closed, all chat messages were cleared as you are using the trade date instead of the dispute opening date. See https://github.com/bisq-network/bisq/pull/6001/files#r814853854 |
Tested this and it works well. Many thanks. |
I UNDERSTAND
shown in the dialog below.Closes #5396
Screenshots:
Settings:
The highlighted payment account details get removed:
Trade contract showing payment account information removed.
Invocation:
The list of closed trades need to be occasionally evaluated to see if any are eligible for having their sensitive data cleared. This is primarily done at app initialization, but also is done periodically whenever a trade is added to the list shown in portfolio history. That is to handle the case of clients which do not restart daily.
Likewise, the list of dispute tickets is evaluated at initialization and also whenever a dispute ticket closed message is processed.
Whenever the evaluation is done, the following log messages are written:
If any actions are taken, they are logged, for example: