decred / atomicswap

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

fixes getFeePerKb function for bitcoind 0.15.99.0 #46

Closed petscheit closed 6 years ago

petscheit commented 6 years ago

Running the bitcoin atomic swaps fails with the latest version of bitcoin core, since getinfo hast been deprecated.

Since btcd/rpcclient/wallet.go hasn't implemented getwalletinfo, request is sent with RawRequest

estimatefess is also deprecated and has been replaced by estimatesmartfee

I've tested the code with a swap, all works.

jrick commented 6 years ago

~Also, the new code will prefer to use estimatesmartfee over whatever the user-set fee in the wallet was, while the old code would use the wallet fee if it had been set. Was that intentional?~

edit: nvm i read that wrong

petscheit commented 6 years ago

The logic should all be the same. Set the txFee manually and it was picked up.