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

Fix: incorrect wallet tx handling #6422

Merged
merged 1 commit into from Nov 26, 2022
Merged

Fix: incorrect wallet tx handling #6422

merged 1 commit into from Nov 26, 2022

Conversation

ghost
Copy link

@ghost ghost commented Nov 21, 2022

Fix: altcoins/sepa instant BTC buyer's trade timer started too early

This is problematic in mainnet scenarios when a block is not published for 1 hour. The user is prompted to start payment after the first confirm, and they are also prompted that the trade has expired and to open mediation.

Issue description / steps to reproduce:

  • Alice makes an offer to sell XMR (buy BTC) using Altcoins Instant payment method.
  • Bob takes the offer. Note the time (time "X").
  • Wait ~10 minutes.
  • In regtest, generate the first trade confirm. Note the time (time "Y").
  • Alice's trade display will show that the trade started at time "X".
  • Bob's trade display will show that the trade started at time "Y".
  • This is wrong, both traders displays should show that the trade started at time "Y"; the time of the first confirm.

There was an issue with the transaction having a non-initialized blockTime because on the buyer's side the transaction was not obtained from the wallet, instead the serialized transaction was used which does not have a timestamp.

There was an issue with the transaction having a non-initialized
updateTime and/or blockTime because the wallet transaction was
not returned.
Copy link
Collaborator

@HenrikJannsen HenrikJannsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@HenrikJannsen
Copy link
Collaborator

@jmacxx Maybe rename the title to make it more clear that its about incorrect wallet tx handling

@ghost ghost changed the title Fix: altcoins/sepa instant BTC buyer's trade timer started too early Fix: incorrect wallet tx handling Nov 25, 2022
Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit 92e4c62 into bisq-network:master Nov 26, 2022
@ripcurlx ripcurlx added this to the v1.9.7 milestone Dec 1, 2022
@ghost ghost mentioned this pull request Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants