Skip to content

Commit

Permalink
restart tx fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Feb 2, 2024
1 parent 5c236ce commit e88a0ed
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions base_layer/wallet/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

use std::{cmp, marker::PhantomData, sync::Arc};
use std::{cmp, io, marker::PhantomData, sync::Arc, thread};

use blake2::Blake2b;
use digest::consts::U32;
Expand Down Expand Up @@ -283,13 +283,15 @@ where
// made during comms startup. In the case of a Tor Transport the public address could
// have been generated
let _result = wallet_db.set_node_address(address);
let result = block_on(ts.restart_transaction_protocols());
if result.is_err() {
warn!(
thread::spawn(move || {
let result = block_on(ts.restart_transaction_protocols());
if result.is_err() {
warn!(
target: LOG_TARGET,
"Could not restart transaction negotiation protocols: {:?}", result
);
}
}
});
};
initialization::spawn_comms_using_transport(comms, config.p2p.transport, after_comms).await?
} else {
Expand Down

0 comments on commit e88a0ed

Please sign in to comment.