I'm following these instructions at
https://github.com/ElementsProject/lightning to open a channel:
First you need to transfer some funds to lightningd so that it can open a channel:
# Returns an address <address>
cli/lightning-cli newaddr
# Returns a transaction id <txid>
bitcoin-cli -testnet sendtoaddress <address> <amount>
Lightning gives me a new address that starts with a "2", 2xxxxxxxxxxxxxxxxxxxxxxx.
I try to send bitcoins to this address using sendtoaddress but it says:
error code: -5
error message:
Invalid Bitcoin address
What am I doing wrong?