From edd52b31e22d70801d5eb7d0fb097af15320cd5d Mon Sep 17 00:00:00 2001 From: Jared Tobin Date: Thu, 9 Oct 2025 12:44:35 +0400 Subject: [PATCH 1/2] itest: limit asset list when asserting mint AssertAssetsMinted previously listed all confirmed assets known to a client, then checking that any specific assets (to have been minted in a specific transaction) were included in this confirmed asset list. The ListAssets request could time out prematurely if many assets were known to a client, e.g. in load testing. This change limits the confirmed assets requested only to whatever was included in the 0th output of the supplied minting transaction. Any supplied asset requests are then checked for inclusion in that set. --- itest/assertions.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/itest/assertions.go b/itest/assertions.go index 00b707ff4..e282bb38b 100644 --- a/itest/assertions.go +++ b/itest/assertions.go @@ -2093,9 +2093,13 @@ func AssertAssetsMinted(t *testing.T, tapClient commands.RpcClientsBundle, assetList []*taprpc.Asset ) + // List only the assets that were minted in the anchor transaction. listRespConfirmed, err := tapClient.ListAssets( ctxt, &taprpc.ListAssetRequest{ ScriptKeyType: allScriptKeysQuery, + AnchorOutpoint: &taprpc.OutPoint{ + Txid: mintTXID[:], + }, }, ) require.NoError(t, err) From f07ce019f45301871bd08e022d790837f999fd5b Mon Sep 17 00:00:00 2001 From: Jared Tobin Date: Thu, 9 Oct 2025 14:50:09 +0400 Subject: [PATCH 2/2] itest: limit asset list when finalizing mint batch Addresses a similar problem as was observed and fixed in the previous commit. In this case we were again listing all assets known about, instead of only the unconfirmed ones we're actually interested in. --- itest/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itest/utils.go b/itest/utils.go index 9b09e7560..5687010bf 100644 --- a/itest/utils.go +++ b/itest/utils.go @@ -453,6 +453,9 @@ func FinalizeBatchUnconfirmed(t *testing.T, minerClient *rpcclient.Client, ctxt, &taprpc.ListAssetRequest{ IncludeUnconfirmedMints: true, ScriptKeyType: allScriptKeysQuery, + AnchorOutpoint: &taprpc.OutPoint{ + Txid: hashes[0][:], + }, }, ) require.NoError(t, err)