Added an assert
This commit is contained in:
parent
b840ab8f8b
commit
81db3461fe
@ -103,7 +103,8 @@ pub fn to_fat_rlps(account_hash: &H256, acc: &BasicAccount, acct_db: &AccountDB,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(pair) = leftover.take() {
|
if let Some(pair) = leftover.take() {
|
||||||
account_stream.append_raw_checked(&pair, 1, target_chunk_size);
|
let leftover_appended = account_stream.append_raw_checked(&pair, 1, target_chunk_size);
|
||||||
|
assert!(leftover_appended);
|
||||||
}
|
}
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
Loading…
Reference in New Issue
Block a user