verify that blobs match a known leader for the slot (#3927)

* validate that blobs match a known leader for the slot

* clippy
This commit is contained in:
Rob Walker
2019-04-22 15:21:10 -07:00
committed by GitHub
parent b27b515186
commit 4b04c37c36
4 changed files with 103 additions and 21 deletions

View File

@@ -21,7 +21,6 @@ use solana_client::rpc_client::RpcClient;
use solana_client::rpc_request::RpcRequest;
use solana_client::thin_client::{create_client, ThinClient};
use solana_sdk::client::{AsyncClient, SyncClient};
use solana_sdk::hash::{Hash, Hasher};
use solana_sdk::signature::{Keypair, KeypairUtil, Signature};
use solana_sdk::system_transaction;
@@ -235,6 +234,7 @@ impl Replicator {
let (retransmit_sender, retransmit_receiver) = channel();
let window_service = WindowService::new(
None, //TODO: need a way to validate blobs... https://github.com/solana-labs/solana/issues/3924
blocktree.clone(),
cluster_info.clone(),
blob_fetch_receiver,