Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Improve docs and log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zimnoch committed Nov 13, 2020
1 parent e8b4f4d commit 2e04da0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/extensions/tbtc/tbtc.go
Original file line number Diff line number Diff line change
@@ -38,11 +38,13 @@ const (
// the given chain state expectations.
defaultBlockConfirmations = 12

// Determines how long the monitoring cache will maintain
// its entries.
// Determines how long the monitoring cache will maintain its entries about
// which deposits should be monitored by this client instance.
monitoringCachePeriod = 24 * time.Hour

// Used to calculate the action delay factor for the given signer index.
// Used to calculate the action delay factor for the given signer index
// to avoid all signers executing the same action for deposit at the
// same time.
defaultSignerActionDelayStep = 5 * time.Minute
)

@@ -817,7 +819,8 @@ func (t *tbtc) shouldMonitorDeposit(depositAddress string) bool {
signerIndex, err := t.getSignerIndex(depositAddress)
if err != nil {
logger.Errorf(
"could not get signer index for deposit [%v]: [%v]",
"could not check if deposit [%v] should be monitored: "+
"failed to get signer index: [%v]",
depositAddress,
err,
)

0 comments on commit 2e04da0

Please sign in to comment.