keep-starknet-strange / raito

Bitcoin ZK client written in Cairo.
https://raito.wtf
MIT License
48 stars 37 forks source link

[bug] Relative locktime is not respected #285

Closed m-kus closed 3 weeks ago

m-kus commented 1 month ago

Multiple relative locktime issues:

Fixups:

Troubleshooting:

Hints:

PavitraAgarwal21 commented 1 month ago

Can I take this up .

maciejka commented 1 month ago

@PavitraAgarwal21 do you need any assistance?

PavitraAgarwal21 commented 1 month ago

@maciejka The validate_transaction function within compute_and_validate_tx_data initializes the outpoint with MTP and includes a call to validate_relative_locktimeto check relative locktime validation. The fixups seems already implemented .

maciejka commented 1 month ago

@maciejka The validate_transaction function within compute_and_validate_tx_data initializes the outpoint with MTP and includes a call to validate_relative_locktimeto check relative locktime validation. The fixups seems already implemented .

AFAIU validate_transaction should use block_time instead of MTP, so compute_and_validate_tx_data needs an extra parameter block_time.