fix(bitcoind): accept lnbits/lnbits rpcauth alongside cookie
Some checks failed
ci / regtest (push) Has been cancelled
Some checks failed
ci / regtest (push) Has been cancelled
The lnbits regtest test harness (tests/regtest/helpers.py) authenticates to bitcoind with -rpcuser=lnbits -rpcpassword=lnbits, but bitcoind was cookie-only, so mine_blocks / pay_onchain / create_onchain_address (and any bitcoind-using regtest test) failed with "Incorrect rpcuser or rpcpassword". Add -rpcauth for user lnbits (password lnbits). rpcauth does not set rpcpassword, so the auto-generated .cookie is still produced and the LN nodes' --bitcoind.rpccookie auth keeps working. Verified: both cookie and lnbits/lnbits creds authenticate; wrong creds rejected. Surfaced while validating aiolabs/lnbits#53 (native on-chain receive/send) against real lnd-1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0b3970d0c0
commit
0ca8f03a9d
1 changed files with 5 additions and 0 deletions
|
|
@ -107,6 +107,11 @@ services:
|
||||||
image: boltz/bitcoin-core:25.0
|
image: boltz/bitcoin-core:25.0
|
||||||
command:
|
command:
|
||||||
- -regtest
|
- -regtest
|
||||||
|
# creds for the lnbits regtest test harness (tests/regtest/helpers.py uses
|
||||||
|
# -rpcuser=lnbits -rpcpassword=lnbits). rpcauth keeps the auto-generated
|
||||||
|
# cookie working too, so the LN nodes' --bitcoind.rpccookie auth is intact.
|
||||||
|
# $$ escapes compose interpolation. (user=lnbits, password=lnbits)
|
||||||
|
- -rpcauth=lnbits:a1b2c3d4e5f60718293a4b5c6d7e8f90$$64c29b7500c0e20b7917aa7f6dc6ce3eec896dd8f0bd3834f98c5ee489ef233f
|
||||||
- -fallbackfee=0.00000253
|
- -fallbackfee=0.00000253
|
||||||
- -zmqpubrawtx=tcp://0.0.0.0:29000
|
- -zmqpubrawtx=tcp://0.0.0.0:29000
|
||||||
- -zmqpubrawblock=tcp://0.0.0.0:29001
|
- -zmqpubrawblock=tcp://0.0.0.0:29001
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue