Add last_seen to the the ConfirmationTime::Unconfirmed variant
This allows us to skip adding an extra input to `Wallet::insert_tx`. Also remove redundant logic.
This commit is contained in:
10 files changed
+75
-80
No files matched your search
@@ -22,6 +22,6 @@ pub(crate) fn map_confirmation_time(
|
||||
(Some(time), Some(height)) if height <= height_at_start => {
|
||||
ConfirmationTime::Confirmed { height, time }
|
||||
}
|
||||
_ => ConfirmationTime::Unconfirmed,
|
||||
_ => ConfirmationTime::Unconfirmed { last_seen: 0 },
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user