mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-22 10:44:53 +00:00
Ignore transactions which use a timelock
This commit is contained in:
parent
df2876dbd4
commit
2ae715f899
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue