new_list -> begin_list

This commit is contained in:
Robert Habermeier 2016-11-04 17:25:26 +01:00
parent eef9a355af
commit 5d011fe577

View File

@ -147,22 +147,22 @@ impl Chain {
// TODO [rob] use optional keys too. // TODO [rob] use optional keys too.
let mut stream = RlpStream::new_list(6); let mut stream = RlpStream::new_list(6);
stream stream
.new_list(2) .begin_list(2)
.append("protocolVersion") .append("protocolVersion")
.append(&PROTOCOL_VERSION) .append(&PROTOCOL_VERSION)
.new_list(2) .begin_list(2)
.append("networkId") .append("networkId")
.append(&(self.mainnet as u8)) .append(&(self.mainnet as u8))
.new_list(2) .begin_list(2)
.append("headTd") .append("headTd")
.append(&chain_info.total_difficulty) .append(&chain_info.total_difficulty)
.new_list(2) .begin_list(2)
.append("headHash") .append("headHash")
.append(&chain_info.best_block_hash) .append(&chain_info.best_block_hash)
.new_list(2) .begin_list(2)
.append("headNum") .append("headNum")
.append(&chain_info.best_block_number) .append(&chain_info.best_block_number)
.new_list(2) .begin_list(2)
.append("genesisHash") .append("genesisHash")
.append(&self.genesis_hash); .append(&self.genesis_hash);