Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: restart tx fix #6119

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 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, 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!(
target: LOG_TARGET,
"Could not restart transaction negotiation protocols: {:?}", result
);
}
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
Loading