Closed ppedziwiatr closed 3 years ago
I've made few more tests.
This code (full example here: https://github.com/redstone-finance/redstone-smartcontracts/blob/ppe/arlocal-issue/arlocal/mre.ts):
gives this output:
I would expect, that it would return exactly one result - in case of arweave.net and this request (current block height at the time of writing this is 771431)
If I uncomment line 43. from the mre.ts - it works as expected - but not sure it that is the right way to fix it?
One last thing - if I print the full network info, I get:
you can see, that the block height
and blocks
are the same (=1)
In case of arweave.net gateway:
height
seems to be always lower by one than blocks
fixed in #25
Hi.
It seems that when I'm asking GQL endpoint for transactions with filter on min and max block height, the min. value is exclusive, instead of inclusive.
Eg. current block height is 5, I'm asking for transactions with min. block height = 3 and max block height = 5 - in response I'm getting transactions on block heights 4, 5 - instead of transactions on block heights 3, 4, 5.
Let's say the network info returns:
I'm adding three new transactions:
After that the network info is:
Then I'm asking for transactions with min. block height = 3 and max. block height = 5.
I'm getting 2 transactions as a result, instead of 3:
2021-09-16T21:37:06.242Z DEBUG [ContractInteractionsLoader] All loaded interactions: [ { from: 3, to: 5, loaded: 2 } ]