Commit df1c5ac6 authored by Andronik Ordian's avatar Andronik Ordian Committed by Niklas Adolfsson

ethcore: fix rlp deprecation warnings (#11280)

parent c7219aae
Pipeline #69732 failed with stages
in 39 minutes and 49 seconds
......@@ -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);
......
......@@ -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())
}
......
......@@ -222,7 +222,7 @@ impl SyncPropagator {
pushed += 1;
}
}
packet.complete_unbounded_list();
packet.finalize_unbounded_list();
(packet, to_send)
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment