Closed KnowWhoami closed 2 months ago
For Fedility & normal transactions -> we are setting locktime as current height for preventing fee-snipping attack . https://github.com/citadel-tech/coinswap/blob/691c937454ccf1c2a182ef0aca1d514b7f74606d/src/wallet/fidelity.rs#L354
Fedility
fee-snipping attack
However, there is no locktime set for the funding and contract transactions, which is not ideal. These transactions are vital components of the protocol, and any attack on them could hinder the protocol's efficiency.
funding
contract
https://github.com/citadel-tech/coinswap/blob/691c937454ccf1c2a182ef0aca1d514b7f74606d/src/wallet/funding.rs#L177 https://github.com/citadel-tech/coinswap/blob/691c937454ccf1c2a182ef0aca1d514b7f74606d/src/protocol/contract.rs#L397
For
Fedility
& normal transactions -> we are setting locktime as current height for preventingfee-snipping attack
. https://github.com/citadel-tech/coinswap/blob/691c937454ccf1c2a182ef0aca1d514b7f74606d/src/wallet/fidelity.rs#L354However, there is no locktime set for the
funding
andcontract
transactions, which is not ideal. These transactions are vital components of the protocol, and any attack on them could hinder the protocol's efficiency.https://github.com/citadel-tech/coinswap/blob/691c937454ccf1c2a182ef0aca1d514b7f74606d/src/wallet/funding.rs#L177 https://github.com/citadel-tech/coinswap/blob/691c937454ccf1c2a182ef0aca1d514b7f74606d/src/protocol/contract.rs#L397