wait_for_finalized behavior if the tx dropped, usurped or invalid (#897)

* consider dropped, invalid and usurped as finalized

* test structure

* unit tests

* move tests to tx_progress file

* integrate pr review comments

* integrate pr review comments (including revert)
This commit is contained in:
Tadeo Hepperle
2023-04-06 13:23:56 +02:00
committed by GitHub
parent 8a7c17289a
commit a69b3e45e7
3 changed files with 190 additions and 31 deletions
+2 -1
View File
@@ -166,7 +166,8 @@ impl<Res> std::fmt::Debug for Subscription<Res> {
}
impl<Res> Subscription<Res> {
fn new(inner: RpcSubscription) -> Self {
/// Creates a new [`Subscription`].
pub fn new(inner: RpcSubscription) -> Self {
Self {
inner,
_marker: std::marker::PhantomData,