diff --git a/src/serve/grpc/watch.rs b/src/serve/grpc/watch.rs index 2a5e8b3f..b8b903fa 100644 --- a/src/serve/grpc/watch.rs +++ b/src/serve/grpc/watch.rs @@ -151,6 +151,7 @@ fn block_to_txs( mapper: &interop::Mapper, request: &u5c::watch::WatchTxRequest, ) -> Vec { + let body: &BlockBody = █ let block = MultiEraBlock::decode(block).unwrap(); let txs = block.txs(); @@ -164,8 +165,12 @@ fn block_to_txs( }) .map(|x| u5c::watch::AnyChainTx { chain: Some(u5c::watch::any_chain_tx::Chain::Cardano(x)), - // TODO(p): should it be none? - block: None, + block: Some(u5c::watch::AnyChainBlock { + native_bytes: body.to_vec().into(), + chain: Some(u5c::watch::any_chain_block::Chain::Cardano( + mapper.map_block_cbor(body), + )), + }), }) .collect() }