Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Elaborate why zero signatures
  • Loading branch information
timorl committed Dec 12, 2022
commit 6fe797d1bd8150c4d71ef82f342d1492cd531923
3 changes: 3 additions & 0 deletions finality-aleph/src/tcp_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ impl TryFrom<Vec<LegacyTcpMultiaddress>> for SignedTcpAddressingInformation {
fn try_from(legacy: Vec<LegacyTcpMultiaddress>) -> Result<Self, Self::Error> {
let addressing_information = legacy.try_into()?;
// This will never get validated, but that is alright and working as intended.
// We temporarily accept legacy messages and there is no way to verify them completely,
// since they were unsigned previously. In the next update we will remove this, and the
// problem will be completely gone.
let signature = [0; 64].into();
Ok(SignedTcpAddressingInformation {
addressing_information,
Expand Down