Add RequestProcessor constructor to simplify testing (#10631)

* Add JsonRpcRequestProcessor constructor

* Avoid start_rpc_handler_with_tx monolith in rpc tests

* pub

* Pass an Arc, so that caller can poke the bank
This commit is contained in:
Greg Fitzgerald
2020-06-16 23:30:59 -06:00
committed by GitHub
parent 5673343f49
commit 891aa8c13e
2 changed files with 90 additions and 58 deletions

View File

@@ -347,7 +347,7 @@ mod tests {
use super::*;
use crate::{
crds_value::{CrdsData, CrdsValue, SnapshotHash},
rpc::tests::create_validator_exit,
rpc::create_validator_exit,
};
use solana_ledger::{
bank_forks::CompressionType,