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

added api function get_account_history_operations #237

Merged
merged 1 commit into from
Feb 28, 2017

Conversation

oxarbitrage
Copy link
Member

No description provided.

{
FC_ASSERT( _app.chain_database() );
const auto& db = *_app.chain_database();
FC_ASSERT( limit <= 100 );
Copy link
Member

Choose a reason for hiding this comment

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

if you move the assertion by -1 line .. you can spare instanciating the database if the limit is to high :D

Copy link
Member Author

Choose a reason for hiding this comment

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

i kind of agree wityh this however that part of the code is an exact copy of get_account_history.

@xeroc
Copy link
Member

xeroc commented Feb 23, 2017

This PR looks good to me, however, I don't know enough of the database defaults to be 100% sure this code does what it does.
We need to be extra clear that this code cannot be used to segfault the node by using bad start/stop parameters.

@svk31
Copy link
Contributor

svk31 commented Feb 23, 2017

To add to xeroc's comment, I'm also concerned about performance. Anyone able to comment on that aspect?

@oxarbitrage
Copy link
Member Author

in regards to database defaults with stop, limit for a possible segfault. The function in that aspect is a copy of get_account_history.

@vikramrajkumar
Copy link
Contributor

This is effectively a line-by-line copy of get_account_history. Fixes/optimizations to the two calls can be handled in a separate issue if needed.

@vikramrajkumar vikramrajkumar merged commit c1b45f1 into bitshares:master Feb 28, 2017
@oxarbitrage oxarbitrage deleted the issue222 branch August 23, 2018 21:09
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.

None yet

4 participants