Bitcoin Forum
May 27, 2024, 02:37:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 »  All
  Print  
Author Topic: *** Official: masterchain.info testing thread  (Read 2309 times)
romanticon (OP)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 23, 2014, 03:15:58 PM
 #1

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
romanticon (OP)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 23, 2014, 03:18:57 PM
 #2

*** 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
ninjaboon
Legendary
*
Offline Offline

Activity: 2114
Merit: 1002



View Profile WWW
January 23, 2014, 03:36:11 PM
 #3

*** 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

grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 23, 2014, 03:58:56 PM
 #4

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.


romanticon (OP)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 23, 2014, 04:09:53 PM
 #5

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)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 23, 2014, 04:30:12 PM
 #6

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
marcelus
Sr. Member
****
Offline Offline

Activity: 297
Merit: 250


View Profile
January 23, 2014, 05:52:14 PM
 #7

subbed
fthoughts
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
January 23, 2014, 07:12:27 PM
Last edit: January 23, 2014, 07:28:39 PM by fthoughts
 #8

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?
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 23, 2014, 08:32:34 PM
 #9

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.




cmlacy
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 23, 2014, 08:57:16 PM
 #10

@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
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 23, 2014, 11:10:37 PM
 #11

@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:
Code:
        include uwsgi_params;
        uwsgi_param SCRIPT_NAME   $app;
        uwsgi_param UWSGI_MODULE   $app;
        uwsgi_param UWSGI_CALLABLE   "${app}_handler";

and:

Code:
        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
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 24, 2014, 12:13:21 AM
 #12

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)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 24, 2014, 09:05:42 AM
Last edit: January 24, 2014, 12:56:49 PM by romanticon
 #13


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/cb04eab37e2ef5405952b5a3f8f78b84ab74d7a2ed92686c8ee2547a16553e07

Here 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 Offline

Activity: 4
Merit: 0


View Profile
January 24, 2014, 08:35:13 PM
 #14


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)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 26, 2014, 07:20:45 AM
 #15


Now I see it, actually it leads to more painful problem,
check that:

https://www.biteasy.com/blockchain/transactions/cb04eab37e2ef5405952b5a3f8f78b84ab74d7a2ed92686c8ee2547a16553e07

Here 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 ?!


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)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 26, 2014, 07:41:02 AM
 #16

(?) 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:

Code:
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)
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
January 26, 2014, 08:04:22 AM
 #17

(?) 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:

Code:
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
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 26, 2014, 08:37:57 PM
 #18

(?) 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:

Code:
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
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 26, 2014, 08:41:41 PM
 #19

(?) 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:

Code:
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
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 26, 2014, 09:02:35 PM
 #20

The error message should have been "missing pubkey", and not "invalid". Probably the last update introduced this change.

fixed error message.


Pages: [1] 2 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!