use append_empty_data rather than fibbing it
This commit is contained in:
parent
835b158069
commit
b88eef5374
@ -274,8 +274,7 @@ impl AccountReader {
|
|||||||
if self.code_hash == SHA3_NULL_RLP {
|
if self.code_hash == SHA3_NULL_RLP {
|
||||||
account_stream.append(&true).append(&hash_db.get(&self.code_hash).unwrap());
|
account_stream.append(&true).append(&hash_db.get(&self.code_hash).unwrap());
|
||||||
} else {
|
} else {
|
||||||
let empty: &[u8] = &[];
|
account_stream.append(&false).append_empty_data();
|
||||||
account_stream.append(&false).append(&empty);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
account_stream.append(&pairs_rlp);
|
account_stream.append(&pairs_rlp);
|
||||||
|
Loading…
Reference in New Issue
Block a user