mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
add para_id to fetch_pov logging (#6084)
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io> Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
This commit is contained in:
@@ -621,6 +621,7 @@ async fn request_pov(
|
||||
sender: &mut impl overseer::CandidateBackingSenderTrait,
|
||||
relay_parent: Hash,
|
||||
from_validator: ValidatorIndex,
|
||||
para_id: ParaId,
|
||||
candidate_hash: CandidateHash,
|
||||
pov_hash: Hash,
|
||||
) -> Result<Arc<PoV>, Error> {
|
||||
@@ -629,6 +630,7 @@ async fn request_pov(
|
||||
.send_message(AvailabilityDistributionMessage::FetchPoV {
|
||||
relay_parent,
|
||||
from_validator,
|
||||
para_id,
|
||||
candidate_hash,
|
||||
pov_hash,
|
||||
tx,
|
||||
@@ -697,8 +699,15 @@ async fn validate_and_make_available(
|
||||
PoVData::Ready(pov) => pov,
|
||||
PoVData::FetchFromValidator { from_validator, candidate_hash, pov_hash } => {
|
||||
let _span = span.as_ref().map(|s| s.child("request-pov"));
|
||||
match request_pov(&mut sender, relay_parent, from_validator, candidate_hash, pov_hash)
|
||||
.await
|
||||
match request_pov(
|
||||
&mut sender,
|
||||
relay_parent,
|
||||
from_validator,
|
||||
candidate.descriptor.para_id,
|
||||
candidate_hash,
|
||||
pov_hash,
|
||||
)
|
||||
.await
|
||||
{
|
||||
Err(Error::FetchPoV) => {
|
||||
tx_command
|
||||
|
||||
Reference in New Issue
Block a user