init (#6)
This commit is contained in:
@@ -35,6 +35,10 @@ func NewDefaultLane(cfg base.LaneConfig) *DefaultLane {
|
||||
base.DefaultMatchHandler(),
|
||||
)
|
||||
|
||||
if err := lane.ValidateBasic(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return &DefaultLane{
|
||||
BaseLane: lane,
|
||||
}
|
||||
|
||||
@@ -37,6 +37,10 @@ func NewFreeLane(
|
||||
matchFn,
|
||||
)
|
||||
|
||||
if err := lane.ValidateBasic(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return &FreeLane{
|
||||
BaseLane: lane,
|
||||
}
|
||||
|
||||
@@ -68,5 +68,9 @@ func NewMEVLane(
|
||||
// Set the check order handler to the TOB one
|
||||
lane.SetCheckOrderHandler(lane.CheckOrderHandler())
|
||||
|
||||
if err := lane.ValidateBasic(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return lane
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user