Forum Replies Created

Viewing 15 replies - 241 through 255 (of 492 total)
  • Plugin Author dashed-slug.net

    (@dashedslug)

    @clickforafrica To clarify, there is only a .conf file in full nodes, not when using the CoinPayments adapter. When using the CoinPayments coin adapter, if you are not getting deposits registered in the plugin, see the troubleshooting section on https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/coinpayments-adapter-extension/

    @eotwallet This is very strange. The wallet should be calling this URI several times, once for every time the confirmation count of a transaction changes. For each one transaction, the plugin will be notified many times, possibly hundreds of times. Even if a few calls fail due to networking issues, others should succeed. Can you check to see that the curl command succeeds when run from your server where the wallet is? For testing purposes you could try redirecting to a file rather than /dev/null. For example:

    walletnotify=curl -v https://www.eotwallet.com/wallets/api2/notify/EOT/wallet/%s >~/walletnotify.log

    Note the -s (silent) is substituted by -v (verbose).

    Your file ~/walletnotify.log will then tell you if the calls succeed or if there is a problem.

    Additionally, you could pull all the transactions that have ever been relevant to your wallet. For Bitcoin, to get the last 100000 TXIDs, excluding duplicates, you would do:

    bitcoin-cli listtransactions "*" 100000 | grep txid | cut -d'"' -f4

    Once you verify that your command actually returns a list of TXIDs, to pass all of these to curl, you could do something like:

    bitcoin-cli listtransactions "*" 100000 | grep txid | cut -d'"' -f4 | uniq | xargs -I %s curl -v https://www.eotwallet.com/wallets/api2/notify/EOT/wallet/%s

    Remember to substitute bitcoin-cli with the name of your wallet CLI.

    Transactions that are already known will not be duplicated but the ones that are not known will be inserted to the DB.

    Hope this helps.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    Have you set up a -walletnotify mechanism to notify the plugin on all incoming deposits? Or are you relying on the cron mechanism for transaction discovery?

    The cron mechanism is OK in most cases, but as you have a large number of transactions on your site it is possible that some deposits get lost. The cron mechanism relies on calls such as listtransactions and these calls only return the last few transactions. If you set up the -walletnotify mechanism then no transaction will be lost.

    Can you please do the following for me?

    1. Find the TXID for a transaction that is missing.

    2. Do the following call, either from your browser or from curl:

    https://www.eotwallet.com/wallets/api2/notify/EOT/wallet/TXID

    The above assumes that your coin symbol is EOT and you should replace TXID with the actual ID.

    This will force the wallet to look at this transaction, and if its destination includes a user deposit address it will write a deposit transaction in the database.

    Hit this URL and let me know what you got back as a result and if the deposit was discovered.

    For this to happen automatically for every transaction, you should enter the following in your wallet’s .conf file, as initially instructed by the adapter:

    walletnotify=curl -s https://www.eotwallet.com/wallets/api2/notify/EOT/wallet/%s >/dev/null

    You will need to restart your wallet after adding this to your .conf file.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello Arne,

    Thank you for your feedback.

    Your request has now been addressed in 3.5.1. Please see the relevant blog post and the documentation.

    The documentation includes a complete example of how you would go about to set the default currency.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello Arne,

    This is not possible because the selected coin does not correspond 1-to-1 with any particular shortcode or UI. The selected coin is a setting that applies throughout the entire page and all its UIs.

    What you can do however, is to set the currently selected coin with JavaScript. For example, to set the selected coin to be Litecoin (assuming Litecoin is enabled on your site) you would call:

    wp.wallets.viewModels.wallets.selectedCoin('LTC')

    Unfortunately if you attach this to the document ready event it might not work, as the coin data might not have been loaded yet. I will add some kind of callback mechanism in the next release so that things like this will be possible. Something like a “wallets ready” event that you can attach JavaScript to.

    I will let you know here once this is done.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    OK, turns out that this was caused by a bug that had remain undetected.

    Please see https://www.dashed-slug.net/security-update-required-3-4-2/

    You will continue to see the SQL warnings that you reported before. The double send error should not occur again.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thanks for providing this info.

    The logs that you report are actually normal, see my earlier post here: https://ww.wp.xz.cn/support/topic/wordpress-database-error-125/page/2/#post-10339171

    The problem you report might actually be caused by a bug in the code that occurs only in rare situations, but since you have high traffic you observed this.

    There were no changes in 3.4.1 that are related to this. I am still testing and will hopefully release a patch later today if my suspicions are confirmed.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    This is not normally possible. The transactions are first marked as done and then this is rolled back only in case there is an error coming from the wallet. See here: https://github.com/dashed-slug/wallets/blob/3.4.1/includes/transactions.php#L449-L503

    Please tell me the following:

    1. Which adapter are you using? Is it an RPC wallet?

    2. Which version of the plugin are you using?

    3. Do the two transactions you see have different TXIDs? If so, do you see the first or the second TXID in the plugin’s transactions list?

    4. Did you withdraw via the [wallets_withdraw] shortcode or via the cold storage feature?

    5. If possible, can you check for any other errors in your server logs at the time the withdrawals were performed? Did your web server or database crash near that time?

    Please let me know. Thanks.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thank you for noticing this bug.

    It is now fixed in version 3.4.1.

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    Thanks to recent changes to the fixer.io service, Naira (NGN) is now supported.

    You must first update to Bitcoin and Altcoin Wallets 3.4.0 and provide an API key to the fixer service.

    More information here: https://www.dashed-slug.net/fixer-api-key/

    regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    Since you were unable to uninstall the plugin and had to delete the files to regain control, it is to be expected that all of the settings remain. I have never attempted installation on a Windows machine, but you should start by checking the troubleshooting section of the manual under “When I activate the plugin, my WordPress becomes extremely slow and is unusable.”. Most likely this is due to some firewall. Firewalls are notorious for causing timeouts rather than errors and therefore can cause the site to become unusable. If you get some other error on the screen then please report it here.

    To delete all of the plugin’s settings manually you could first backup your database and then hit the following on your MySQL console:

    DELETE FROM wp_options WHERE option_name LIKE 'wallets%';

    Make sure to replace wp_ with your actual DB prefix if it is different.

    You can then reinstall the plugin and give it another go.

    Do let me know if you see any errors on your screen or logs. By the way, you should be able to check your log file, even if your WordPress installation is unresponsive.

    kind regards
    Alex

    Plugin Author dashed-slug.net

    (@dashedslug)

    Yes, mysqldump is your friend.

    Perhaps you can also take some ideas from this post on my personal blog: https://www.alexgeorgiou.gr/poor-mans-guide-backup-wordpress-droplets/

    Plugin Author dashed-slug.net

    (@dashedslug)

    OK thanks for keeping me in the loop.

    Increasing the connections sounds like a good idea even if it did not solve your problem on its own. In fact this whole problem sounds like a matter of scaling your infrastructure, and is a DBA task. If you can point to some error that the plugin produces as you did before, then I can help you with that.

    If I were you I would very carefully read the server logs, including the mysql logs, the webserver logs and the wordpress logs around the time when the site start failing.

    If you need to exclude some lines from your logs you can use grep -v and pipes to remove some patterns that repeat frequently. Hopefully the real error will stand out and you will be able to know what to do to scale the services.

    For example to remove lines that have foo or bar in them I would do the following on my setup:

    tail -f /var/log/nginx/access.log /var/log/mysql/{mysql,error}.log /var/www/wordpress/wp-content/debug.log | fgrep -v foo | fgrep -v bar

    This would let me observe all the services for any errors in real time but without having the screen cluttered with irrelevant messages. Your log paths may vary.

    Keep in mind that the plugin’s frontend hits the webserver (and therefore the database) pretty hard due to the polling feature. One idea would be to disable polling. This would cause the frontend to not update automatically. See AdminWalletsFrontend settingsLive polling settings. Set the two polling intervals to 0 (disable) and also disable loading when page becomes visible. That should reduce the load on your server by a lot.

    If you do find any other error in the logs, please share it with me.

    best of luck!

    kind regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello Arne,

    1. To iterate through all the adapters that are online you should use this filter: https://wallets-phpdoc.dashed-slug.net/classes/Dashed_Slug_Wallets_PHP_API.html#method_api_adapters_filter

    2. Indeed I had tested with all the coins but then CoinPayments added a bunch more coins and it’s hard for me to keep up with all the other things I do. If you notice that one coin does not work, simply disable it and let me know. Thanks!

    3. This is because there is some error in your code and the error message spills into your JSON API responses. Either set define( 'WP_DEBUG_DISPLAY', false ); or better yet resolve the error. I would recommend that you do both.

    3. There are multiple options but I have not yet had time to review them. Not any exchange can be used as a cloud wallet. You need an API where you can assign labels to addresses so that you can keep track of who deposits what.

    Hope this helps.

    P.S. I am not sure how you can remove your posts here, but you can edit them for some limited time. If you had used the forums on dashed-slug.net I could delete them for you 🙂 You might have to contact the admins of ww.wp.xz.cn. You probably have the right to have your own posts deleted and they might be willing to help you.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello Andy,

    If you lose the transactions then the balance will still be on the site’s wallet but will not belong to any users.

    You can protect yourself from this by backing up your database regularly. There is also a feature that lets you export the transactions to csv files, you can test it before disaster strikes.

    The coin adapters are designed to re-discover the latest few deposit transactions even if they are lost in the database, but you cannot rely on this to rediscover all the transactions from the beginning of time, and internal transactions cannot be re-discovered. Hence the need to keep backups.

    Think about it this way: Blockchains are the distributed, fault tolerant solution to centralized databases. Whenever you perform transactions in the plugin,
    you record transactions in a centralized database and therefore you lose the benefits of blockchains, i.e. fault-tolerance, decentralization, etc. But you gain control on your website. You are therefore responsible to maintain that database until the funds are again withdrawn from your site. It’s a trade-off.

    Hope this answers your question.

    kind regards
    Alex

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello Arne,

    1. The first error you get is to be expected. I do not see EOS in the current list of supported coins in CoinPayments. The supported coins are listed here https://www.coinpayments.net/supported-coins

    2. The “Too many errors… please fix your code” error is a generic error coming from the CoinPayments platform. They rate-limit invalid API calls to encourage people to write less buggy code. One instance where this error would show up would be if you have entered invalid credentials, but if the adapter already works for some coins, then it is probably something else. Another instance where I saw that error in the past was with the NVO (NVST) token, where the platform refused to give a deposit address, so I had to disable that coin. It is also possible that this error is caused because you are repeatedly requesting an EOS deposit address, and that impacts later API calls.

    Stop calling EOS, disable the plugin, leave it to rest for two minutes, then enable it again, and observe the first error you get in your logs. This will be a more meaningful error and we can have a look at why it occurs once we know what it is. If a particular coin is causing the problem, you should attempt to disable it and see if it fixes the problem.

    3. To answer the other point you addressed, I do have plans to create an IOTA adapter for the Trinity wallet in the future. This cannot be any time soon as I am way too busy. Currently I have no plans to support the other coins you listed, but that is not to say that another developer cannot provide coin adapters for them. All the necessary technical info is in the documentation.

    So please let me know if you find out what the error is.

    kind regards
    Alex

    P.S. If in the future you have any further questions about the CoinPayments adapter extension, please note that the support forum for it is at https://www.dashed-slug.net/forums/forum/coinpayments-net-coin-adapter-extension-support/ This forum is for the parent plugin that is hosted here on ww.wp.xz.cn.

Viewing 15 replies - 241 through 255 (of 492 total)