Skip to content
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

chore: Fix client output map #3517

Merged
merged 3 commits into from
Dec 5, 2024
Merged

chore: Fix client output map #3517

merged 3 commits into from
Dec 5, 2024

Conversation

lmoe
Copy link
Contributor

@lmoe lmoe commented Dec 5, 2024

Description of change

Adds a timelock filter to the OutputMap query to ignore timelocks that are still in the future.

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Bug fix (a non-breaking change which fixes an issue)

&nodeclient.BasicOutputsQuery{AddressBech32: bech32Addr},
&nodeclient.BasicOutputsQuery{
AddressBech32: bech32Addr,
IndexerTimelockParas: nodeclient.IndexerTimelockParas{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to actually do 2 queries, because this would only give you ones with a timelock that passed, not ones without a timelock

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you need to add a second one where HasTimelock: &falseParam

Copy link
Member

@alexsporn alexsporn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@lmoe lmoe merged commit a11e773 into develop Dec 5, 2024
5 checks passed
@lmoe lmoe deleted the fix_waspcli_requests branch December 5, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants