Skip to content

Commit

Permalink
fix v2 conversion to ensure we provide blocks in correct format (#3465)…
Browse files Browse the repository at this point in the history
… (#3466)
  • Loading branch information
antiochp committed Oct 8, 2020
1 parent a16fa26 commit 7261abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/src/common/adapters.rs
Expand Up @@ -372,8 +372,8 @@ where
self.chain()
.get_block(&h)
.map(|b| match peer_info.version.value() {
0..=2 => Some(b),
3..=ProtocolVersion::MAX => self.chain().convert_block_v2(b).ok(),
0..=2 => self.chain().convert_block_v2(b).ok(),
3..=ProtocolVersion::MAX => Some(b),
})
.unwrap_or(None)
}
Expand Down

0 comments on commit 7261abc

Please sign in to comment.