Repository navigation
Conversation
Coverage Report for CI Build 28193013536Coverage increased (+0.04%) to 85.555%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
|
The cli uses We either need to change this upstream in their library or re-implement this behavior to follow core ourselves. |
|
thanks everyone. reworked to fund via Core's depends on alpenlabs/bitcoind-async-client#126 I'll leave as a draft (CI red) until that releases, then I'll bump the dep. |
|
I would encourage you to just pin the
|
|
The core issue I opened bitcoin/bitcoin#34987 received mixed feedback as other people seemed to believe that this was the desired behavior as to leave locktime default creation up to us when using |
|
thanks @benalleng so, given the Core feedback, I lean to switch this to re-implement, since the caller should own the locktime for non-final tx creation (same as Liana) compute the anti-fee-sniping locktime (current tip, ~10% backdated ≤100, 0 on stale/IBD) and set it explicitly on sounds good? |
| InputPair::new(txin, psbtin, None).expect("Input pair should be valid") | ||
| } | ||
|
|
||
| /// nLockTime mirroring Core's `DiscourageFeeSniping`/`IsCurrentForAntiFeeSniping`: the tip, |
There was a problem hiding this comment.
Adding these to just give myself some better reference for review
|
keep the manual in-cli locktime, or switch to |
|
IMO we should keep the manual locktime as you have now. I don't think it is appropriate to rely on the send |
arminsabouri
left a comment
There was a problem hiding this comment.
ConceptNack
payjoin-cli nLockTime then matches Core/Electrum anonymity set.
nLockTime = tip usage is declining overall https://mainnet.observer/charts/transactions-height-based-locktime so there is not much of anon set in general (probably due to ordinals/runes txs).
The more pressing concern for payjoin is matching the fingerprints of counterparties which #1445 does. As far as I know, current impls do not do this 10% backdate thing. Which IIRC was implemented in core to match the fingerprints of some other popular wallet at the time.
so, the target should also follow actual usage, not just "match core/electrum". thanks @arminsabouri makes sense, closing. (for the record, core/electrum/liana do the occasional backdate) #1676 (comment) |
compute the anti-fee-sniping
nLockTimein the cli (current tip, ~10% backdated up to 100, 0 on stale/IBD) and set it explicitly onwallet_create_funded_psbt, mirroring Core'sDiscourageFeeSnipingpayjoin-clinLockTimethen matchesCore/Electrumanonymity set.part of #1676 and #1597