make account-driven calls dependent on the finalized block but not latest, thanks to @doctor_k
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
ddc8eb062a
commit
9e77dd816d
@ -64,6 +64,10 @@ impl Network {
|
||||
match io_event {
|
||||
Action::NewBestHash(hash) => {
|
||||
self.best_hash = Some(hash);
|
||||
Ok(())
|
||||
},
|
||||
Action::NewFinalizedHash(hash) => {
|
||||
self.finalized_hash = Some(hash);
|
||||
if let Some(stash_to_watch) = self.stash_to_watch {
|
||||
predefined_calls::get_session_keys(&self.action_tx, &self.online_client_api, &self.rpc_client, &stash_to_watch).await?;
|
||||
predefined_calls::get_queued_session_keys(&self.action_tx, &self.online_client_api, &self.rpc_client, &stash_to_watch).await?;
|
||||
@ -78,10 +82,6 @@ impl Network {
|
||||
}
|
||||
Ok(())
|
||||
},
|
||||
Action::NewFinalizedHash(hash) => {
|
||||
self.finalized_hash = Some(hash);
|
||||
Ok(())
|
||||
},
|
||||
Action::CheckPendingTransactions => {
|
||||
let length = self.transactions_to_watch.len();
|
||||
for i in (0..length).rev() {
|
||||
|
Loading…
Reference in New Issue
Block a user