def getmininginfo(self):
     """
     Returns an :class:`~bitcoinrpc.data.MiningInfo` object containing various
     mining state info.
     """
     try:
         return MiningInfo(**self.proxy.getmininginfo())
     except JSONRPCException as e:
         raise _wrap_exception(e.error)
예제 #2
0
 def getmininginfo(self):
     """
     Returns an :class:`~bitcoinrpc.data.MiningInfo` object containing various
     mining state info.
     """
     return MiningInfo(**self.proxy.getmininginfo())