atomicswap icon indicating copy to clipboard operation
atomicswap copied to clipboard

In README, links to Bitcoin testnet explorer were updated

Open imestin opened this issue 5 years ago • 7 comments

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.

imestin avatar Jul 11 '19 17:07 imestin

The examples were done on testnet2 and decred is currently on testnet3, so they need to be entirely redone.

jrick avatar Jul 11 '19 18:07 jrick

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

imestin avatar Jul 12 '19 20:07 imestin

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.

imestin avatar Jul 13 '19 12:07 imestin

You need to generate p2pkh addresses (aka legacy). getnewaddress should let you specify the kind.

jrick avatar Jul 15 '19 13:07 jrick

OK, it works.

bitcoin-cli -testnet getnewaddress random_comment legacy will work

imestin avatar Jul 16 '19 09:07 imestin

signrawtransaction: -32: signrawtransaction was removed in v0.18. Clients should transition to using signrawtransactionwithkey and signrawtransactionwithwallet

imestin avatar Jul 16 '19 11:07 imestin

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

imestin avatar Jul 16 '19 11:07 imestin