Skip to content

Commit

Permalink
Merge pull request #2859 from gurrpi/patch-1
Browse files Browse the repository at this point in the history
Replace method names of mining operation in doc
  • Loading branch information
nivida authored May 30, 2019
2 parents 15bb3a4 + c9d4619 commit e51575a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/web3-eth-miner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ Example
------------------------------------------------------------------------------


start
startMining
=====

.. code-block:: javascript
miner.start(miningThread, [, callback])
miner.startMining(miningThread, [, callback])
Start the CPU mining process with the given number of threads.
The RPC method used is ``miner_start``.
Expand Down Expand Up @@ -180,21 +180,21 @@ Example

.. code-block:: javascript
miner.start('0x1').then(console.log);
miner.startMining('0x1').then(console.log);
> true
miner.start(1).then(console.log);
miner.startMining(1).then(console.log);
> true
------------------------------------------------------------------------------


stop
stopMining
====

.. code-block:: javascript
miner.stop([callback])
miner.stopMining([callback])
Stop the CPU mining process.
The RPC method used is ``miner_stop``.
Expand Down Expand Up @@ -222,7 +222,7 @@ Example

.. code-block:: javascript
miner.stop().then(console.log);
miner.stopMining().then(console.log);
> true
------------------------------------------------------------------------------

0 comments on commit e51575a

Please sign in to comment.