Skip to content

Improve virtual ops storage, refactor account_history #7

Description

@bitphage

The problem: virtual ops now accessible only with enabled account_history plugin. So, without account_history get_ops_in_block API call just returns nothing.

So I propose the following thing:

  1. Virtual ops storage to the database should be handled by separate plugin. virtual_ops for instance.
  2. get_ops_in_block becomes a wrapper with the following logic:
    1. Whether account_history is disabled, it reads block content using get_block
    2. Whether account_history is enabled, it reads block content from account_history database
    3. Adds virtual ops using virtual_ops plugin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions