Skip to content

Reverse TxSearch Support. #2793

@hleb-albau

Description

@hleb-albau

Some apps (example: wallets) typically expect queries like "Get last ten account transactions" to be provided by RPC.

It will be nice to add a reverse param to TxSearch RPC method. There is no need of full scan here, just close dbm iterator after getting required tx count.

Also: Why TxIndex.Search() doesn't accept params from original rpc query? We can improve performance here just by loading only required tx count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:rpcComponent: JSON RPC, gRPCT:enhancementType: Enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions