File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1863,6 +1863,10 @@ type ChainAsset struct {
18631863 // tx.
18641864 AnchorBlockHeight uint32
18651865
1866+ // AnchorBlockTimestamp is the Unix timestamp of the block that mined
1867+ // the anchor tx.
1868+ AnchorBlockTimestamp int64
1869+
18661870 // AnchorOutpoint is the outpoint that commits to the asset.
18671871 AnchorOutpoint wire.OutPoint
18681872
Original file line number Diff line number Diff line change @@ -530,6 +530,7 @@ func (p *Proof) ToChainAsset() (asset.ChainAsset, error) {
530530 AnchorBlockHash : p .BlockHeader .BlockHash (),
531531 AnchorOutpoint : p .OutPoint (),
532532 AnchorBlockHeight : p .BlockHeight ,
533+ AnchorBlockTimestamp : p .BlockHeader .Timestamp .Unix (),
533534 AnchorInternalKey : p .InclusionProof .InternalKey ,
534535 AnchorMerkleRoot : merkleRoot [:],
535536 AnchorTapscriptSibling : tsSibling ,
You can’t perform that action at this time.
0 commit comments