Skip to content
Open
Changes from 3 commits
Commits
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
9 changes: 7 additions & 2 deletions src/serve/grpc/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ fn block_to_txs<C: LedgerContext>(
mapper: &interop::Mapper<C>,
request: &u5c::watch::WatchTxRequest,
) -> Vec<u5c::watch::AnyChainTx> {
let body: &BlockBody = &block;
let block = MultiEraBlock::decode(block).unwrap();
let txs = block.txs();

Expand All @@ -164,8 +165,12 @@ fn block_to_txs<C: LedgerContext>(
})
.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),
)),
}),
Comment thread
nelsonksh marked this conversation as resolved.
Outdated
})
.collect()
}
Expand Down