new_list -> begin_list
This commit is contained in:
parent
eef9a355af
commit
5d011fe577
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user