Skip to content

Commit daaa961

Browse files
committed
rpcserver+universe: expose anchor point
1 parent 6a73cd5 commit daaa961

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rpcserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4209,6 +4209,7 @@ func (r *rpcServer) marshalAssetSyncSnapshot(ctx context.Context,
42094209
TotalSupply: int64(a.TotalSupply),
42104210
GenesisHeight: int32(a.GenesisHeight),
42114211
GenesisTimestamp: r.getBlockTimestamp(ctx, a.GenesisHeight),
4212+
AnchorPoint: a.AnchorPoint.String(),
42124213
}
42134214

42144215
if a.GroupKey != nil {

universe/interface.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,10 @@ type AssetSyncSnapshot struct {
816816
// for the asset.
817817
TotalProofs uint64
818818

819+
// AnchorPoint is the outpoint of the transaction that created the
820+
// asset.
821+
AnchorPoint wire.OutPoint
822+
819823
// TODO(roasbeef): add last sync?
820824
}
821825

0 commit comments

Comments
 (0)