Added an assert

This commit is contained in:
arkpar 2017-04-05 12:27:37 +02:00
parent b840ab8f8b
commit 81db3461fe

View File

@ -103,7 +103,8 @@ pub fn to_fat_rlps(account_hash: &H256, acc: &BasicAccount, acct_db: &AccountDB,
}
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 {