Skip to content

Commit

Permalink
[Electric-Coin-Company#1452] TX Resubmission-the wallet has to period…
Browse files Browse the repository at this point in the history
…ically resubmit unmined transactions (Electric-Coin-Company#1454)

- addressed comments from the PR, logs enhanced to feature height and demo app logs issues first before any other code is executed

[Electric-Coin-Company#1452] TX Resubmission-the wallet has to periodically resubmit unmined transactions (Electric-Coin-Company#1454)

- txId log
  • Loading branch information
LukasKorba committed Jul 2, 2024
1 parent d6526c9 commit 9bf8fce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ class SendViewController: UIViewController {
// swiftlint:disable:next force_try
memo: try! self.memoField.text.asMemo()
)
KRProgressHUD.dismiss()
loggerProxy.info("transaction created: \(pendingTransaction)")
KRProgressHUD.dismiss()
} catch {
loggerProxy.error("SEND FAILED: \(error)")
KRProgressHUD.dismiss()
fail(error)
loggerProxy.error("SEND FAILED: \(error)")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ extension TxResubmissionAction: Action {
let encodedTransaction = try transaction.encodedTransaction()

try await transactionEncoder.submit(transaction: encodedTransaction)
logger.info("TxResubmissionAction trying to resubmit transaction")
logger.info("TxResubmissionAction trying to resubmit transaction at \(latestBlockHeight) height, txId \(transaction.rawID.toHexStringTxId()).")
}
} catch {
logger.error("TxResubmissionAction failed to resubmit candidates")
logger.error("TxResubmissionAction failed to resubmit candidates at \(latestBlockHeight) height.")
}

latestResolvedTime = Date().timeIntervalSince1970
}
}
} catch {
logger.error("TxResubmissionAction failed to find candidates")
logger.error("TxResubmissionAction failed to find candidates at \(latestBlockHeight) height.")
}

if await context.prevState == .enhance {
Expand Down

0 comments on commit 9bf8fce

Please sign in to comment.