mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-21 22:54:49 +01:00
fix: include change in melt quote state updates
This commit is contained in:
@@ -755,13 +755,6 @@ impl Mint {
|
|||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
self.pubsub_manager.melt_quote_status(
|
|
||||||
"e,
|
|
||||||
payment_preimage.clone(),
|
|
||||||
None,
|
|
||||||
MeltQuoteState::Paid,
|
|
||||||
);
|
|
||||||
|
|
||||||
let mut change = None;
|
let mut change = None;
|
||||||
|
|
||||||
// Check if there is change to return
|
// Check if there is change to return
|
||||||
@@ -827,6 +820,13 @@ impl Mint {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.pubsub_manager.melt_quote_status(
|
||||||
|
"e,
|
||||||
|
payment_preimage.clone(),
|
||||||
|
change.clone(),
|
||||||
|
MeltQuoteState::Paid,
|
||||||
|
);
|
||||||
|
|
||||||
proof_writer.commit();
|
proof_writer.commit();
|
||||||
tx.commit().await?;
|
tx.commit().await?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user