fix(traverse): don't mess with Byron update epoch (#566)
This commit is contained in:
parent
7c6ccac3ed
commit
f1cbf11c74
1 changed files with 1 additions and 3 deletions
|
|
@ -183,9 +183,7 @@ impl<'b> MultiEraBlock<'b> {
|
||||||
match self {
|
match self {
|
||||||
MultiEraBlock::Byron(x) => {
|
MultiEraBlock::Byron(x) => {
|
||||||
if let Some(up) = x.body.upd_payload.proposal.deref() {
|
if let Some(up) = x.body.upd_payload.proposal.deref() {
|
||||||
// TODO: this might be horribly wrong, I'm assuming that the activation epoch
|
let epoch = x.header.consensus_data.0.epoch;
|
||||||
// for a Byron upgrade proposal is always current epoch + 1.
|
|
||||||
let epoch = x.header.consensus_data.0.epoch + 1;
|
|
||||||
Some(MultiEraUpdate::Byron(
|
Some(MultiEraUpdate::Byron(
|
||||||
epoch,
|
epoch,
|
||||||
Box::new(Cow::Owned(up.clone())),
|
Box::new(Cow::Owned(up.clone())),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue