Skip to content

Commit cec657e

Browse files
committed
WIP
1 parent 2837237 commit cec657e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tapfreighter/chain_porter.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,9 @@ func (p *ChainPorter) unlockInputs(ctx context.Context, pkg *sendPackage) {
14911491
return
14921492
}
14931493

1494+
// TODO(ffranr): Make use of CheckMempoolAccept to ensure we don't
1495+
// unlock inputs for transactions that are in the mempool.
1496+
14941497
// If we haven't even attempted to broadcast yet, we're still in a state
14951498
// where we give feedback to the user synchronously, as we haven't
14961499
// created an on-chain transaction that we need to await confirmation.
@@ -1530,6 +1533,9 @@ func (p *ChainPorter) unlockInputs(ctx context.Context, pkg *sendPackage) {
15301533
log.Warnf("Unable to unlock input %v: %v", op, err)
15311534
}
15321535
}
1536+
1537+
// TODO(ffranr): Remove pending asset transfer and chain tx from the
1538+
// database.
15331539
}
15341540

15351541
// logPacket logs the virtual packet to the debug log.

0 commit comments

Comments
 (0)