KomodoPlatform / zebra

An ongoing Rust implementation of a Komodo node. 🦓
Apache License 2.0
3 stars 5 forks source link

Add komodo interest tx locktime validation #24

Closed dimxy closed 1 year ago

dimxy commented 1 year ago

Add transaction lock time validation that the transaction has not been too long in mempool (See the komodo_validate_interest() in the base komodod repo for the algo) in these parts:

dimxy commented 1 year ago

This rule is needed to prevent cheating with tx locktime when it may be set too early to extend interest period

dimxy commented 1 year ago

implemented in 69382725383b8f98a524e1409621065847573dd3 (this implementation is only for the cases of adding transaction to mempool and block; the removal of outdated transactions is to be added yet)