Skip to content

Commit ec46259

Browse files
committed
rpcserver+tapdb: omit anchor txid from anchor info
1 parent e53966a commit ec46259

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

rpcserver.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ func (r *rpcServer) marshalChainAsset(ctx context.Context, a *tapdb.ChainAsset,
727727

728728
rpcAsset.ChainAnchor = &taprpc.AnchorInfo{
729729
AnchorTx: anchorTxBytes,
730-
AnchorTxid: a.AnchorTxid.String(),
731730
AnchorBlockHash: a.AnchorBlockHash.String(),
732731
AnchorOutpoint: a.AnchorOutpoint.String(),
733732
InternalKey: a.AnchorInternalKey.SerializeCompressed(),
@@ -1380,7 +1379,6 @@ func (r *rpcServer) marshalProof(ctx context.Context, p *proof.Proof,
13801379
rpcAsset, err := r.marshalChainAsset(ctx, &tapdb.ChainAsset{
13811380
Asset: &p.Asset,
13821381
AnchorTx: &p.AnchorTx,
1383-
AnchorTxid: p.AnchorTx.TxHash(),
13841382
AnchorBlockHash: p.BlockHeader.BlockHash(),
13851383
AnchorBlockHeight: p.BlockHeight,
13861384
AnchorOutpoint: anchorOutpoint,

tapdb/assets_store.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,6 @@ type ChainAsset struct {
362362
// AnchorTx is the transaction that anchors this chain asset.
363363
AnchorTx *wire.MsgTx
364364

365-
// AnchorTxid is the TXID of the anchor tx.
366-
AnchorTxid chainhash.Hash
367-
368365
// AnchorBlockHash is the blockhash that mined the anchor tx.
369366
AnchorBlockHash chainhash.Hash
370367

@@ -761,7 +758,6 @@ func (a *AssetStore) dbAssetsToChainAssets(dbAssets []ConfirmedAsset,
761758
Asset: assetSprout,
762759
IsSpent: sprout.Spent,
763760
AnchorTx: anchorTx,
764-
AnchorTxid: anchorTx.TxHash(),
765761
AnchorBlockHash: anchorBlockHash,
766762
AnchorOutpoint: anchorOutpoint,
767763
AnchorInternalKey: anchorInternalKey,

0 commit comments

Comments
 (0)