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 {
|
2020-08-08 15:09:47 +00:00
|
|
|
PriorityAddrs []address.Address
|
|
|
|
SizeLimitHigh int
|
|
|
|
SizeLimitLow int
|
|
|
|
ReplaceByFeeRatio float64
|
|
|
|
PruneCooldown time.Duration
|
|
|
|
GasLimitOverestimation float64
|
2020-08-07 14:33:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (mc *MpoolConfig) Clone() *MpoolConfig {
|
|
|
|
r := new(MpoolConfig)
|
|
|
|
*r = *mc
|
|
|
|
return r
|
|
|
|
}
|