Can decode extended messages now

This commit is contained in:
Igor Katson 2021-07-02 01:38:07 +01:00
parent 5f60f9e1b4
commit e666f063ff
7 changed files with 248 additions and 23 deletions

View file

@ -40,7 +40,7 @@ pub struct LivePeerState {
impl LivePeerState {
pub fn new(peer_id: [u8; 20]) -> Self {
LivePeerState {
peer_id: peer_id,
peer_id,
i_am_choked: true,
peer_interested: false,
bitfield: None,