A user reported to me that they accidentally sent bitcoin to their node's public key as an address, rather than to a deposit address generated by their node (That issue is here: https://github.com/wbobeirne/joule-extension/issues/202). I can imagine this is an easy mistake to make, so it might be nice to account for it. I can think of a few ways to handle this:
lnd - 0.6.0-rc3uname -a on *Nix) - Ubuntu 16.04btcd, bitcoind, or other backend - bitcoindFWIW, sending to a plain pubkey _is_ an accepted Bitcoin transaction type. It's actually the very first Bitcoin transaction type.
Happy to pick this one up, I've made a WIP PR that at the moment checks against the users own Pubkey, ideally it would be better to prevent any Pubkeys?
Yeah I think we should instead prevent any direct pubkey sends as the
wallet doesn't watch for this type of output.
On Tue, Apr 9, 2019, 7:51 PM Christopher Coverdale notifications@github.com
wrote:
Happy to pick this one up, I've made a WIP PR that at the moment checks
against the users own Pubkey, ideally it would be better to prevent any
Pubkeys?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lightningnetwork/lnd/issues/2920#issuecomment-481513000,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA87LvsAMCsqmCkp1aNGXulIdId9aQLmks5vfVGqgaJpZM4clnuC
.
@Roasbeef awesome, I'll update the PR to prevent any pubkeys as dest
Most helpful comment
FWIW, sending to a plain pubkey _is_ an accepted Bitcoin transaction type. It's actually the very first Bitcoin transaction type.