ethcore: fix rlp deprecation warnings (#11280)
This commit is contained in:
parent
c7219aae30
commit
df1c5ac616
@ -147,7 +147,7 @@ pub fn to_fat_rlps(
|
|||||||
stream.drain()
|
stream.drain()
|
||||||
};
|
};
|
||||||
if !account_stream.append_raw_checked(&pair, 1, target_chunk_size) {
|
if !account_stream.append_raw_checked(&pair, 1, target_chunk_size) {
|
||||||
account_stream.complete_unbounded_list();
|
account_stream.finalize_unbounded_list();
|
||||||
let stream = ::std::mem::replace(&mut account_stream, RlpStream::new_list(2));
|
let stream = ::std::mem::replace(&mut account_stream, RlpStream::new_list(2));
|
||||||
chunks.push(stream.out());
|
chunks.push(stream.out());
|
||||||
target_chunk_size = max_chunk_size;
|
target_chunk_size = max_chunk_size;
|
||||||
@ -159,7 +159,7 @@ pub fn to_fat_rlps(
|
|||||||
return Err(e.into());
|
return Err(e.into());
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
account_stream.complete_unbounded_list();
|
account_stream.finalize_unbounded_list();
|
||||||
let stream = ::std::mem::replace(&mut account_stream, RlpStream::new_list(2));
|
let stream = ::std::mem::replace(&mut account_stream, RlpStream::new_list(2));
|
||||||
chunks.push(stream.out());
|
chunks.push(stream.out());
|
||||||
return Ok(chunks);
|
return Ok(chunks);
|
||||||
|
@ -1258,7 +1258,7 @@ impl ChainSync {
|
|||||||
packet.append(&self.private_tx_handler.is_some());
|
packet.append(&self.private_tx_handler.is_some());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
packet.complete_unbounded_list();
|
packet.finalize_unbounded_list();
|
||||||
io.respond(StatusPacket.id(), packet.out())
|
io.respond(StatusPacket.id(), packet.out())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ impl SyncPropagator {
|
|||||||
pushed += 1;
|
pushed += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
packet.complete_unbounded_list();
|
packet.finalize_unbounded_list();
|
||||||
(packet, to_send)
|
(packet, to_send)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user