mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-05 05:13:59 +01:00
Connection timeout (#765)
This commit is contained in:
@@ -281,7 +281,7 @@ impl LocalServerContainer {
|
||||
let _ = fs::create_dir_all(self.wallet_config.clone().data_file_dir);
|
||||
let r = wallet::WalletSeed::init_file(&self.wallet_config, 32, None, "");
|
||||
|
||||
let client_n = HTTPNodeClient::new(&self.wallet_config.check_node_api_http_addr, None);
|
||||
let client_n = HTTPNodeClient::new(&self.wallet_config.check_node_api_http_addr, None, std::time::Duration::from_secs(60));
|
||||
|
||||
if let Err(_e) = r {
|
||||
//panic!("Error initializing wallet seed: {}", e);
|
||||
@@ -354,7 +354,7 @@ impl LocalServerContainer {
|
||||
let keychain: keychain::ExtKeychain = wallet_seed
|
||||
.derive_keychain(false)
|
||||
.expect("Failed to derive keychain from seed file and passphrase.");
|
||||
let client_n = HTTPNodeClient::new(&config.check_node_api_http_addr, None);
|
||||
let client_n = HTTPNodeClient::new(&config.check_node_api_http_addr, None, std::time::Duration::from_secs(60));
|
||||
let mut wallet = LMDBBackend::new(config.clone(), "", client_n)
|
||||
.unwrap_or_else(|e| panic!("Error creating wallet: {:?} Config: {:?}", e, config));
|
||||
wallet.keychain = Some(keychain);
|
||||
@@ -382,7 +382,7 @@ impl LocalServerContainer {
|
||||
.derive_keychain(false)
|
||||
.expect("Failed to derive keychain from seed file and passphrase.");
|
||||
|
||||
let client_n = HTTPNodeClient::new(&config.check_node_api_http_addr, None);
|
||||
let client_n = HTTPNodeClient::new(&config.check_node_api_http_addr, None, std::time::Duration::from_secs(60));
|
||||
let client_w = HTTPWalletCommAdapter::new();
|
||||
|
||||
let max_outputs = 500;
|
||||
|
||||
@@ -908,7 +908,7 @@ fn replicate_tx_fluff_failure() {
|
||||
|
||||
// Create Wallet 1 (Mining Input) and start it listening
|
||||
// Wallet 1 post to another node, just for fun
|
||||
let client1 = HTTPNodeClient::new("http://127.0.0.1:23003", None);
|
||||
let client1 = HTTPNodeClient::new("http://127.0.0.1:23003", None, std::time::Duration::from_secs(60));
|
||||
let client1_w = HTTPWalletCommAdapter::new();
|
||||
let wallet1 = create_wallet("target/tmp/tx_fluff/wallet1", client1.clone());
|
||||
let _wallet1_handle = thread::spawn(move || {
|
||||
@@ -917,7 +917,7 @@ fn replicate_tx_fluff_failure() {
|
||||
});
|
||||
|
||||
// Create Wallet 2 (Recipient) and launch
|
||||
let client2 = HTTPNodeClient::new("http://127.0.0.1:23001", None);
|
||||
let client2 = HTTPNodeClient::new("http://127.0.0.1:23001", None, std::time::Duration::from_secs(60));
|
||||
let wallet2 = create_wallet("target/tmp/tx_fluff/wallet2", client2.clone());
|
||||
let _wallet2_handle = thread::spawn(move || {
|
||||
controller::foreign_listener(wallet2, "127.0.0.1:33001", None)
|
||||
|
||||
Reference in New Issue
Block a user