(
chain: Chain,
pbs_config: PbsConfig,
relays: Vec<RelayClient>,
)
| 89 | } |
| 90 | |
| 91 | pub fn to_pbs_config( |
| 92 | chain: Chain, |
| 93 | pbs_config: PbsConfig, |
| 94 | relays: Vec<RelayClient>, |
| 95 | ) -> PbsModuleConfig { |
| 96 | PbsModuleConfig { |
| 97 | chain, |
| 98 | endpoint: SocketAddr::new(pbs_config.host.into(), pbs_config.port), |
| 99 | pbs_config: Arc::new(pbs_config), |
| 100 | signer_client: None, |
| 101 | all_relays: relays.clone(), |
| 102 | relays, |
| 103 | registry_muxes: None, |
| 104 | mux_lookup: None, |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | pub fn get_signer_config(loader: SignerLoader) -> SignerConfig { |
| 109 | SignerConfig { |
no outgoing calls