New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Particl Support #29
Conversation
Rebase? |
Does particl have a running testnet network? (only asking because some alts seem to not bother running one) |
@jrick sure do. |
Seems to work well with the exception of the fee estimation. I noticed that when the estimatefee RPC failed (probably because my node had not been online for 6 blocks) that the contract transaction was created with a low fee. This was accepted on testnet but I imagine it would be rejected on mainnet due to standard checks. For example:
Which is lower than the mempool fee rate policy than I see from getinfo:
The refund and redemption transaction fee estimation appeared to work fine (the fee rate was never lower than 1e3). |
Actually on further inspection, I don't seem to be getting any valid results out of the |
Thanks @jrick for testing this.
Thanks again for the initiative on this and helping to test it. |
After discussion with @dasource, the estimatefee RPC does work but was failing to produce any estimates on testnet due to low transaction activity at the time. I have confirmed that estimatefee does produce results after testnet was spammed with transactions. This should be using estimatesmartfee, not estimatefee. This is being tracked in #32 and I can either update it later or partatomicswap can be the first of the tools to use this RPC. The issues with the contract transaction having a low fee rate is due to the fee being applied by fundrawtransaction. I will need to do more testing against Bitcoin Core's 0.15 branch to see if this applies to all of the non-DCR tools or is a bug with particld. |
I tested against bitcoin core 0.15 and the contract is created with the correct fee, so this does appear to be a bug with particld. I expect contract transactions to be rejected on mainnet due to low fees (but have not tested this, only tested on testnet so far). |
44a93c8
to
9b0f2fb
Compare
This implements the partatomicswap command.
Happy to run some tests with you.
Thank for the great work!