mirror of
https://github.com/tompro/sattle.git
synced 2026-10-26 01:49:58 +00:00
feat(funds): keep the claimable note of a pending named transfer
An unknown-still-pending transfer to a named mint carries the note at the wallet's own secret in its claim material - persist it unverified like the settled-claim-failed path already does, instead of dropping it with the result object.
This commit is contained in:
@@ -170,6 +170,12 @@ export const useMoveFundsPage = () => {
|
|||||||
);
|
);
|
||||||
} else if (transfer.outcome === 'unknown-still-pending') {
|
} else if (transfer.outcome === 'unknown-still-pending') {
|
||||||
await wallet.markSpent(carved.id, ownerFence);
|
await wallet.markSpent(carved.id, ownerFence);
|
||||||
|
// a named target's claim material carries the note at the wallet's
|
||||||
|
// own secret - claimable the moment the melt settles, so it is
|
||||||
|
// tracked unverified rather than lost with the result object
|
||||||
|
if (transfer.claimMaterial?.note) {
|
||||||
|
await addCommittedBearers(wallet, [transfer.claimMaterial.note], commitContext);
|
||||||
|
}
|
||||||
await activity.log(
|
await activity.log(
|
||||||
'transfer',
|
'transfer',
|
||||||
`A move of ${sats.toLocaleString()} sats to ${transfer.targetServer} is still in flight - the note is locked.`,
|
`A move of ${sats.toLocaleString()} sats to ${transfer.targetServer} is still in flight - the note is locked.`,
|
||||||
|
|||||||
Reference in New Issue
Block a user