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(ARRR): store unconfirmed change output #2276

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

borngraced
Copy link
Member

@borngraced borngraced self-assigned this Nov 19, 2024
@shamardy shamardy self-requested a review November 25, 2024 10:51
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Only one note from my side!

I will wait for the librustzcash PR to be approved and released first to approve this.

mm2src/coins/z_coin.rs Outdated Show resolved Hide resolved
mm2src/coins/z_coin/z_htlc.rs Outdated Show resolved Hide resolved
shamardy
shamardy previously approved these changes Dec 6, 2024
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

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

LGTM! Only nits! Don't forget to use the librustzcash release once the PR there is merged then I can re-approve this and merge it.

@@ -481,7 +480,7 @@ impl ZCoin {
// and saving them to the wallet database for future spends
store_change_output(self.consensus_params_ref(), &self.z_fields.light_wallet_db, &tx)
.await
.error_log();
.mm_err(GenTxError::Internal)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't have to be internal error as it can be due scanning not done yet.

@@ -196,7 +195,7 @@ pub async fn z_p2sh_spend(
// and saving them to the wallet database for future spends
store_change_output(coin.consensus_params_ref(), &coin.z_fields.light_wallet_db, &zcash_tx)
.await
.error_log();
.mm_err(|err| ZP2SHSpendError::GenTxError(GenTxError::Internal(err)))?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants