mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Ignore transactions which use a timelock
This commit is contained in:
@@ -58,6 +58,12 @@ impl Transaction {
|
||||
view: Scalar,
|
||||
spend: EdwardsPoint
|
||||
) -> Vec<SpendableOutput> {
|
||||
// Ignore transactions which utilize a timelock. Almost no transactions on Monero do,
|
||||
// and they're not worth the effort to track given their complexities
|
||||
if self.prefix.unlock_time != 0 {
|
||||
return vec![];
|
||||
}
|
||||
|
||||
let mut extra = vec![];
|
||||
write_varint(&u64::try_from(self.prefix.extra.len()).unwrap(), &mut extra).unwrap();
|
||||
extra.extend(&self.prefix.extra);
|
||||
|
||||
Reference in New Issue
Block a user