fix the missing components response code for block publish (#4721)

This commit is contained in:
realbigsean 2023-09-11 09:54:14 -04:00 committed by GitHub
parent 1db739490e
commit 58cd50681c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ pub async fn publish_block<T: BeaconChainTypes, B: IntoGossipVerifiedBlockConten
"Invalid block provided to HTTP API"; "Invalid block provided to HTTP API";
"reason" => &msg "reason" => &msg
); );
Err(warp_utils::reject::broadcast_without_import(msg)) Err(warp_utils::reject::custom_bad_request(msg))
} }
} }
Err(BlockError::BeaconChainError(BeaconChainError::UnableToPublish)) => { Err(BlockError::BeaconChainError(BeaconChainError::UnableToPublish)) => {