This commit is contained in:
David Terpay
2023-08-21 12:47:19 -04:00
committed by GitHub
parent c740d4c03a
commit dee2fc5d96
5 changed files with 13 additions and 4 deletions
+4
View File
@@ -35,6 +35,10 @@ func NewDefaultLane(cfg base.LaneConfig) *DefaultLane {
base.DefaultMatchHandler(),
)
if err := lane.ValidateBasic(); err != nil {
panic(err)
}
return &DefaultLane{
BaseLane: lane,
}
+4
View File
@@ -37,6 +37,10 @@ func NewFreeLane(
matchFn,
)
if err := lane.ValidateBasic(); err != nil {
panic(err)
}
return &FreeLane{
BaseLane: lane,
}
+4
View File
@@ -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
}