Set a height-based locktime for new transactions (uses the height of the current chain tip unless we are not synced with the current chain
Declared in <wallet/spend.h>
void
DiscourageFeeSniping(
CMutableTransaction& tx,
FastRandomContext& rng_fast,
interfaces::Chain& chain,
uint256 const& block_hash,
int block_height);
| Name | Description |
|---|---|
| tx | The transaction whose locktime is set. |
| rng_fast | Fast random context used to occasionally randomize the locktime. |
| chain | The chain interface used to query the current tip. |
| block_hash | The hash of the block used as the reference chain tip. |
| block_height | The height of the block used as the reference chain tip. |