lnd/lnmock
Elle Mouton f55c0565d0
lnwallet+walletrpc: add SubmitPackage for v3 CPFP package relay
Add SubmitPackage to the lnwallet.WalletController interface and a new
WalletKit.SubmitPackage RPC, so a client of lnd can relay a package of
related transactions (parents first, child last) through lnd's own chain
connection. This lets a zero-fee v3/TRUC parent be accepted via its
fee-paying CPFP child without the caller needing a separate connection to
the chain backend.

BtcWallet.SubmitPackage forwards to the chain backend's submitpackage for
bitcoind/btcd, and broadcasts each transaction individually for neutrino
(no mempool; relies on the peer's 1p1c package relay). The WalletKit
handler maps the proto request/response to the btcjson result and is
gated by the onchain:write macaroon permission. Mock controllers and the
no-chain backend gain trivial implementations.
2026-06-30 11:07:52 -07:00
..
chain.go lnwallet+walletrpc: add SubmitPackage for v3 CPFP package relay 2026-06-30 11:07:52 -07:00
clock.go lnmock: add new package lnmock to host mocks 2023-01-12 22:08:02 +08:00
routing.go multi: update channel db HTLC OnionBlob to array 2023-06-02 11:01:43 -04:00