From 4aa0e17de0a67aa251d9c92e0bbf957ac5e80177 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Sun, 22 Dec 2024 12:07:56 -0300 Subject: [PATCH] fix(traverse): don't mess with Byron update epoch --- pallas-traverse/src/block.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pallas-traverse/src/block.rs b/pallas-traverse/src/block.rs index 5c0ff71c..c03ad148 100644 --- a/pallas-traverse/src/block.rs +++ b/pallas-traverse/src/block.rs @@ -183,9 +183,7 @@ impl<'b> MultiEraBlock<'b> { match self { MultiEraBlock::Byron(x) => { if let Some(up) = x.body.upd_payload.proposal.deref() { - // TODO: this might be horribly wrong, I'm assuming that the activation epoch - // for a Byron upgrade proposal is always current epoch + 1. - let epoch = x.header.consensus_data.0.epoch + 1; + let epoch = x.header.consensus_data.0.epoch; Some(MultiEraUpdate::Byron( epoch, Box::new(Cow::Owned(up.clone())),