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

View File

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