Revert "Validators make a transaction to advertise their storage last_id"

This reverts commit a1759aed19.
This commit is contained in:
Michael Vines
2018-12-23 21:40:52 +00:00
committed by Grimes
parent 3c835b692b
commit 58f2598d5d
10 changed files with 234 additions and 907 deletions

View File

@ -58,7 +58,7 @@ fn test_replicator_startup() {
let validator = Fullnode::new(
validator_node,
&validator_ledger_path,
validator_keypair.clone(),
validator_keypair,
vote_account_keypair,
Some(leader_info.gossip),
false,
@ -70,17 +70,9 @@ fn test_replicator_startup() {
let bob = Keypair::new();
for _ in 0..10 {
let last_id = leader_client.get_last_id();
leader_client
.transfer(1, &mint.keypair(), bob.pubkey(), &last_id)
.unwrap();
sleep(Duration::from_millis(200));
}
let last_id = leader_client.get_last_id();
leader_client
.transfer(10, &mint.keypair(), validator_keypair.pubkey(), &last_id)
.transfer(1, &mint.keypair(), bob.pubkey(), &last_id)
.unwrap();
let replicator_keypair = Keypair::new();
@ -143,14 +135,10 @@ fn test_replicator_startup() {
{
use solana::rpc_request::{RpcClient, RpcRequest};
debug!(
"looking for pubkeys for entry: {}",
replicator.entry_height()
);
let rpc_client = RpcClient::new_from_socket(validator_node_info.rpc);
let mut non_zero_pubkeys = false;
for _ in 0..30 {
let params = json!([replicator.entry_height()]);
let params = json!([0]);
let pubkeys = RpcRequest::GetStoragePubkeysForEntryHeight
.make_rpc_request(&rpc_client, 1, Some(params))
.unwrap();