test-validator-bin: reinstate full rpc method set
This commit is contained in:
parent
ab02dba96f
commit
c62f9839a2
|
@ -230,9 +230,10 @@ impl Default for ValidatorConfig {
|
||||||
|
|
||||||
impl ValidatorConfig {
|
impl ValidatorConfig {
|
||||||
pub fn default_for_test() -> Self {
|
pub fn default_for_test() -> Self {
|
||||||
let mut config = Self::default();
|
Self {
|
||||||
config.rpc_config.full_api = true;
|
rpc_config: JsonRpcConfig::default_for_test(),
|
||||||
config
|
..Self::default()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,15 @@ pub struct JsonRpcConfig {
|
||||||
pub rpc_scan_and_fix_roots: bool,
|
pub rpc_scan_and_fix_roots: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl JsonRpcConfig {
|
||||||
|
pub fn default_for_test() -> Self {
|
||||||
|
Self {
|
||||||
|
full_api: true,
|
||||||
|
..Self::default()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct JsonRpcRequestProcessor {
|
pub struct JsonRpcRequestProcessor {
|
||||||
bank_forks: Arc<RwLock<BankForks>>,
|
bank_forks: Arc<RwLock<BankForks>>,
|
||||||
|
|
|
@ -617,7 +617,7 @@ fn main() {
|
||||||
enable_rpc_transaction_history: true,
|
enable_rpc_transaction_history: true,
|
||||||
enable_cpi_and_log_storage: true,
|
enable_cpi_and_log_storage: true,
|
||||||
faucet_addr,
|
faucet_addr,
|
||||||
..JsonRpcConfig::default()
|
..JsonRpcConfig::default_for_test()
|
||||||
})
|
})
|
||||||
.pubsub_config(PubSubConfig {
|
.pubsub_config(PubSubConfig {
|
||||||
enable_vote_subscription,
|
enable_vote_subscription,
|
||||||
|
|
Loading…
Reference in New Issue