mirror of
https://github.com/monero-project/monero.git
synced 2026-07-03 03:15:08 -07:00
rpc: remove pay-to-use RPC on node side
Co-authored-by: tobtoht <tob@featherwallet.org> Co-authored-by: SNeedlewoods <sneedlewoods_1@protonmail.com>
This commit is contained in:
@@ -612,73 +612,3 @@ class Daemon(object):
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(sync_txpool)
|
||||
|
||||
def rpc_access_info(self, client):
|
||||
rpc_access_info = {
|
||||
'method': 'rpc_access_info',
|
||||
'params': {
|
||||
'client': client,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(rpc_access_info)
|
||||
|
||||
def rpc_access_submit_nonce(self, client, nonce, cookie):
|
||||
rpc_access_submit_nonce = {
|
||||
'method': 'rpc_access_submit_nonce',
|
||||
'params': {
|
||||
'client': client,
|
||||
'nonce': nonce,
|
||||
'cookie': cookie,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(rpc_access_submit_nonce)
|
||||
|
||||
def rpc_access_pay(self, client, paying_for, payment):
|
||||
rpc_access_pay = {
|
||||
'method': 'rpc_access_pay',
|
||||
'params': {
|
||||
'client': client,
|
||||
'paying_for': paying_for,
|
||||
'payment': payment,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(rpc_access_pay)
|
||||
|
||||
def rpc_access_tracking(self, clear = False):
|
||||
rpc_access_tracking = {
|
||||
'method': 'rpc_access_tracking',
|
||||
'params': {
|
||||
'clear': clear,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(rpc_access_tracking)
|
||||
|
||||
def rpc_access_data(self):
|
||||
rpc_access_data = {
|
||||
'method': 'rpc_access_data',
|
||||
'params': {
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(rpc_access_data)
|
||||
|
||||
def rpc_access_account(self, client, delta_balance = 0):
|
||||
rpc_access_account = {
|
||||
'method': 'rpc_access_account',
|
||||
'params': {
|
||||
'client': client,
|
||||
'delta_balance': delta_balance,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(rpc_access_account)
|
||||
|
||||
Reference in New Issue
Block a user