2020-08-07 14:33:55 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
2020-08-07 16:50:10 +00:00
|
|
|
"time"
|
|
|
|
|
2020-08-07 14:33:55 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
|
|
|
)
|
|
|
|
|
|
|
|
type MpoolConfig struct {
|
|
|
|
PriorityAddrs []address.Address
|
|
|
|
SizeLimitHigh int
|
|
|
|
SizeLimitLow int
|
|
|
|
ReplaceByFeeRatio float64
|
2020-08-07 16:50:10 +00:00
|
|
|
PruneCooldown time.Duration
|
2020-08-07 14:33:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (mc *MpoolConfig) Clone() *MpoolConfig {
|
|
|
|
r := new(MpoolConfig)
|
|
|
|
*r = *mc
|
|
|
|
return r
|
|
|
|
}
|