-
-
Notifications
You must be signed in to change notification settings - Fork 273
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: Cancel Transaction #16525
base: develop
Are you sure you want to change the base?
feat: Cancel Transaction #16525
Conversation
// override Account data, similar to RBF | ||
const cancelAccount: ConnectCallParams['account'] = { | ||
...account, | ||
utxo: getMineInputsFromTransaction({ tx, account }), |
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.
Theoretically we may only double-spend any of the inputs of the original transaction. That may reduce the trace on-chain.
However, the Electrum wallet also spends all mine inputs so maybe we shall keep it same.
π Expo preview is ready!
|
outputs: [ | ||
{ | ||
type: 'send-max', | ||
address: account.addresses?.unused[0].address, // Todo: is this correct way? |
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.
Electrum tries to use original change output if present in the original transaction:
out_address = (self.get_single_change_address_for_new_transaction(old_change_addrs)
or self.get_receiving_address())
...s/ReduxModal/UserContextModal/TxDetailModal/AffectedTransactions/AffectedTransactionItem.tsx
Outdated
Show resolved
Hide resolved
0b0d520
to
7e127f9
Compare
ac59862
to
9b26270
Compare
TR_CANCEL_TX_NOTICE: { | ||
id: 'TR_CANCEL_TX_NOTICE', | ||
defaultMessage: | ||
'Once the transaction is canceled successfully, your funds (minus the transaction fee) will be returned to your wallet.', |
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.
Once the transaction is canceled successfully, your funds (minus the transaction fee) will be returned to your wallet.
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.
(design update)
# Conflicts: # packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/TxDetailModal/AffectedTransactions/AffectedTransactionItem.tsx # packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/TxDetailModal/AffectedTransactions/AffectedTransactions.tsx # packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/TxDetailModal/ChangeFee/ChangeFee.tsx # packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/TxDetailModal/ChangeFee/DecreasedOutputs.tsx # packages/urls/src/urls.ts
9b26270
to
dcf6053
Compare
dcf6053
to
aa535b0
Compare
π§ π§ π§ Still WIP π§ π§ π§
β Depends on #16569 π Merge this first!
Description
This PR Implements a Cancel Transaction flow by sending a RBF transaction what spends the (users) inputs back to thne users own address
Related Issue
Resolve #6810
Screenshots: