]> Untitled Git - bdk/commit
[wallet] Set the correct nSequence when RBF and OP_CSV are used
authorAlekos Filini <alekos.filini@gmail.com>
Mon, 7 Dec 2020 13:48:17 +0000 (14:48 +0100)
committerAlekos Filini <alekos.filini@gmail.com>
Tue, 15 Dec 2020 11:01:41 +0000 (12:01 +0100)
commit322122afc8c1b298aa90ecda15f247b8741f4988
tree4f3411d0232300705ae5c6ab1b211621d8659e8e
parent7adaaf227c25ca6480d849bd19eb00c482cd8ce9
[wallet] Set the correct nSequence when RBF and OP_CSV are used

This commit also fixes the timelock comparing logic in the policy module, since
the rules are different for absolute (OP_CLTV) and relative (OP_CSV) timelocks.

Fixes #215
src/descriptor/policy.rs
src/error.rs
src/wallet/mod.rs
src/wallet/tx_builder.rs
src/wallet/utils.rs