Fixed sync tests
This commit is contained in:
parent
4ef89b5ccb
commit
56ba9a30ac
@ -144,6 +144,7 @@ mod test {
|
|||||||
let state_chunks: Vec<Bytes> = (0..20).map(|_| H256::random().to_vec()).collect();
|
let state_chunks: Vec<Bytes> = (0..20).map(|_| H256::random().to_vec()).collect();
|
||||||
let block_chunks: Vec<Bytes> = (0..20).map(|_| H256::random().to_vec()).collect();
|
let block_chunks: Vec<Bytes> = (0..20).map(|_| H256::random().to_vec()).collect();
|
||||||
let manifest = ManifestData {
|
let manifest = ManifestData {
|
||||||
|
version: 2,
|
||||||
state_hashes: state_chunks.iter().map(|data| data.sha3()).collect(),
|
state_hashes: state_chunks.iter().map(|data| data.sha3()).collect(),
|
||||||
block_hashes: block_chunks.iter().map(|data| data.sha3()).collect(),
|
block_hashes: block_chunks.iter().map(|data| data.sha3()).collect(),
|
||||||
state_root: H256::new(),
|
state_root: H256::new(),
|
||||||
|
@ -49,6 +49,7 @@ impl TestSnapshotService {
|
|||||||
let state_chunks: Vec<Bytes> = (0..num_state_chunks).map(|_| H256::random().to_vec()).collect();
|
let state_chunks: Vec<Bytes> = (0..num_state_chunks).map(|_| H256::random().to_vec()).collect();
|
||||||
let block_chunks: Vec<Bytes> = (0..num_block_chunks).map(|_| H256::random().to_vec()).collect();
|
let block_chunks: Vec<Bytes> = (0..num_block_chunks).map(|_| H256::random().to_vec()).collect();
|
||||||
let manifest = ManifestData {
|
let manifest = ManifestData {
|
||||||
|
version: 2,
|
||||||
state_hashes: state_chunks.iter().map(|data| data.sha3()).collect(),
|
state_hashes: state_chunks.iter().map(|data| data.sha3()).collect(),
|
||||||
block_hashes: block_chunks.iter().map(|data| data.sha3()).collect(),
|
block_hashes: block_chunks.iter().map(|data| data.sha3()).collect(),
|
||||||
state_root: H256::new(),
|
state_root: H256::new(),
|
||||||
|
Loading…
Reference in New Issue
Block a user