decred / atomicswap

On-chain atomic swaps for Decred and other cryptocurrencies.
https://blog.decred.org/2017/09/20/On-Chain-Atomic-Swaps/
ISC License
507 stars 232 forks source link

participant address is not P2PKH #84

Closed zhouzhou84 closed 6 years ago

zhouzhou84 commented 6 years ago

Description

when I use bitcoin-cli -testnet getnewaddress to get an address 2N5ioPyiLdGDhHDXDwLj3XzeLvfmE156dgc, and use this bitcoin address to do the autoswap,

ubuntu@ip-172-31-15-69:~$ btcatomicswap --testnet --rpcuser=eigen --rpcpass=eigencapital initiate 2N5ioPyiLdGDhHDXDwLj3XzeLvfmE156dgc 1.0
participant address is not P2PKH

what should I do ?

zhouzhou84 commented 6 years ago

I know something ,ubuntu@ip-172-31-15-69:~$ bitcoin-cli -testnet getnewaddress "" "legacy" is ok. The first character of the address must be m or n liken1Sp6GY2CWVy51EHtBoeSNPYHB7zfXoHAd