SDK: Return a full RecentBlockhashes for tests (#8580)

automerge
This commit is contained in:
Trent Nelson
2020-03-02 19:44:29 -07:00
committed by GitHub
parent 306783c661
commit 1265afebbb

View File

@ -103,7 +103,7 @@ where
} }
pub fn create_test_recent_blockhashes(start: usize) -> RecentBlockhashes { pub fn create_test_recent_blockhashes(start: usize) -> RecentBlockhashes {
let bhq: Vec<_> = (start..start + (MAX_ENTRIES - 1)) let bhq: Vec<_> = (start..start + MAX_ENTRIES)
.map(|i| hash(&serialize(&i).unwrap())) .map(|i| hash(&serialize(&i).unwrap()))
.collect(); .collect();
RecentBlockhashes::from_iter(bhq.iter()) RecentBlockhashes::from_iter(bhq.iter())