storj/satellite/payments/storjscan/storjscan.go
Yaroslav Vorobiov de5951331a satellite: wire storjscan chore to core process
Adds storjscan chore and storjscan client to satellite chore.
Storjscan chore interval added to storjscan config.

Change-Id: I13bb8d83b14ca90f4735c9a10c361ad24a56b256
2022-07-14 15:07:52 +00:00

25 lines
835 B
Go

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
package storjscan
import (
"time"
"github.com/spacemonkeygo/monkit/v3"
)
var mon = monkit.Package()
// Config stores needed information for storjscan service initialization.
type Config struct {
Endpoint string `help:"storjscan API endpoint"`
Auth struct {
Identifier string `help:"basic auth identifier"`
Secret string `help:"basic auth secret"`
}
Interval time.Duration `help:"storjscan chore interval to query new payments for all satellite deposit wallets" default:"1m"`
Confirmations int `help:"required number of following blocks in the chain to accept payment as confirmed" default:"12"`
DisableLoop bool `help:"flag to disable querying new storjscan payments by storjscan chore" default:"true"`
}