Skip to content

Commit ed4e537

Browse files
committed
taprpc: add block_timestamp to AnchorInfo
Add a `block_timestamp` field to the `AnchorInfo` RPC message which will contain the Unix timestamp of the block containing the anchor transaction
1 parent fa42f5b commit ed4e537

File tree

5 files changed

+984
-958
lines changed

5 files changed

+984
-958
lines changed

taprpc/marshal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ func MarshalChainAsset(ctx context.Context, a asset.ChainAsset,
510510
MerkleRoot: a.AnchorMerkleRoot,
511511
TapscriptSibling: a.AnchorTapscriptSibling,
512512
BlockHeight: a.AnchorBlockHeight,
513+
BlockTimestamp: a.AnchorBlockTimestamp,
513514
}
514515

515516
if a.AnchorLeaseOwner != [32]byte{} {

0 commit comments

Comments
 (0)