Skip to content

Commit

Permalink
fix(traverse): don't mess with Byron update epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Dec 22, 2024
1 parent 67789f2 commit 4aa0e17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pallas-traverse/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
Expand Down

0 comments on commit 4aa0e17

Please sign in to comment.