<gh_stars>1-10
class Mining:
    def __init__(self, node):
        self._node = node

    def getblocktemplate(self, template_request={}):  # 01
        return self._node._rpc.call("getblocktemplate", template_request)

    def getmininginfo(self):  # 02
        return self._node._rpc.call("getmininginfo")

    def getmintinginfo(self):  # 03
        return self._node._rpc.call("getmintinginfo")

    def getnetworkhashps(self, nblocks=120, height=-1):  # 04
        return self._node._rpc.call("getnetworkhashps", nblocks, height)

    def prioritisetransaction(self, txid, fee_delta, dummy=0):  # 05
        return self._node._rpc.call("prioritisetransaction", txid, dummy, fee_delta)

    def submitblock(self, hexdata, dummy="ignored"):  # 06
        return self._node._rpc.call("submitblock", hexdata, dummy)

    def submitheader(self, hexdata):  # 07
        return self._node._rpc.call("submitheader", hexdata)

class Mining:
    def __init__(self, node):
        self._node = node

    def getblocktemplate(self, template_request={}):  # 01
        return self._node._rpc.call("getblocktemplate", template_request)

    def getmininginfo(self):  # 02
        return self._node._rpc.call("getmininginfo")

    def getmintinginfo(self):  # 03
        return self._node._rpc.call("getmintinginfo")

    def getnetworkhashps(self, nblocks=120, height=-1):  # 04
        return self._node._rpc.call("getnetworkhashps", nblocks, height)

    def prioritisetransaction(self, txid, fee_delta, dummy=0):  # 05
        return self._node._rpc.call("prioritisetransaction", txid, dummy, fee_delta)

    def submitblock(self, hexdata, dummy="ignored"):  # 06
        return self._node._rpc.call("submitblock", hexdata, dummy)

    def submitheader(self, hexdata):  # 07
        return self._node._rpc.call("submitheader", hexdata)
# 01 # 02 # 03 # 04 # 05 # 06 # 07