Skip to content

Commit

Permalink
remove #repr on RejectReason
Browse files Browse the repository at this point in the history
and typo fix
  • Loading branch information
tamasblummer committed Sep 10, 2019
1 parent c93b1ed commit 960e3da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/network/message_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ impl_consensus_encoding!(VersionMessage, version, services, timestamp,
receiver, sender, nonce,
user_agent, start_height, relay);

#[repr(u8)]
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
/// message rejection reason as a code
pub enum RejectReason {
Expand Down Expand Up @@ -124,7 +123,7 @@ impl Decodable for RejectReason {
0x41 => DUST,
0x42 => FEE,
0x43 => CHECKPOINT,
_ => return Err(encode::Error::ParseFailed("unknonw reject code"))
_ => return Err(encode::Error::ParseFailed("unknown reject code"))
})
}
}
Expand Down

0 comments on commit 960e3da

Please sign in to comment.