Skip to content

Commit 21f385d

Browse files
authored
Merge pull request #1822 from lightninglabs/wip/supplycommit/add-supply-outpoint-to-fetch-rpc
universerpc+itest: add and verify string outpoint in SupplyCommitChainData
2 parents e85e942 + 1e033a0 commit 21f385d

File tree

6 files changed

+219
-193
lines changed

6 files changed

+219
-193
lines changed

docs/release-notes/release-notes-0.7.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
- https://github.com/lightninglabs/taproot-assets/pull/1796
7878
- https://github.com/lightninglabs/taproot-assets/pull/1797
7979
- https://github.com/lightninglabs/taproot-assets/pull/1823
80+
- https://github.com/lightninglabs/taproot-assets/pull/1822
8081

8182
- A new [address version 2 was introduced that supports grouped assets and
8283
custom (sender-defined)

itest/assertions.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,5 +2875,10 @@ func WaitForSupplyCommit(t *testing.T, ctx context.Context,
28752875
Index: fetchResp.ChainData.TxOutIdx,
28762876
}
28772877

2878+
require.Equal(
2879+
t, supplyCommitOutpoint.String(),
2880+
fetchResp.ChainData.CommitOutpoint,
2881+
)
2882+
28782883
return fetchResp, supplyCommitOutpoint
28792884
}

supplysync_rpc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ func marshalSupplyCommitChainData(
303303
BlockHeight: chainProof.BlockHeight,
304304
TxBlockMerkleProof: merkleProofBuf.Bytes(),
305305
TxIndex: chainProof.TxIndex,
306+
CommitOutpoint: rootCommitment.CommitPoint().String(),
306307
}
307308

308309
// Handle optional commitment block hash.

0 commit comments

Comments
 (0)