atomicswap
atomicswap copied to clipboard
In README, links to Bitcoin testnet explorer were updated
The links for Decred (testnet) are still not working, because non of the block explorers I know about could find those transactions.
The Bitcoin links were not working, because blocktrail.com ceased operations.
The examples were done on testnet2 and decred is currently on testnet3, so they need to be entirely redone.
I tried to recreate the transactions.
After I run ./bitcoin-cli -testnet getnewaddress
./btcatomicswap --testnet --rpcuser=user --rpcpass=AtomicSwap1234 initiate 2N8S4gAgJSY8G9fMmRoR2hoNprgRFWRFcT2 0.001
will result:
participant address is not P2PKH
I tried to create a SegWit compatible address in Bitcoin-qt, that also didn't work.
tb1q3nw54nyj44eewnkswv2jtqhqrl7rpr2t7tqmm5
I'm still trying to figure this out, if I will have a solution I will post it here.
You need to generate p2pkh addresses (aka legacy). getnewaddress should let you specify the kind.
OK, it works.
bitcoin-cli -testnet getnewaddress random_comment legacy
will work
signrawtransaction: -32: signrawtransaction was removed in v0.18. Clients should transition to using signrawtransactionwithkey and signrawtransactionwithwallet
I will create an issue with the above mentioned problem.
UPDATE: there is already a pull request for that. https://github.com/decred/atomicswap/pull/109