-
Notifications
You must be signed in to change notification settings - Fork 97
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
base: dev
Are you sure you want to change the base?
Conversation
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.
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.
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.
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.
mm2src/coins/z_coin.rs
Outdated
@@ -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)?; |
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.
Doesn't have to be internal error as it can be due scanning not done yet.
mm2src/coins/z_coin/z_htlc.rs
Outdated
@@ -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)))?; |
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.
Same here.
88bcbd2
to
00e7148
Compare
fixes: #2273
related: KomodoPlatform/librustzcash#10