Compare commits
No commits in common. "7895442b51fcf06b19785c9280599e877c3d09e0" and "8e35a798649f9220de2199370648cd6dfd31e363" have entirely different histories.
7895442b51
...
8e35a79864
@ -60,12 +60,6 @@ class OnionrRPC(object):
|
||||
@cherrypy.expose
|
||||
def rpc(self):
|
||||
# Dispatcher is dictionary {<method_name>: callable}
|
||||
|
||||
if cherrypy.request.method == 'OPTIONS':
|
||||
cherrypy.response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
cherrypy.response.headers['Access-Control-Allow-Methods'] = 'POST'
|
||||
return ''
|
||||
|
||||
data = cherrypy.request.body.read().decode('utf-8')
|
||||
|
||||
response = JSONRPCResponseManager.handle(data, dispatcher)
|
||||
|
@ -22,3 +22,4 @@ def insert_block(block):
|
||||
gossip_block_queues[queue_to_use].put_nowait(block)
|
||||
return "ok"
|
||||
|
||||
#dispatcher['get_blocks_after_timestamp'] = get_blocks_after_timestamp
|
||||
|
Loading…
Reference in New Issue
Block a user