2021-01-22 15:01:44 +00:00
|
|
|
package innerring
|
|
|
|
|
|
|
|
import (
|
2021-01-28 19:51:41 +00:00
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/settlement/audit"
|
2021-01-22 15:01:44 +00:00
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/timers"
|
|
|
|
)
|
|
|
|
|
|
|
|
type blockTimerWrapper timers.BlockTimer
|
|
|
|
|
|
|
|
func (t *blockTimerWrapper) ResetEpochTimer() error {
|
|
|
|
return (*timers.BlockTimer)(t).Reset()
|
|
|
|
}
|
2021-01-28 19:51:41 +00:00
|
|
|
|
|
|
|
type auditSettlementCalculator audit.Calculator
|
|
|
|
|
|
|
|
func (s *auditSettlementCalculator) ProcessAuditSettlements(epoch uint64) {
|
|
|
|
(*audit.Calculator)(s).Calculate(&audit.CalculatePrm{
|
|
|
|
Epoch: epoch,
|
|
|
|
})
|
|
|
|
}
|