Send error message if eip4844 fork disabled

Co-authored-by: realbigsean <seananderson33@GMAIL.com>
This commit is contained in:
Emilia Hane 2023-01-18 19:48:16 +01:00 committed by Emilia Hane
parent 654e59cbba
commit 9cc25162e2
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA

View File

@ -643,6 +643,12 @@ impl<T: BeaconChainTypes> Worker<T> {
}
None => {
debug!(self.log, "Eip4844 fork is disabled");
self.send_error_response(
peer_id,
RPCResponseErrorCode::ResourceUnavailable,
"Backfilling".into(),
request_id,
);
return;
}
};