File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 8585 TooLargeRequest = & EngineAPIError {code : - 38004 , msg : "Too large request" }
8686 InvalidParams = & EngineAPIError {code : - 32602 , msg : "Invalid parameters" }
8787 UnsupportedFork = & EngineAPIError {code : - 38005 , msg : "Unsupported fork" }
88+ UnknownParent = & EngineAPIError {code : - 38006 , msg : "Unknown parent" }
8889
8990 STATUS_INVALID = ForkChoiceResponse {PayloadStatus : PayloadStatusV1 {Status : INVALID }, PayloadID : nil }
9091 STATUS_SYNCING = ForkChoiceResponse {PayloadStatus : PayloadStatusV1 {Status : SYNCING }, PayloadID : nil }
Original file line number Diff line number Diff line change @@ -655,6 +655,10 @@ func (api *ConsensusAPI) GetInclusionListV1(parentHash common.Hash) (types.Inclu
655655 return inclusionList , nil
656656 }
657657
658+ if api .eth .BlockChain ().GetBlockByHash (parentHash ) == nil {
659+ return nil , engine .UnknownParent
660+ }
661+
658662 args := & miner.BuildInclusionListArgs {
659663 Parent : parentHash ,
660664 }
You can’t perform that action at this time.
0 commit comments