From 1d54d290762b1f13dd309dbc1d98e294622b680e Mon Sep 17 00:00:00 2001 From: Sagar Dhawan Date: Tue, 14 May 2019 16:59:17 -0700 Subject: [PATCH] Fix reading ledger for chacha encrypt (#4288) --- core/src/chacha.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/chacha.rs b/core/src/chacha.rs index da70cbc0ec..e5c14081a9 100644 --- a/core/src/chacha.rs +++ b/core/src/chacha.rs @@ -50,7 +50,7 @@ pub fn chacha_cbc_encrypt_ledger( let mut entry = slice; loop { - match blocktree.read_blobs_bytes(entry, SLOTS_PER_SEGMENT - total_entries, &mut buffer, 0) { + match blocktree.read_blobs_bytes(0, SLOTS_PER_SEGMENT - total_entries, &mut buffer, entry) { Ok((num_entries, entry_len)) => { debug!( "chacha: encrypting slice: {} num_entries: {} entry_len: {}",