Pages:
Author

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

full member
Activity: 123
Merit: 100
For sending (assuming you do have funds), you can "add to wallet", and then "send" whatever you want to send (MSC/TMSC/BTC).
Before I do the pull request 41 make-over, you will be able to see that send on my site, but will probably not meet the consensus.


Ohh... now I got it, please approve: you have some generated by the browser id
e.g. [ba1b2aaf-eebc-4e13-f305-bcc3c2a0a5ce] and when you do add to wallet on
some address the system associate the address with that random id. right ?


Again: I warn that all DEx transaction might get invalidated, so you will have balance 0 on your address, and then any send will fail due to lack of funds.


Don't wary about me loosing some coins here ,
I am new to the protocol and it's more important
to me to study exactly what you got now,
when it going to change I guess I do my switch
the 10-20 millitbits I am going to lose are not
so critical here.



 Roll Eyes Cool feeling some progress...
Roman



sr. member
Activity: 284
Merit: 250

You should look on the TMSC address:
https://masterchain.info/Address.html?addr=17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui¤cy=TMSC
and you can see there your new purchased coins - with some minor bugs ... which are are on hold, since anyway, we're about to change the protocol, and maybe invalidate all previous sell/accept transactions:
https://github.com/mastercoin-MSC/spec/pull/41



Cool !!! Now following that example two questions:

1) I think we need some click on the website to attach ¤cy=TMSC
to the link don't you agree with me that ordinary user will lose the way here ?

2) Now that I see my wallet what should I click here just to send a TMSC to
my other wallet  ?

Thanks in advance
Roman

Again: I warn that all DEx transaction might get invalidated, so you will have balance 0 on your address, and then any send will fail due to lack of funds.
For sending (assuming you do have funds), you can "add to wallet", and then "send" whatever you want to send (MSC/TMSC/BTC).
Before I do the pull request 41 make-over, you will be able to see that send on my site, but will probably not meet the consensus.

full member
Activity: 123
Merit: 100

You should look on the TMSC address:
https://masterchain.info/Address.html?addr=17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui¤cy=TMSC
and you can see there your new purchased coins - with some minor bugs ... which are are on hold, since anyway, we're about to change the protocol, and maybe invalidate all previous sell/accept transactions:
https://github.com/mastercoin-MSC/spec/pull/41



Cool !!! Now following that example two questions:

1) I think we need some click on the website to attach ¤cy=TMSC
to the link don't you agree with me that ordinary user will lose the way here ?

2) Now that I see my wallet what should I click here just to send a TMSC to
my other wallet  ?

Thanks in advance
Roman
sr. member
Activity: 284
Merit: 250
(Huh) Ok , I have some progress with one wallet
and I was able to create two "ACCEPT SELL" transactions.

https://blockchain.info/tx/304336ce4180468004833eed7ac19778ed60850e25a29d8829439c7bdbbdabab
https://blockchain.info/tx/733ad20c9f178915030738dce2529e1766955cc85a503f72190288a82c564ef9

I see they are already in the chain , so when I am going to
see the result in the wallet ?

https://masterchain.info/Address.html?addr=17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui

Thanks.
Roman.

You should look on the TMSC address:
https://masterchain.info/Address.html?addr=17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui¤cy=TMSC
and you can see there your new purchased coins - with some minor bugs ... which are are on hold, since anyway, we're about to change the protocol, and maybe invalidate all previous sell/accept transactions:
https://github.com/mastercoin-MSC/spec/pull/41

full member
Activity: 123
Merit: 100
(Huh) Ok , I have some progress with one wallet
and I was able to create two "ACCEPT SELL" transactions.

https://blockchain.info/tx/304336ce4180468004833eed7ac19778ed60850e25a29d8829439c7bdbbdabab
https://blockchain.info/tx/733ad20c9f178915030738dce2529e1766955cc85a503f72190288a82c564ef9

I see they are already in the chain , so when I am going to
see the result in the wallet ?

https://masterchain.info/Address.html?addr=17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui

Thanks.
Roman.
full member
Activity: 123
Merit: 100

I have already answered *you* here:




Cool G, I think I will go on with the one wallet
that is recognizable by the system that one:

https://www.biteasy.com/blockchain/addresses/17rExRiMaJGgHPVuYjHL21mEhfzbRPRkui


P.S: I don't actually remember what I have done to connect it.




sr. member
Activity: 284
Merit: 250

Until DEx is available, he can buy MSC for BTC in an exchange (there are some available).


Cool so I am trying to do exactly that, I have some
money here: https://www.biteasy.com/blockchain/addresses/1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn

on masterchain I want to accept that order:

https://masterchain.info/selloffer.html?tx=d2caf8a19b29959e1fe34dc7a499bddb6ee40fd3fb3fa23e4cc00b827e11b818¤cy=TMSC

I click accept, choosing that address 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn ,
than I verify it and get: "no pubkey on blockchain"

What I am missing here ?

I have already answered *you* here:

in the accept form entering the public key: 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn

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.
full member
Activity: 123
Merit: 100

Until DEx is available, he can buy MSC for BTC in an exchange (there are some available).


Cool so I am trying to do exactly that, I have some
money here: https://www.biteasy.com/blockchain/addresses/1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn

on masterchain I want to accept that order:

https://masterchain.info/selloffer.html?tx=d2caf8a19b29959e1fe34dc7a499bddb6ee40fd3fb3fa23e4cc00b827e11b818¤cy=TMSC

I click accept, choosing that address 1CKPYQPiVKMBEHqWco9sNNLNeTCjGSxfrn ,
than I verify it and get: "no pubkey on blockchain"

What I am missing here ?
sr. member
Activity: 284
Merit: 250

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


So I am trying to understand how a completely
new person will start to use the system ?
Should he ask somebody to send him mastercoins ?


Once the DEx is officially available for MSC, a new person should simply accept a sell offer (a.k.a. ACCEPT button), and pay for it (a.k.a. PAY button). All he needs is his private key and some bitcoins fund on it. Then he gets the mastercoins.
Until DEx is available, he can buy MSC for BTC in an exchange (there are some available).
If it is only for TMSC or very small amount of MSC, he could get some from mastercoin faucet.

The moment that there are MSC/TMSC on his address, it will be also available on masterchain.info and the user could add that address to a wallet.

Note: a wallet is only for convenience - to see the funds of all your addresses in one place.
It is not needed for trading or sending. You only need your private key.

full member
Activity: 123
Merit: 100

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


So I am trying to understand how a completely
new person will start to use the system ?
Should he ask somebody to send him mastercoins ?

sr. member
Activity: 284
Merit: 250
The error message should have been "missing pubkey", and not "invalid". Probably the last update introduced this change.

fixed error message.

sr. member
Activity: 284
Merit: 250
(?) 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...


sr. member
Activity: 284
Merit: 250
(?) 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.

full member
Activity: 123
Merit: 100
(?) 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
full member
Activity: 123
Merit: 100
(?) 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
full member
Activity: 123
Merit: 100

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.
newbie
Activity: 4
Merit: 0

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!
full member
Activity: 123
Merit: 100

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 ?!
sr. member
Activity: 284
Merit: 250
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

sr. member
Activity: 284
Merit: 250
@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;

Pages:
Jump to: