informalsystems / tendermint-rs

Client libraries for Tendermint/CometBFT in Rust!
Apache License 2.0
615 stars 225 forks source link

ABCI kvstore app hangs #1463

Closed 0xBEEFCAF3 closed 3 months ago

0xBEEFCAF3 commented 3 months ago

What went wrong?

I followed the direction here Running tendermint-core version: 0.35.9 (also have tried 0.34.21) Running tendermint-rs on commit: 14fd628e82ae51b9f15c135a6db8870219fe3c33 After booting up tendermint-core I get these logs:

2024-08-19T15:48:55-04:00 INFO starting service impl=multiAppConn module=proxy service=multiAppConn
2024-08-19T15:48:55-04:00 INFO starting service connection=query impl=socketClient module=abci-client service=socketClient
2024-08-19T15:48:55-04:00 INFO starting service connection=snapshot impl=socketClient module=abci-client service=socketClient
2024-08-19T15:48:55-04:00 INFO starting service connection=mempool impl=socketClient module=abci-client service=socketClient
2024-08-19T15:48:55-04:00 INFO starting service connection=consensus impl=socketClient module=abci-client service=socketClient
2024-08-19T15:48:55-04:00 INFO starting service impl=EventBus module=events service=EventBus
2024-08-19T15:48:55-04:00 INFO starting service impl=PubSub module=pubsub service=PubSub
2024-08-19T15:48:55-04:00 INFO starting service impl=IndexerService module=txindex service=IndexerService
2024-08-19T15:48:55-04:00 INFO ABCI Handshake App Info hash="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" height=0 module=consensus protocol-version=1 software-version=0.1.0
2024-08-19T15:48:55-04:00 INFO ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0
2024-08-19T15:48:55-04:00 INFO Stopping abci.socketClient connection=consensus module=abci-client reason="read message: EOF"
2024-08-19T15:48:55-04:00 INFO stopping service connection=consensus impl=socketClient module=abci-client service=socketClient
2024-08-19T15:48:55-04:00 ERROR consensus connection terminated. Did the application crash? Please restart tendermint err="read message: EOF" module=proxy
fish: Job 1, 'tendermint start' terminated by signal SIGTERM (Polite quit request)

on the ABCI client I recieve an unwrap on None:

thread '<unnamed>' panicked at /Users/armins/Dev/tendermint-rs/abci/src/application.rs:168:45:
called `Option::unwrap()` on a `None` value

It seems like the application is harcoded to work with v38. Is that correct?

Steps to reproduce

Run cargo run --features="binary kvstore-app client" on the latest commit Run tendermint unsafe-reset-all && tendermint start on the versions of tendermint-core listed above

Definition of "done"

What version of tendermint-core is compatible with the ABCI library that is released today?

0xBEEFCAF3 commented 3 months ago

Working with latest CometBFT. Closing