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 history_api::get_block_operations_by_time API #2651

Merged
merged 3 commits into from
Oct 5, 2022

Conversation

abitmore
Copy link
Member

@abitmore abitmore commented Oct 4, 2022

PR for #2498.

Add history_api::get_block_operations_by_time API:

/**
 * @brief Get all operations, including virtual operations, within the most recent block
 *        (no later than the specified time) containing at least one operation
 * @param start time point, optional, if omitted, the data of the latest block containing at least
 *              one operation will be returned
 * @return a list of @a operation_history objects ordered by ID in descending order
 *
 * @note the data is fetched from the @a account_history plugin, so results may be
 *       incomplete or incorrect due to the @a partial-operations option configured in the API node.
 *       To get complete data, it is recommended to query from ElasticSearch where the data is
 *       maintained by the @a elastic_search plugin.
 */
vector<operation_history_object> get_block_operations_by_time(
   const optional<fc::time_point_sec>& start = optional<fc::time_point_sec>() ) const;

@abitmore abitmore added this to the 6.1.0 - Feature Release milestone Oct 4, 2022
@abitmore abitmore linked an issue Oct 4, 2022 that may be closed by this pull request
6 tasks
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

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.

1 participant