Skip to content

Do not try to access new tx in WalletModel::prepareTransaction if it wasn't really created#3733

Merged
UdjinM6 merged 1 commit into
dashpay:developfrom
UdjinM6:fix_prepareTransaction_crash
Sep 26, 2020
Merged

Do not try to access new tx in WalletModel::prepareTransaction if it wasn't really created#3733
UdjinM6 merged 1 commit into
dashpay:developfrom
UdjinM6:fix_prepareTransaction_crash

Conversation

@UdjinM6
Copy link
Copy Markdown

@UdjinM6 UdjinM6 commented Sep 24, 2020

... or we'll just crash otherwise. This part wasn't crashing before #3680 (which switched CreateTransaction from using CWalletTx to CTransactionRef), so no need to backport to v0.16.

Thanks @thephez for reporting the issue

@UdjinM6 UdjinM6 added this to the 17 milestone Sep 24, 2020
@UdjinM6 UdjinM6 changed the title Do not try to access new tx if it wasn't created in WalletModel::prepareTransaction Do not try to access new tx WalletModel::prepareTransaction if it wasn't really created Sep 24, 2020
@UdjinM6 UdjinM6 changed the title Do not try to access new tx WalletModel::prepareTransaction if it wasn't really created Do not try to access new tx in WalletModel::prepareTransaction if it wasn't really created Sep 24, 2020
Copy link
Copy Markdown
Collaborator

@thephez thephez left a comment

Choose a reason for hiding this comment

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

tACK. Looks like it works 👏

Copy link
Copy Markdown

@xdustinface xdustinface left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Copy Markdown
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit 578fe89 into dashpay:develop Sep 26, 2020
@UdjinM6 UdjinM6 deleted the fix_prepareTransaction_crash branch November 26, 2020 13:26
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants