ethcore: fix rlp deprecation warnings (#11280)

This commit is contained in:
Andronik Ordian 2019-11-21 17:23:49 +01:00 committed by Niklas Adolfsson
parent c7219aae30
commit df1c5ac616
3 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ pub fn to_fat_rlps(
stream.drain()
};
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));
chunks.push(stream.out());
target_chunk_size = max_chunk_size;
@ -159,7 +159,7 @@ pub fn to_fat_rlps(
return Err(e.into());
},
None => {
account_stream.complete_unbounded_list();
account_stream.finalize_unbounded_list();
let stream = ::std::mem::replace(&mut account_stream, RlpStream::new_list(2));
chunks.push(stream.out());
return Ok(chunks);

View File

@ -1258,7 +1258,7 @@ impl ChainSync {
packet.append(&self.private_tx_handler.is_some());
}
}
packet.complete_unbounded_list();
packet.finalize_unbounded_list();
io.respond(StatusPacket.id(), packet.out())
}

View File

@ -222,7 +222,7 @@ impl SyncPropagator {
pushed += 1;
}
}
packet.complete_unbounded_list();
packet.finalize_unbounded_list();
(packet, to_send)
};