Skip to content

tests: prove query state is ledger-derived and rebuildable - #162

Open
Ayush3941 wants to merge 2 commits into
hyperledger:mainfrom
Ayush3941:test/resilience-66-ledger-derived-state
Open

tests: prove query state is ledger-derived and rebuildable#162
Ayush3941 wants to merge 2 commits into
hyperledger:mainfrom
Ayush3941:test/resilience-66-ledger-derived-state

Conversation

@Ayush3941

Copy link
Copy Markdown
Contributor

Summary

Adds ledger-derived-state coverage for gateway persistence.

Verifies that gateway state is rebuildable from committed ledger history by checking that:

  • the gateway query store contains only ledger-derived user tables
  • the same ledger-derived block data reproduces the same query results in a fresh store
  • local gateway state can be discarded and rebuilt from committed ledger history with the same result

Refs #66.

Test plan

  • gofmt -l .
  • go vet $(go list ./... | grep -v '/integration')
  • go tool staticcheck ./...
  • go test -count=1 $(go list ./... | grep -v '/integration')

Ayush3941 added 2 commits May 1, 2026 15:01
Signed-off-by: Ayush3941 <ayushkgaur1@gmail.com>
Signed-off-by: Ayush3941 <ayushkgaur1@gmail.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.

1 participant