-
Notifications
You must be signed in to change notification settings - Fork 137
garbage collect zero-value UTXOs #1832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 0-8-0-staging
Are you sure you want to change the base?
Changes from all commits
dc33d1d
54f5d2f
95c36fb
ede8d8e
28193cd
198faba
a686922
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1276,10 +1276,6 @@ func AssertAssetOutboundTransferWithOutputs(t *testing.T, | |
| scripts[string(o.ScriptKey)] = struct{}{} | ||
| } | ||
|
|
||
| sendRespJSON, err := formatProtoJSON(transfer) | ||
| require.NoError(t, err) | ||
| t.Logf("Got response from sending assets: %v", sendRespJSON) | ||
|
|
||
| // Mine a block to force the send event to complete (confirm on-chain). | ||
| var newBlock *wire.MsgBlock | ||
| if confirm { | ||
|
|
@@ -1325,16 +1321,6 @@ func AssertAssetOutboundTransferWithOutputs(t *testing.T, | |
| return slices.Contains(actualInputAssetIDs, id) | ||
| }) | ||
| }, defaultTimeout, wait.PollInterval) | ||
| require.NoError(t, err) | ||
|
|
||
| transferResp, err := sender.ListTransfers( | ||
| ctxb, &taprpc.ListTransfersRequest{}, | ||
| ) | ||
| require.NoError(t, err) | ||
|
|
||
| transferRespJSON, err := formatProtoJSON(transferResp) | ||
| require.NoError(t, err) | ||
| t.Logf("Got response from list transfers: %v", transferRespJSON) | ||
|
Comment on lines
-1328
to
-1337
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove these lines? That doesn't seem to fix under the commit subject. Same further above also.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean that I shouldn't remove these logs in this PR or that I should move them to a separate commit?
They're only there to dump the entirety of the responses into the console, which serves no purpose (we should use |
||
|
|
||
| return newBlock | ||
| } | ||
|
|
@@ -2414,7 +2400,7 @@ func AssertBalances(t *testing.T, client taprpc.TaprootAssetsClient, | |
| actualBalance := balanceSum(resp, false) | ||
| if balance != actualBalance { | ||
| return fmt.Errorf("asset balance, wanted %d, "+ | ||
| "got: %v", balance, toJSON(t, resp)) | ||
| "got: %v", balance, actualBalance) | ||
| } | ||
|
|
||
| // If we query for grouped asset balances too, it means | ||
|
|
@@ -2532,7 +2518,7 @@ func AssertBalances(t *testing.T, client taprpc.TaprootAssetsClient, | |
| } | ||
| if balance != totalBalance { | ||
| return fmt.Errorf("ListAssets balance, wanted %d, "+ | ||
| "got: %v", balance, toJSON(t, resp)) | ||
| "got: %v", balance, totalBalance) | ||
| } | ||
|
|
||
| // The number of UTXOs means asset outputs in this case. We | ||
|
|
@@ -2609,7 +2595,7 @@ func AssertBalances(t *testing.T, client taprpc.TaprootAssetsClient, | |
|
|
||
| if balance != totalBalance { | ||
| return fmt.Errorf("ListUtxos balance, wanted %d, "+ | ||
| "got: %v", balance, toJSON(t, resp)) | ||
| "got: %v", balance, totalBalance) | ||
| } | ||
|
|
||
| if config.numAnchorUtxos > 0 { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.