Pages:
Author

Topic: *** Official: masterchain.info testing thread - page 3. (Read 2353 times)

newbie
Activity: 4
Merit: 0
@grazcoin, would you be willing to share your nginx.conf file with us?  That might answer a lot of our questions on how all this is tied together.
sr. member
Activity: 284
Merit: 250
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.



newbie
Activity: 21
Merit: 0
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?
sr. member
Activity: 297
Merit: 250
subbed
full member
Activity: 123
Merit: 100
Code:
Object {from_address: "17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui", to_address: "mhkH7j5Q1QNhKfDUqqUsmKyrWCKDCQmhMT", amount: "1", currency: "TMSC", fee: "0.0005"…}
amount: "1"
currency: "TMSC"
fee: "0.0005"
from_address: "17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui"
marker: undefined
to_address: "mhkH7j5Q1QNhKfDUqqUsmKyrWCKDCQmhMT"
__proto__: Object
 sendform.js:258

POST https://masterchain.info/wallet/send/ 502 (Bad Gateway) jquery-1.10.1.min.js:6

XHR finished loading: "https://masterchain.info/wallet/send/". jquery-1.10.1.min.js:6
fail sendform.js:271
full member
Activity: 123
Merit: 100
Strange... now I get an Error for trying to prepare that tx:

from: 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui
ammount: 1
fee: 0.0005
to: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn
currency: TMCS
sr. member
Activity: 284
Merit: 250
I have found that when I trying to send
one TMSC from: 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui
to: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn
I get everything approved and even a tx number for
blockchain.info but the transaction is not
recorder on blockchain.info here is the link:

https://blockchain.info/tx/6d3e64cf9fc759ce1811fd55050cb86efdfbec207186a7c116153188d17997ae

The signing of the tx is done in the browser, so I don't have logs. You could attach the raw tx and the signed tx, and I could check them.
The sending is done currently using blockchain.info/pushtx so I don't have logs from that part either. This will be changed in future versions of masterchain.info.
The tx id that you see is simply a hash of the tx, and if it is either not a valid tx or didn't get to the bitcoin network, it will not be seen on blockchain.info

In order to reproduce the case, I would like to have ALL details you enter or available on the page, including the fee (except for the private key obviously). Anyway all these are public.
A screenshot could sometimes help (e.g. if you write .003 or 0,003 and not 0.003).

Also please let a developer tag an issue as a BUG or something else ;-)

I will try to reproduce this case.

legendary
Activity: 2128
Merit: 1002
*** BUG  ***

I have found that when I trying to send
one TMSC from: 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui
to: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn
I get everything approved and even a tx number for
blockchain.info but the transaction is not
recorder on blockchain.info here is the link:

https://blockchain.info/tx/6d3e64cf9fc759ce1811fd55050cb86efdfbec207186a7c116153188d17997ae

same thing happened to me yesterday but I lost the TX ID
full member
Activity: 123
Merit: 100
*** BUG  ***

I have found that when I trying to send
one TMSC from: 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui
to: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn
I get everything approved and even a tx number for
blockchain.info but the transaction is not
recorder on blockchain.info here is the link:

https://blockchain.info/tx/6d3e64cf9fc759ce1811fd55050cb86efdfbec207186a7c116153188d17997ae
full member
Activity: 123
Merit: 100
Hey I am starting that thread for guys who want to help testing
Mastercoin using masterchain.info. Will be glad to cooperate with
any of you.

Roman
Pages:
Jump to: