DefiantLabs / cosmos-tax-cli

An opensource cosmos tax tool!
https://defiantlabs.net
Apache License 2.0
25 stars 7 forks source link

Block enqueue method is passing blocks that are not available #487

Closed pharr117 closed 11 months ago

pharr117 commented 1 year ago

The block enqueue method for transactions is supposed to guard against passing blocks to the transaction indexer that are not available.

It does this by making sure any block it is passing along the block queue is < latest height.

We seem to have a bug in the block enqueue method that is causing the transaction indexer to make RPC requests for blocks that are not available yet:

image

This function must have a bug:

https://github.com/DefiantLabs/cosmos-indexer/blob/ca3f6255686451b69590ef4fdcfce3bfbc259fc2/cmd/block_enqueue.go#L135-L139