Map finality timeout to Dropped instead of Invalid (#1953)

This commit is contained in:
James Wilson authored and GitHub committed 2025-03-11 15:49:52 +01:00
1 parent b6b9ac65c7
commit 16c50846c1
2 files changed
+2 -1

No files matched your search

Generated
+1
View File
@@ -2415,6 +2415,7 @@ version = "0.39.0"
dependencies = [
"assert_matches",
"cfg_aliases",
"frame-decode",
"frame-metadata 20.0.0",
"futures",
"hex",
+1 -1
View File
@@ -382,7 +382,7 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for LegacyBackend<T> {
}
// These 5 mean that the stream will very likely end:
RpcTransactionStatus::FinalityTimeout(_) => {
Some(TransactionStatus::Invalid {
Some(TransactionStatus::Dropped {
message: "Finality timeout".into(),
})
}