Skip to content

Commit ef90f31

Browse files
committed
tapfreighter: store anchor tx block hash in outbound package
1 parent 5890fcd commit ef90f31

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tapfreighter/chain_porter.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ func (p *ChainPorter) waitForTransferTxConf(pkg *sendPackage) error {
408408
case confEvent = <-confNtfn.Confirmed:
409409
log.Debugf("Got chain confirmation: %v", confEvent.Tx.TxHash())
410410
pkg.TransferTxConfEvent = confEvent
411+
412+
// If the anchoring tx block hash is given, we'll also store it
413+
// in the outbound package.
414+
pkg.OutboundPkg.AnchorTxBlockHash = fn.MaybeSome(
415+
confEvent.BlockHash,
416+
)
417+
411418
pkg.SendState = SendStateStoreProofs
412419

413420
case err := <-errChan:

0 commit comments

Comments
 (0)