]> Untitled Git - bdk/commit
Discourage fee sniping with nLockTime
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Wed, 30 Mar 2022 14:29:31 +0000 (16:29 +0200)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 28 Jun 2022 08:35:03 +0000 (10:35 +0200)
commit97bc9dc7170c336e97cd756b1f07ac3c23a39626
tree5c002c32de7c74f59649e835adcba49f4e5b6c61
parent17d0ae0f712ee86a99b96ba393acc572f047a5e7
Discourage fee sniping with nLockTime

By default bdk sets the transaction's nLockTime to current_height
to discourage fee sniping.
current_height can be provided by the user through TxParams; if the user
didn't provide it, we use the last sync height, or 0 if we never synced.

Fixes #533
CHANGELOG.md
src/wallet/mod.rs
src/wallet/tx_builder.rs