Skip to content

Conversation

@ethanfrey
Copy link
Contributor

This is based on PR #257 and should not be merged until that PR gets merged to develop, thus the WIP state. Beside the dependency, the code is ready to merge IMO.

We now keep the last 10 blocks available for queries and expose the height as an argument for queries. If H is the last committed block, the default (height=0) is to return H-1, as you can immediately get a proof for this. (Most recent query with proofs). If you just submitted a tx that was included on height H, you should query with --height=$H in order to ensure you read the state after the tx was processed.

This involved updating all the shell script integration tests, which do just this, send a tx, then immediately query the state.

@ethanfrey
Copy link
Contributor Author

Replaces #258 which accidentally got merged before time

@jaekwon jaekwon changed the base branch from develop to feature/iavl-app October 25, 2017 05:15
@ethanfrey ethanfrey force-pushed the feature/expose-historical-queries branch from e61e7af to ae09c8f Compare October 25, 2017 17:14
@ethanfrey ethanfrey changed the title WIP: expose historical queries expose historical queries Oct 25, 2017
@ethanfrey ethanfrey merged commit 0e21992 into feature/iavl-app Oct 25, 2017
@ethanfrey ethanfrey deleted the feature/expose-historical-queries branch October 25, 2017 17:18
catShaark referenced this pull request in notional-labs/cosmos-sdk Jun 29, 2022
brendan-kelly referenced this pull request in figment-networks/cosmos-sdk Aug 3, 2022
* is gen test

* my attempt at isGenesis

* logs and uncomment

* more changes

* comment out

* change init gen call loc

* further gen tests

* more tests

* another test

* revert unneeded changes

* remove extra

* reset to false

* Update x/auth/ante/sigverify.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* changes from call with bez

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants