mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Merge #1088
1088: feat: add debugging info for failed to fetch transaction r=delta1 a=delta1 Add the jsonrpc error message and data to tracing calls to try debug #1061 "monero-wallet-rpc failed to fetch transaction" Co-authored-by: Byron Hambly <bhambly@blockstream.com>
This commit is contained in:
commit
a9d9250af1
@ -314,8 +314,13 @@ async fn wait_for_confirmations<C: monero_rpc::wallet::MoneroWalletRpc<reqwest::
|
|||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(proof) => proof,
|
Ok(proof) => proof,
|
||||||
Err(jsonrpc::Error::JsonRpc(jsonrpc::JsonRpcError { code: -1, .. })) => {
|
Err(jsonrpc::Error::JsonRpc(jsonrpc::JsonRpcError {
|
||||||
tracing::warn!(%txid, "`monero-wallet-rpc` failed to fetch transaction, may need to be restarted");
|
code: -1,
|
||||||
|
message,
|
||||||
|
data,
|
||||||
|
})) => {
|
||||||
|
tracing::debug!(message, ?data);
|
||||||
|
tracing::warn!(%txid, message, "`monero-wallet-rpc` failed to fetch transaction, may need to be restarted");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// TODO: Implement this using a generic proxy for each function call once https://github.com/thomaseizinger/rust-jsonrpc-client/issues/47 is fixed.
|
// TODO: Implement this using a generic proxy for each function call once https://github.com/thomaseizinger/rust-jsonrpc-client/issues/47 is fixed.
|
||||||
|
Loading…
Reference in New Issue
Block a user