Post
Topic
Board Altcoin Discussion
Re: *** Official: masterchain.info testing thread
by
grazcoin
on 23/01/2014, 20:32:34 UTC
Is /wallet/send /wallet/pushtx and wallet/* implemented somewhere? I'm unable to locate the server code that handles these POST requests. Thanks Graz

edit with reply from Grazcoin:

Quote
oh. server.py is *very* old code. It was the development server on the
first few days of development (last timestamp early October), and it is
deprecated. I will remove to avoid further mistakes.
I simply use nginx.

The web apps you can find on:
https://github.com/grazcoin/mastercoin-tools/tree/master/apps
currently there are 4 active apps:
/wallet/validateaddr which runs validateaddr.py
/wallet/send which runs send.py
/wallet/sell which runs sell.py
/wallet/accept which runs accept.py

The way to use those apps - check:

for validateaddr:
https://github.com/grazcoin/mastercoin-tools/blob/master/www/sendform.js#L105

for send:
https://github.com/grazcoin/mastercoin-tools/blob/master/www/sendform.js#L268


Graz I'm then wondering, is there no reason to run server.py? Which .py file handles GET requests then?

I repeat: nginx server
http://wiki.nginx.org/Main
it is just a normal web server like apache, only better for high performance, especially for static files like in masterchain.info case, as I am already preparing for the slashdot effect Smiley
it handles GET requests normally

server.py is removed from the repository. It is not even good enough for local development setup.