Always give Fullnode a vote signer

This will allow us to use the the signer's pubkey as the node id.

Disable voting with a configuration option.
This commit is contained in:
Greg Fitzgerald
2019-01-30 17:16:55 -07:00
parent 00bb5925e1
commit e25992a011
7 changed files with 64 additions and 55 deletions

View File

@@ -58,7 +58,7 @@ fn test_replicator_startup() {
Arc::new(RwLock::new(LeaderScheduler::from_bootstrap_leader(
leader_info.id.clone(),
))),
Some(Arc::new(signer_proxy)),
signer_proxy,
None,
fullnode_config,
);
@@ -88,7 +88,7 @@ fn test_replicator_startup() {
Arc::new(RwLock::new(LeaderScheduler::from_bootstrap_leader(
leader_info.id,
))),
Some(Arc::new(signer_proxy)),
signer_proxy,
Some(&leader_info),
fullnode_config,
);
@@ -283,7 +283,7 @@ fn test_replicator_startup_ledger_hang() {
Arc::new(RwLock::new(LeaderScheduler::from_bootstrap_leader(
leader_info.id.clone(),
))),
Some(Arc::new(signer_proxy)),
signer_proxy,
None,
Default::default(),
);
@@ -299,7 +299,7 @@ fn test_replicator_startup_ledger_hang() {
Arc::new(RwLock::new(LeaderScheduler::from_bootstrap_leader(
leader_info.id,
))),
Some(Arc::new(signer_proxy)),
signer_proxy,
Some(&leader_info),
Default::default(),
);