Skip to content

Commit

Permalink
fix v2 conversion to ensure we provide blocks in correct format (mimb…
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp committed Oct 8, 2020
1 parent 03dbee6 commit d289ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/src/common/adapters.rs
Original file line number Diff line number Diff line change
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 d289ae2

Please sign in to comment.