contrib: Update startup_regtest for taproot
What changed, and why it matters
This is a tiny update to a helper shell script used only for local developer testing. It changes the address type the script asks for from 'bech32' (SegWit) to 'p2tr' (Taproot) because the software now defaults to Taproot addresses. It does not touch any production code, network protocol, wallet security, or cryptographic logic.
No security action needed. Treat as normal development/maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies contrib/startup_regtest.sh, a regtest/local-dev startup helper. The fund_nodes() function previously parsed the ‘bech32=’ field from the newaddr RPC output; it now parses the ‘p2tr=’ field. This is a purely cosmetic/test-infrastructure change to match the new default address type returned by newaddr. No consensus, cryptography, authentication, or payment-handling code is affected.
Changed components
contrib/startup_regtest.shInspect captured patch +2 / −2
diff --git a/contrib/startup_regtest.sh b/contrib/startup_regtest.sh
index fda8ac58..fe0351ef 100755
--- a/contrib/startup_regtest.sh
+++ b/contrib/startup_regtest.sh
@@ -351,8 +351,8 @@ fund_nodes() {
"$LCLI" -H --lightning-dir="$LIGHTNING_DIR"/l"$node1" connect "$L2_NODE_ID"@localhost:"$L2_NODE_PORT" > /dev/null
- L1_WALLET_ADDR=$($LCLI -F --lightning-dir="$LIGHTNING_DIR"/l"$node1" newaddr | sed -n 's/^bech32=\(.*\)/\1/p')
- L2_WALLET_ADDR=$($LCLI -F --lightning-dir="$LIGHTNING_DIR"/l"$node2" newaddr | sed -n 's/^bech32=\(.*\)/\1/p')
+ L1_WALLET_ADDR=$($LCLI -F --lightning-dir="$LIGHTNING_DIR"/l"$node1" newaddr | sed -n 's/^p2tr=\(.*\)/\1/p')
+ L2_WALLET_ADDR=$($LCLI -F --lightning-dir="$LIGHTNING_DIR"/l"$node2" newaddr | sed -n 's/^p2tr=\(.*\)/\1/p')
ensure_bitcoind_funds
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.