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

get_key_references should not subscribe to related accounts (Issue 1472) #1499

Merged
merged 3 commits into from
Jan 7, 2019

Conversation

jmjatlanta
Copy link
Contributor

Fixes #1472

@pmconrad
Copy link
Contributor

IMO limiting this to an arbitrary value is the wrong approach. Either you want the subscriptions, or you don't. (I guess you don't, so perhaps better remove them completely.)

@abitmore
Copy link
Member

abitmore commented Jan 1, 2019

I agree with @pmconrad. Likely clients will call get_full_accounts or similar after calling this.

@jmjatlanta
Copy link
Contributor Author

get_key_references no longer subscribes to associated accounts, although it still subscribes to the passed-in keys.

#1472 mentions limiting the size of final_results. Should that be an arbitrary number? Should it be configurable? Perhaps it should be done under another issue (more discussion needed)?

@jmjatlanta jmjatlanta changed the title limit subscribed accounts to 100 get_key_references should not subscribe to related accounts (Issue 1472) Jan 1, 2019
@pmconrad
Copy link
Contributor

pmconrad commented Jan 2, 2019

IMO you could limit the size of the incoming vector to a fixed value. Making this configurable is part of #782 / #1478.
Adding limits to the output would also require start and limit parameters, which breaks compatibility. IMO the performance impact is limited anyway.

@jmjatlanta
Copy link
Contributor Author

IMO you could limit the size of the incoming vector to a fixed value. Making this configurable is part of #782 / #1478.

I interpret the above as "set the max limit of the incoming vector to 100 items, and ask manikey123 to make the 100 configurable. Do nothing to limit the size of the returned vector." Is that the correct interpretation?

@abitmore abitmore added this to the 201901 - Feature Release milestone Jan 5, 2019
@pmconrad
Copy link
Contributor

pmconrad commented Jan 5, 2019

That's my suggestion, yes.

Copy link
Contributor

@pmconrad pmconrad left a comment

Choose a reason for hiding this comment

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

Thanks. I think that's sufficient protection. There are easier ways to overload API nodes than this one.

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.

3 participants