cargo +nightly fix --features=bpf_c,cuda,erasure,chacha --edition

This commit is contained in:
Greg Fitzgerald
2018-12-08 22:40:42 -07:00
parent af403ba6fa
commit c49e2f8bbd
9 changed files with 31 additions and 31 deletions

View File

@@ -1,12 +1,12 @@
// Support erasure coding
use db_ledger::DbLedger;
use db_window::{find_missing_coding_indexes, find_missing_data_indexes};
use packet::{Blob, SharedBlob, BLOB_DATA_SIZE, BLOB_HEADER_SIZE, BLOB_SIZE};
use result::{Error, Result};
use crate::db_ledger::DbLedger;
use crate::db_window::{find_missing_coding_indexes, find_missing_data_indexes};
use crate::packet::{Blob, SharedBlob, BLOB_DATA_SIZE, BLOB_HEADER_SIZE, BLOB_SIZE};
use crate::result::{Error, Result};
use solana_sdk::pubkey::Pubkey;
use std::cmp;
use std::sync::{Arc, RwLock};
use window::WindowSlot;
use crate::window::WindowSlot;
//TODO(sakridge) pick these values
pub const NUM_DATA: usize = 16; // number of data blobs
@@ -554,14 +554,14 @@ fn categorize_blob(
#[cfg(test)]
pub mod test {
use super::*;
use db_ledger::{DbLedger, DEFAULT_SLOT_HEIGHT};
use ledger::{get_tmp_ledger_path, make_tiny_test_entries, Block};
use logger;
use packet::{index_blobs, SharedBlob, BLOB_DATA_SIZE, BLOB_SIZE};
use crate::db_ledger::{DbLedger, DEFAULT_SLOT_HEIGHT};
use crate::ledger::{get_tmp_ledger_path, make_tiny_test_entries, Block};
use crate::logger;
use crate::packet::{index_blobs, SharedBlob, BLOB_DATA_SIZE, BLOB_SIZE};
use rand::{thread_rng, Rng};
use solana_sdk::pubkey::Pubkey;
use solana_sdk::signature::{Keypair, KeypairUtil};
use window::WindowSlot;
use crate::window::WindowSlot;
#[test]
pub fn test_coding() {