Skip to content

Commit

Permalink
fix coinDistributionCollectorStartedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-cronus committed Dec 28, 2023
1 parent bac7e3b commit 21002f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miner/ethereum_distribution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func refEligibleForDistribution(now *time.Time, r *referral, distributionCfg *co
func testCollectorConfig(minBalance float64, streak uint64) *coindistribution.CollectorSettings {
cfg.EthereumDistributionFrequency.Min = 24 * stdlibtime.Hour
cfg.EthereumDistributionFrequency.Max = 7 * 24 * stdlibtime.Hour
cfg.coinDistributionCollectorStartedAt.Store(testTime)

return &coindistribution.CollectorSettings{
DeniedCountries: nil,
LatestDate: time.New(testTime.Truncate(24 * stdlibtime.Hour).Add(364 * 24 * stdlibtime.Hour)),
Expand Down

0 comments on commit 21002f4

Please sign in to comment.