Skip to content

Implement TransactionPoolService #4392

@konstantinabl

Description

@konstantinabl

Motivation
We need TransactionPoolService class, which will take care of communicating with the storage class and remove and save transactions from and into the pending transactions list. It will serve as a facade in front of the storage classes.

Description
Create a TransactionPoolService class that implements the TransactionPoolService interface.

Create the following methods:

  • saveTransaction(address: string, tx: Transaction): Promise;
  • onConsensusResult(): Promise
  • getPendingCount(address: string): Promise;
  • resetState(): Promise;

Add unit tests for each method

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions