2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
loop/swap
Boris Nagaev fa8703f052
swap: fix leaf estimation in AddSuccessToEstimator
According to AddTapscriptInput's godoc, the first argument (leafWitnessSize)
must include not the whole size of witness, but only the size of data consumed
by the revealed script. Previously the value was too high, because it also
included the following extra elements: number_of_witness_elements (1 byte),
witness script and its size, control block and its size.

Tests for greedy_batch_selection were affected by this change.
2024-08-12 12:18:36 -03:00
..
fees.go multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
htlc_test.go swap: pass in MuSig2 version when creating taproot HTLCs 2023-02-06 20:46:03 +01:00
htlc.go swap: fix leaf estimation in AddSuccessToEstimator 2024-08-12 12:18:36 -03:00
keychain.go swap: address family for static addresses 2024-01-31 11:24:22 +01:00
log.go multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
tx.go multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
type.go loopd: abandon loop-ins 2023-11-27 11:14:13 +01:00