Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CometMock for basic Hermes and e2e integration #2

Merged
merged 27 commits into from
Jun 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e6b5c23
Add functionality to automatically run blocks
p-offtermatt May 10, 2023
54d42cf
Decrease block time
p-offtermatt May 10, 2023
6d7add1
Add logging and make block show the block height
p-offtermatt May 10, 2023
060ac3d
Fix typo Commut to Commit
p-offtermatt May 10, 2023
f6b9c85
Remove unused func and add handler wrapper
p-offtermatt May 11, 2023
b1453c7
Remove wrapped handler
p-offtermatt May 11, 2023
ed15813
Add logging for request body to write jsonrpc method
p-offtermatt May 11, 2023
fbd519e
Add status and health endpoints
p-offtermatt May 11, 2023
f9b93db
Utilize MakeBlock to handle much more realistic blocks
p-offtermatt May 12, 2023
39858c0
Add example run command to README
p-offtermatt May 12, 2023
ccba3a2
Keep info about last block and use in responses
p-offtermatt May 15, 2023
2705bf8
Implement Commit endpoint
p-offtermatt May 15, 2023
40bf1bf
Add docker info to README
p-offtermatt May 19, 2023
575f923
Store and output infos for previous heights
p-offtermatt May 19, 2023
4aebcd6
Add signing commits
p-offtermatt May 22, 2023
5de2fd6
Adjust expected params
p-offtermatt May 22, 2023
b6c64d0
Return updated node version in Status
p-offtermatt May 23, 2023
93ecb80
Add return values for broadcasts
p-offtermatt May 23, 2023
49933f8
Drop comet to v0.34.27-alpha for compatibility
p-offtermatt May 23, 2023
c20dc7e
Add indexers
p-offtermatt May 25, 2023
0d26b16
Fix signing
p-offtermatt May 25, 2023
0af84ef
Add comment about commit verification
p-offtermatt May 25, 2023
b292a36
Add light block verification
p-offtermatt May 31, 2023
4eea082
Put block validation before abci calls
p-offtermatt May 31, 2023
151c50c
Use block instead of a.LastBlock to be clearer
p-offtermatt May 31, 2023
a5ddcee
Fix storing right state for right height
p-offtermatt Jun 1, 2023
90f5081
Merge branch 'main' into ph/auto-blocks
p-offtermatt Jun 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# CometMock
# CometMock

To run CometMock:
`docker stop simapp; docker rm simapp; docker run --add-host=host.docker.internal:host-gateway --name simapp -p 26658:26658 -ti informalofftermatt/testnet:tendermock simd start --transport=grpc --with-tendermint=false --grpc-only --rpc.laddr=tcp://host.docker.internal:99999`
`docker stop simapp2; docker rm simapp2; docker run --add-host=host.docker.internal:host-gateway --name simapp2 -p 36658:26658 -ti informalofftermatt/testnet:tendermock simd start --transport=grpc --with-tendermint=false --grpc-only --rpc.laddr=tcp://host.docker.internal:99999`
`go run ./cometmock localhost:36658,localhost:26658 genesis.json tcp://localhost:26657 /Users/offtermatt/simapp1,/Users/offtermatt/simapp2`
`curl -H 'Content-Type: application/json' -H 'Accept:application/json' --data '{"jsonrpc":"2.0","method":"commit","params":{},"id":1}' 127.0.0.1:26657`
Loading