mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
daemon/test: activate segwit.
You need to be running a bitcoind modified with segregated witness: https://github.com/sipa/bitcoin/tree/segwit4 It needs 432 blocks to activate it! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -27,7 +27,15 @@ while ! $CLI getinfo >/dev/null 2>&1; do
|
||||
sleep 1
|
||||
i=$(($i + 1))
|
||||
done
|
||||
|
||||
|
||||
# Make sure they have segwit support!
|
||||
if $CLI help createwitnessaddress > /dev/null 2>&1; then :
|
||||
else
|
||||
echo This bitcoind does not have segwit support. >&2
|
||||
echo Please install one from https://github.com/sipa/bitcoin/tree/segwit4 >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
scripts/generate-block.sh init
|
||||
|
||||
A1=`scripts/get-new-address.sh`
|
||||
|
||||
Reference in New Issue
Block a user