pass wallet password to electrum config on backend
This commit is contained in:
@@ -218,6 +218,7 @@ export const getElectrumWalletConfig = (): ElectrumWalletConfig => ({
|
||||
rpcUrl: `http://${env('ELECTRUM_DAEMON_HOST')}:${envInt('ELECTRUM_DAEMON_PORT')}`,
|
||||
username: env('ELECTRUM_DAEMON_RPC_USER'),
|
||||
password: env('ELECTRUM_DAEMON_RPC_PASSWORD'),
|
||||
walletPassword: env('ELECTRUM_WALLET_PASSWORD'),
|
||||
rpcTimeoutMs: envInt('ELECTRUM_DAEMON_RPC_TIMEOUT_MS')
|
||||
});
|
||||
|
||||
|
||||
@@ -374,6 +374,10 @@ class EnvironmentVariables {
|
||||
@Min(1000)
|
||||
ELECTRUM_DAEMON_RPC_TIMEOUT_MS: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
ELECTRUM_WALLET_PASSWORD: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
SIMPLEX_WS_URL: string;
|
||||
|
||||
@@ -6,5 +6,6 @@ export interface ElectrumWalletConfig {
|
||||
rpcUrl: string;
|
||||
username: string;
|
||||
password: string;
|
||||
walletPassword: string;
|
||||
rpcTimeoutMs: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user