summaryrefslogtreecommitdiff
path: root/c2ec/attestor.go
diff options
context:
space:
mode:
Diffstat (limited to 'c2ec/attestor.go')
-rw-r--r--c2ec/attestor.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/c2ec/attestor.go b/c2ec/attestor.go
index ea777b8..f268a0a 100644
--- a/c2ec/attestor.go
+++ b/c2ec/attestor.go
@@ -71,6 +71,8 @@ func listenCallback(
func dispatch(notification *Notification, errs chan error) {
+ LogInfo("attestor", fmt.Sprintf("retrieved information on channel=%s with payload=%s", notification.Channel, notification.Payload))
+
// The payload is formatted like: "{PROVIDER_NAME}|{WITHDRAWAL_ID}|{PROVIDER_TRANSACTION_ID}"
// the validation is strict. This means, that the dispatcher emits an error
// and returns, if a property is malformed.
@@ -174,7 +176,7 @@ func prepareRetryOrAbort(
return
}
- if withdrawal.RetryCounter > CONFIG.Server.MaxRetries {
+ if withdrawal.RetryCounter >= CONFIG.Server.MaxRetries {
LogInfo("attestor", fmt.Sprintf("max retries for withdrawal with id=%d was reached. withdrawal is aborted.", withdrawal.WithdrawalId))
err := DB.FinaliseWithdrawal(withdrawalRowId, ABORTED, make([]byte, 0))