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()
 | 
			
		||||
					};
 | 
			
		||||
					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)
 | 
			
		||||
			};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user