mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 13:31:04 +00:00
Use active_leaves instead of known_leaves (#6068)
* Use active_leaves for synchronization. Otherwise on reverts the syncrhonization of create inherent would not work. * Add some trace logs.
This commit is contained in:
@@ -57,6 +57,11 @@ impl ParachainsInherentDataProvider {
|
||||
) -> Result<Self, Error> {
|
||||
let pid = async {
|
||||
let (sender, receiver) = futures::channel::oneshot::channel();
|
||||
gum::trace!(
|
||||
target: LOG_TARGET,
|
||||
relay_parent = ?parent,
|
||||
"Inherent data requested by Babe"
|
||||
);
|
||||
overseer.wait_for_activation(parent, sender).await;
|
||||
receiver
|
||||
.await
|
||||
@@ -64,6 +69,11 @@ impl ParachainsInherentDataProvider {
|
||||
.map_err(|e| Error::Subsystem(e))?;
|
||||
|
||||
let (sender, receiver) = futures::channel::oneshot::channel();
|
||||
gum::trace!(
|
||||
target: LOG_TARGET,
|
||||
relay_parent = ?parent,
|
||||
"Requesting inherent data (after having waited for activation)"
|
||||
);
|
||||
overseer
|
||||
.send_msg(
|
||||
ProvisionerMessage::RequestInherentData(parent, sender),
|
||||
|
||||
Reference in New Issue
Block a user