diff --git a/tendermint/src/rpc/event_listener.rs b/tendermint/src/rpc/event_listener.rs index 9462a8543..6cb4185d3 100644 --- a/tendermint/src/rpc/event_listener.rs +++ b/tendermint/src/rpc/event_listener.rs @@ -19,6 +19,7 @@ use tokio::net::TcpStream; /// There are only two valid queries to the websocket. A query that subscribes to all transactions /// and a query that susbscribes to all blocks. +#[derive(Serialize, Deserialize, Debug, Clone)] pub enum EventSubscription { /// Subscribe to all transactions TransactionSubscription, @@ -191,7 +192,7 @@ pub struct Attribute { ///Block Value #[derive(Serialize, Deserialize, Debug, Clone)] pub struct EventDataNewBlock { - block: Option, + pub block: Option, // TODO(ismail): these should be the same as abci::responses::BeginBlock // and abci::responses::EndBlock