-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
After #164 is merged, we will no longer require fork_name: ForkName in the witness. Instead, the hardfork can be derived from the version byte, which is available in the witness.
This also means that the implementation of From<Witness> for LegacyWitness will change slightly:
impl From<ChunkWitness> for LegacyChunkWitness {
fn from(value: ChunkWitness) -> Self {
let version = Version::from(value.version);
Self {
/* ... */
fork_name: version.fork,
/* ... */
}
}
}Metadata
Metadata
Assignees
Labels
No labels