lotus/chain/types/mpool.go

23 lines
398 B
Go
Raw Normal View History

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 Percent
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
}