Skip to content
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

Added miner_start and miner_stop methods #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ethjsonrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,22 @@ def shh_getMessages(self, filter_id):
'''
return self._call('shh_getMessages', [filter_id])

def miner_start(self):
'''
undocumented

NEEDS TESTING
'''
return self._call('miner_start')

def miner_stop(self):
'''
undocumented

NEEDS TESTING
'''
return self._call('miner_stop')


class ParityEthJsonRpc(EthJsonRpc):
'''
Expand Down
2 changes: 2 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
'eth_getCompilers',
'eth_newPendingTransactionFilter',
'eth_getWork',
'miner_start',
'miner_stop'
# 'shh_version',
# 'shh_newIdentity',
# 'shh_newGroup',
Expand Down