Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

getTransactions returns transactions outside the given block range #42

Open
smartcontracts opened this issue Feb 9, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@smartcontracts
Copy link
Contributor

Describe the bug
The operator exposes an RPC call, getTransactions, that returns a list of transactions received by a given address during a given block range. The parameters to the call are:

  1. address - string: Recipient address.
  2. startBlock - number: Block to start querying from.
  3. endBlock - number: Block to end querying at.

However, it seems that startBlock and endBlock are being ignored. For example, when I query transactions from blocks 0 to 10, I'm getting things back from block 18 and 21.

Steps to reproduce
Steps to reproduce the behavior:

  1. Make a transaction to an address in block N
  2. Query transactions for that address with endBlock < N
  3. Get back transactions with block B > endBlock.

Expected behavior
getTransactions should only return transactions received by an address during the specified bounds.

@smartcontracts smartcontracts added the bug Something isn't working label Feb 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant