romanticon (OP)
|
|
January 23, 2014, 03:15:58 PM |
|
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
|
|
|
|
|
ninjaboon
Legendary
Offline
Activity: 2128
Merit: 1002
|
|
January 23, 2014, 03:36:11 PM |
|
same thing happened to me yesterday but I lost the TX ID
|
|
|
|
grazcoin
|
|
January 23, 2014, 03:58:56 PM |
|
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.
|
|
|
|
romanticon (OP)
|
|
January 23, 2014, 04:09:53 PM |
|
Strange... now I get an Error for trying to prepare that tx:
from: 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui ammount: 1 fee: 0.0005 to: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn currency: TMCS
|
|
|
|
romanticon (OP)
|
|
January 23, 2014, 04:30:12 PM |
|
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
|
|
|
|
marcelus
|
|
January 23, 2014, 05:52:14 PM |
|
subbed
|
|
|
|
fthoughts
Newbie
Offline
Activity: 21
Merit: 0
|
|
January 23, 2014, 07:12:27 PM Last edit: January 23, 2014, 07:28:39 PM by fthoughts |
|
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: Graz I'm then wondering, is there no reason to run server.py? Which .py file handles GET requests then?
|
|
|
|
grazcoin
|
|
January 23, 2014, 08:32:34 PM |
|
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: 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/Mainit 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 it handles GET requests normally server.py is removed from the repository. It is not even good enough for local development setup.
|
|
|
|
cmlacy
Newbie
Offline
Activity: 4
Merit: 0
|
|
January 23, 2014, 08:57:16 PM |
|
@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.
|
|
|
|
grazcoin
|
|
January 23, 2014, 11:10:37 PM |
|
@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.
I prefer not to give the the whole file just to keep attackers more challenged ;-) In my current configuration I use mostly the defaults of nginx that come with the package. The integration with the apps could be done in many ways, and I chose uwsgi (you can choose any other method). Maybe it would be easier for you to start with apache which has more documentation for playing with python. The important integration parts are: include uwsgi_params; uwsgi_param SCRIPT_NAME $app; uwsgi_param UWSGI_MODULE $app; uwsgi_param UWSGI_CALLABLE "${app}_handler";
and: location /wallet/validateaddr/ { set $app validateaddr; uwsgi_pass 127.0.0.1:PORT; } location /wallet/send/ { set $app send; uwsgi_pass 127.0.0.1:PORT; } location /wallet/sell/ { set $app sell; uwsgi_pass 127.0.0.1:PORT; } location /wallet/accept/ { set $app accept; uwsgi_pass 127.0.0.1:PORT;
|
|
|
|
grazcoin
|
|
January 24, 2014, 12:13:21 AM |
|
Strange... now I get an Error for trying to prepare that tx:
from: 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui ammount: 1 fee: 0.0005 to: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn currency: TMCS
If you try it now, the error is clear: Not enough bitcoin funds on address
|
|
|
|
romanticon (OP)
|
|
January 24, 2014, 09:05:42 AM Last edit: January 24, 2014, 12:56:49 PM by romanticon |
|
If you try it now, the error is clear: Not enough bitcoin funds on address
Now I see it, actually it leads to more painful problem, check that: https://www.biteasy.com/blockchain/transactions/cb04eab37e2ef5405952b5a3f8f78b84ab74d7a2ed92686c8ee2547a16553e07Here I am trying to send BTC funds from : 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui to: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn both my accounts , but the change goes to some third account which I have no idea who it belongs: 13DuBH2JzdAnMtQsb5SVhaeJhNCmjqhPUj, that's how I lost my funds on that account. Any idea ?!
|
|
|
|
cmlacy
Newbie
Offline
Activity: 4
Merit: 0
|
|
January 24, 2014, 08:35:13 PM |
|
I prefer not to give the the whole file just to keep attackers more challenged ;-)
Nery reasonable. What you posted got me going, though. Thanks!
|
|
|
|
romanticon (OP)
|
|
January 26, 2014, 07:20:45 AM |
|
I figured it out, I didn't know that qt wallet generates a new wallet address each time I should get a change.
|
|
|
|
romanticon (OP)
|
|
January 26, 2014, 07:41:02 AM |
|
(?) Bug - here is one I have to understand: I enter a new address in the text field and press search, there is no notification on the web site , the JS gives that: result: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn btc02.js:264 Object {title: "Masterchain data", tx: "1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn", addr: "sample_addr", currency: "MSC", page: "0000"…} redirect.js:4 ["17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui","13DuBH2JzdAnMtQsb5SVhaeJhNCmjqhPUj","1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn"] btc02.js:210 ["17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui", "13DuBH2JzdAnMtQsb5SVhaeJhNCmjqhPUj", "1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn"] btc02.js:216 0 btc02.js:222 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn btc02.js:223 1 btc02.js:222 13DuBH2JzdAnMtQsb5SVhaeJhNCmjqhPUj btc02.js:223 2 btc02.js:222 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui btc02.js:223 CHanged padding of body btc02.js:188 XHR finished loading: "https://masterchain.info/values.json". angular.js:9312 GET https://masterchain.info/addr/1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn.json 404 (Not Found) angular.js:9312 XHR finished loading: "https://masterchain.info/addr/1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn.json". angular.js:9312 XHR finished loading: "https://masterchain.info/revision.json". angular.js:9312 GET https://masterchain.info/ico/%7B%7Btrans.icon%7D%7D24t.png 404 (Not Found) Address.html?addr=1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn:200 event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery-1.10.1.min.js:5
|
|
|
|
romanticon (OP)
|
|
January 26, 2014, 08:04:22 AM |
|
(?) BUG Another one worth to check : TestMSC - on the 5 page in the list there is a SELL offer I am trying to accept it. in the accept form entering the public key: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn and clicking verify got invalid message and that is the trace: verify function acceptform.js:119 not verified and not ok acceptform.js:499 XHR finished loading: "https://masterchain.info/wallet/validateaddr/". jquery-1.10.1.min.js:6 success acceptform.js:126 Object {error: "missing pubkey"} acceptform.js:127
|
|
|
|
grazcoin
|
|
January 26, 2014, 08:37:57 PM |
|
(?) BUG Another one worth to check : TestMSC - on the 5 page in the list there is a SELL offer I am trying to accept it. in the accept form entering the public key: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn and clicking verify got invalid message and that is the trace: verify function acceptform.js:119 not verified and not ok acceptform.js:499 XHR finished loading: "https://masterchain.info/wallet/validateaddr/". jquery-1.10.1.min.js:6 success acceptform.js:126 Object {error: "missing pubkey"} acceptform.js:127
The error message should have been "missing pubkey", and not "invalid". Probably the last update introduced this change. It means that you have never spent anything using this address, so the blockchain does not have a record of your public key (which is required in order to prepare a raw mastercoin transaction). Note: Address is not a public key. Address is only a hash of the public key. Your options are: Get the public key - using brainwallet.org (if you type there the private key, the public is calculated inside your browser using javascript). or using bitcoind validateaddress, assuming this key is in your wallet Once you have the pubkey, enter it instead of the bitcoin address (the acceptform says "address or public key"). alternative option is to send bitcoins (even to yourself) using that address, so the public key appears on the blockchain, and then the mastercoin wallet could get it.
|
|
|
|
grazcoin
|
|
January 26, 2014, 08:41:41 PM |
|
(?) Bug - here is one I have to understand: I enter a new address in the text field and press search, there is no notification on the web site , the JS gives that: result: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn btc02.js:264 Object {title: "Masterchain data", tx: "1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn", addr: "sample_addr", currency: "MSC", page: "0000"…} redirect.js:4 ["17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui","13DuBH2JzdAnMtQsb5SVhaeJhNCmjqhPUj","1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn"] btc02.js:210 ["17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui", "13DuBH2JzdAnMtQsb5SVhaeJhNCmjqhPUj", "1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn"] btc02.js:216 0 btc02.js:222 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn btc02.js:223 1 btc02.js:222 13DuBH2JzdAnMtQsb5SVhaeJhNCmjqhPUj btc02.js:223 2 btc02.js:222 17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui btc02.js:223 CHanged padding of body btc02.js:188 XHR finished loading: "https://masterchain.info/values.json". angular.js:9312 GET https://masterchain.info/addr/1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn.json 404 (Not Found) angular.js:9312 XHR finished loading: "https://masterchain.info/addr/1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn.json". angular.js:9312 XHR finished loading: "https://masterchain.info/revision.json". angular.js:9312 GET https://masterchain.info/ico/%7B%7Btrans.icon%7D%7D24t.png 404 (Not Found) Address.html?addr=1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn:200 event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery-1.10.1.min.js:5
Currently masterchain.info supports only addresses that have MSC or TMSC on them. This address has only bitcoins, so it is not parsed, and as you could see, there is no information about it. We'll think what to do with such addresses...
|
|
|
|
grazcoin
|
|
January 26, 2014, 09:02:35 PM |
|
The error message should have been "missing pubkey", and not "invalid". Probably the last update introduced this change.
fixed error message.
|
|
|
|
|