currentHeight
Set the current blockchain height.
This will be used to:
Set the
nLockTime
for preventing fee sniping. Note: This will be ignored if you manually specify anlocktime
usingTxBuilder::nlocktime
.Decide whether coinbase outputs are mature or not. If the coinbase outputs are not mature at
current_height
, we ignore them in the coin selection. If you want to create a transaction that spends immature coinbase inputs, manually add them usingTxBuilder::add_utxos
. In both cases, if you don’t provide a current height, we use the last sync height.