Skip to content

Commit

Permalink
update the comment and increase the default poll interval for confirmer
Browse files Browse the repository at this point in the history
  • Loading branch information
tok-kkk committed Mar 5, 2020
1 parent 508eaf0 commit 6cc7188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion confirmer/confirmer.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func (confirmer *Confirmer) checkPendingTxs(parent context.Context) {
})
}

// confirm sends the transaction to the dispatcher and marks it as confirmed.
// confirm sends the transaction to the dispatcher and marks it as confirmed if
// it receives a non-error response from the Darknodes.
func (confirmer *Confirmer) confirm(ctx context.Context, tx abi.Tx) {
request, err := submitTxRequest(tx)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion lightnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (options *Options) SetZeroToDefault() {
options.UpdaterPollRate = 5 * time.Minute
}
if options.ConfirmerPollRate == 0 {
options.ConfirmerPollRate = 15 * time.Second
options.ConfirmerPollRate = 30 * time.Second
}
if options.WatcherPollRate == 0 {
options.WatcherPollRate = 15 * time.Second
Expand Down

0 comments on commit 6cc7188

Please sign in to comment.