Use MIN associated const (#9199)

This commit is contained in:
Squirrel authored and GitHub committed 2021-06-24 15:48:39 +01:00
1 parent eac38de198
commit 20347c2edb
7 files changed
+32 -32

No files matched your search

@@ -105,7 +105,7 @@ mod rep {
/// Reputation change when a peer sent us a status message with a different
/// genesis than us.
pub const GENESIS_MISMATCH: Rep = Rep::new(i32::min_value(), "Genesis mismatch");
pub const GENESIS_MISMATCH: Rep = Rep::new(i32::MIN, "Genesis mismatch");
/// Reputation change for peers which send us a block with an incomplete header.
pub const INCOMPLETE_HEADER: Rep = Rep::new(-(1 << 20), "Incomplete header");