I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: Wallets lock after a while

#6671
alexg
Keymaster

OK thanks for checking.

I am really not sure why this happens. As mentioned before, if the time to retain is 0 and the correct passphrase is entered afterwards, it is saved as a WordPress option, so that the plugin can unlock the wallet at any time.

To find the option name, go to the coin adapter’s settings and inspect the wallet passphrase input box. The id and name of the field is the name of the option where the passphrase is saved. For example, for the built-in Bitcoin adapter, the option name is wallets-bitcoin-core-node-settings-rpc-passphrase.

I wonder if something deletes this option in your system. Can you check? Ideally, attempt to check the option value once after first entering the passphrase, and once more after the wallet is locked.

To check via the MySQL console:

SELECT option_name,option_value FROM wp_options WHERE option_name LIKE 'wallets-%-settings-rpc-passphrase';

To check with wp-cli from the linux command line:

wp option get wallets-bitcoin-core-node-settings-rpc-passphrase (substitute with your actual option name)

Apologies for the confusion, but I don’t see any other way to debug this. I am not able to reproduce the problem on my end.

Please let me know if you need any help with inspecting the passphrase option, and also let me know what you find.

with regards