mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-23 14:40:34 +01:00
update CSV timeout-out conversion to match bitcoin's
This commit is contained in:
parent
b3f5ce4e38
commit
14e36e9ac8
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@ object Scripts {
|
|||
|
||||
def locktime2long_csv(in: locktime): Long = in match {
|
||||
case locktime(Blocks(blocks)) => blocks
|
||||
// FIXME : we adopt Element's alpha convention while BIP68 is not enabled
|
||||
case locktime(Seconds(seconds)) => 500000000 + seconds
|
||||
case locktime(Seconds(seconds)) => (seconds / 512) & TxIn.SEQUENCE_LOCKTIME_TYPE_FLAG
|
||||
}
|
||||
|
||||
def locktime2long_cltv(in: locktime): Long = in match {
|
||||
|
|
Loading…
Add table
Reference in a new issue