Skip to content

Commit 5b00bd4

Browse files
hjlee9182pipermerriam
authored andcommitted
Change UnlockAccount duration (#1464)
* Change UnlockAccount duration * fixed test * Add geth version
1 parent d753217 commit 5b00bd4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/web3.geth.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,10 @@ The following methods are available on the ``web3.geth.personal`` namespace.
264264
265265
* Delegates to ``personal_unlockAccount`` RPC Method
266266

267-
Unlocks the given ``account`` for ``duration`` seconds. If ``duration`` is
268-
``None`` then the account will remain unlocked indefinitely. Returns
269-
boolean as to whether the account was successfully unlocked.
267+
Unlocks the given ``account`` for ``duration`` seconds. If ``duration`` is
268+
``None`` then the account will remain unlocked for 300 seconds (which is current default by Geth v1.9.5),
269+
if ``duration`` is set to ``0``, the account will remain unlocked indefinitely.
270+
Returns boolean as to whether the account was successfully unlocked.
270271

271272
.. code-block:: python
272273

0 commit comments

Comments
 (0)