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

Add multi-account and multi-TX filters to accounthistorycount #1666

Merged
merged 17 commits into from
Jan 16, 2023

Conversation

shohamc1
Copy link
Contributor

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

  • Adds a txtypes argument to allow filtering multiple CustomTxTypes
  • Allow owner to be an array, returns results for all addresses in the array

Which issue(s) does this PR fixes?:

Fixes #1665

@Jouzo Jouzo added the v3.2.2 label Dec 28, 2022
@prasannavl prasannavl added v/3.2.2 and removed v3.2.2 labels Jan 13, 2023
@shohamc1
Copy link
Contributor Author

Ignore Jellyfish failure - flaky test.

@Mixa84
Copy link
Contributor

Mixa84 commented Jan 13, 2023

@shohamc1 Can we have just a short test which verify that multi-tx filters work?

@shohamc1
Copy link
Contributor Author

shohamc1 commented Jan 13, 2023

Waiting for #1643 to get merged so that we can use feature_listaccounthistory_multiaccountquery.py to test this.

Mixa84
Mixa84 previously approved these changes Jan 13, 2023
@shohamc1
Copy link
Contributor Author

Related Jellyfish PR: BirthdayResearch/jellyfishsdk#1943

Bushstar
Bushstar previously approved these changes Jan 16, 2023
@Bushstar Bushstar merged commit 8d805e9 into master Jan 16, 2023
@Bushstar Bushstar deleted the accounthistorycount-filters branch January 16, 2023 12:03
fuxingloh pushed a commit to BirthdayResearch/jellyfishsdk that referenced this pull request Jan 20, 2023
…rt for `accounthistorycount` RPC (#1943)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:
As stated in the title, this PR adds support to `accounthistorycount`
RPC to query with multiple txtypes/addresses.

We need this because with the current implementation we're only allowed
to fetch one address and/or one tx type at once thus needing to make
multiple RPC calls if we need to query history count of multple
txtypes/addresses.

Refer: [Defich/ain PR](DeFiCh/ain#1666)

Signed-off-by: Dilshan Madushanka <helloscoopz@gmail.com>
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.

Add multi-address, multi-txtypes filter support for accounthistorycount RPC
6 participants