Bitcoin Forum
May 06, 2024, 07:11:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [46] 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 »
  Print  
Author Topic: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)  (Read 129135 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
January 18, 2014, 09:31:58 AM
Last edit: January 18, 2014, 09:57:12 AM by Tachikoma
 #901

I'm getting this  transaction as invalid
8d47449b082ffe6f6b2adad327591778c43bf984e84062fb1cb13320b47ccbbd

TMSC

Date: 11/10/2013 9:22:18 AM      
Remarks: Sender 16rAwebBXhJAM9ALf3fLFbaHKz24r2o3UN doesn't have 1.337 TMSC. Bal:1.1583 Sale:0.002 Pend:0      

11/8/2013 6:44:20 AM   1NHVAzYT2jQ8roRddYXhvZtiVjuMwuWBGn .1337   6890  
11/7/2013 8:15:22 AM   1NHVAzYT2jQ8roRddYXhvZtiVjuMwuWBGn .808   6866  
11/2/2013 10:15:26 PM   1F73UPD5xBKgTSRd8q6QhuncVmDnJAHxYV .1   6727  
11/2/2013 10:15:22 AM   18xEZx3po1iJWP5H2aM3Do11dCGQyaebnT .2 .003232 6736  
10/28/2013 8:13:38 AM 2.4 1NHVAzYT2jQ8roRddYXhvZtiVjuMwuWBGn     6708  

Yeah the problem is I have been messing with the DEx for two months now and it's really about time I do a full reimport because some of these transactions got imported with the old logic. I will make some time over the weekend to create a development database and see the consensus between the old and new. Until that time please assume you implementation is the correct one Smiley

Grazcoin: Could you take a look at a1b5d7c73e9ec345075eb2357c4dbfced610bdac63808f2f0d05fa431e266795? It appears you are using the change address as recipient for this transaction.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
1714979514
Hero Member
*
Offline Offline

Posts: 1714979514

View Profile Personal Message (Offline)

Ignore
1714979514
Reply with quote  #2

1714979514
Report to moderator
1714979514
Hero Member
*
Offline Offline

Posts: 1714979514

View Profile Personal Message (Offline)

Ignore
1714979514
Reply with quote  #2

1714979514
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714979514
Hero Member
*
Offline Offline

Posts: 1714979514

View Profile Personal Message (Offline)

Ignore
1714979514
Reply with quote  #2

1714979514
Report to moderator
1714979514
Hero Member
*
Offline Offline

Posts: 1714979514

View Profile Personal Message (Offline)

Ignore
1714979514
Reply with quote  #2

1714979514
Report to moderator
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 18, 2014, 10:00:12 AM
 #902

The guys from engine.co found a potential race condition where the user could accidentally create a new sell order when they were trying to change an old one, because the old one had already been bought.

At my suggestion, Marv made this pull request to add a 2-confirmation time limit after a sale is complete before that address can initiate a new sell offer: https://github.com/mastercoin-MSC/spec/pull/38

I'm posting here because not respecting the time limit will lead to consensus divergence, so I want to make sure everybody is aware of it.

Thanks!

Perhaps it's the lack of sleep but I don't like the fact that this has been merged already, up till now everything we did was democratic. Shouldn't we discuss such a major change in the protocol before merging it? I would appreciate it if at least some examples could be given in how this is suppose to work before and after the merge.

I also think this pull request should be open for discussion like any other pull request.
my opinion:
I don't think this solution really solves this race condition, e.g. due to difference in fee amount and inputs complexity of the buy/sell change transactions, the sell offer change can still get merged 2 confirmations later, and then we're in the same race condition state.

Alternative solution would be to keep only the option to cancel the offer (amount zero), and omit the option to change it.
If one wants to make a change, he can first cancel the old offer, and then create a new one.

EDIT: it would be also much easier to implement, and reduce complexity.

Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 18, 2014, 02:04:50 PM
 #903

Updated the Dex engine.

http://www.mymastercoins.com/Orders.aspx?CurrencyID=2
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
January 18, 2014, 02:16:42 PM
 #904

My DEx transactions are getting stuck in a verification loop, don't mind any of my output at the moment.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
ukbitco.in
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
January 18, 2014, 05:07:42 PM
 #905

Hiya,

As things start to heat up (cool!) - it's clear you require help testing - i'd like to be involved. Is there any clear plan or list of tasks that one should accomplish?

Thanks for all the hard work.

jakecnn
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 18, 2014, 06:03:52 PM
Last edit: January 18, 2014, 06:41:21 PM by jakecnn
 #906

Is there a way to speed up the transactions? Or is it usual to have 8 hours until 1st confirmation?
Do many miners reject multisig transaction?

Edit: Nevermind, second transaction was quickly processed.
mastream
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
January 18, 2014, 07:55:32 PM
Last edit: January 18, 2014, 08:25:53 PM by mastream
 #907

Hey guys,

It's great to see so much progress lately on this awesome project.
I'd like to help with testing the DEx, could I get some Test MSC for that?
The Testnet address is mkXFVEDn8rf5L4k9dw1rKBgU1Ceu69rrsn, BTC address is 1B4dzdSTt8p1qfMba4MTPUvABDXDYTHT2S, thanks.
Also, if I try adding the address to the masterchain wallet as described here https://masterchain.info/downloads/masterchain_tutorial.pdf
it just shows me an empty wallet page with no addresses in it after clicking on "Add to wallet". I tried several times with different addresses but it doesn't seem to work for me. I'm using Chrome on Windows 8 if that's important.

I hope I can be of help,
Best wishes
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
January 18, 2014, 08:21:37 PM
 #908

The guys from engine.co found a potential race condition where the user could accidentally create a new sell order when they were trying to change an old one, because the old one had already been bought.

At my suggestion, Marv made this pull request to add a 2-confirmation time limit after a sale is complete before that address can initiate a new sell offer: https://github.com/mastercoin-MSC/spec/pull/38

I'm posting here because not respecting the time limit will lead to consensus divergence, so I want to make sure everybody is aware of it.

Thanks!

Perhaps it's the lack of sleep but I don't like the fact that this has been merged already, up till now everything we did was democratic. Shouldn't we discuss such a major change in the protocol before merging it? I would appreciate it if at least some examples could be given in how this is suppose to work before and after the merge.

I also think this pull request should be open for discussion like any other pull request.
my opinion:
I don't think this solution really solves this race condition, e.g. due to difference in fee amount and inputs complexity of the buy/sell change transactions, the sell offer change can still get merged 2 confirmations later, and then we're in the same race condition state.

Alternative solution would be to keep only the option to cancel the offer (amount zero), and omit the option to change it.
If one wants to make a change, he can first cancel the old offer, and then create a new one.

EDIT: it would be also much easier to implement, and reduce complexity.


My plus 1 for this idea. Separate messages make a lot of sense to me.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
jakecnn
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 18, 2014, 10:13:44 PM
 #909

Masterchain.info/HybridWebWallet:
I'm getting ERROR in the source script field when I prepare a simple send of TMSC or a sell offer. I've verified the address before and got an OK.
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 19, 2014, 08:56:44 AM
 #910

Masterchain.info/HybridWebWallet:
I'm getting ERROR in the source script field when I prepare a simple send of TMSC or a sell offer. I've verified the address before and got an OK.

The exact errors from the server are not yet shown on the html page, and it will be fixed soon (you could still see the server's output that contains the errors with chrome developer tools).
I assume there were no available bitcoin funds on that address ("zero inputs" error), so no valid transaction could be contracted - am I right?
If not, please give me more details of which address/time it was (or simply reproduce the same error), and I could check the logs.


jakecnn
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 19, 2014, 01:36:33 PM
 #911

Yep, zero inputs error, works now. Thanks.
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 19, 2014, 10:10:10 PM
 #912

quote from mastercoin-tools:

Available new docs on http://masterchain.info/downloads

Testing format suggestion (partially done):
https://masterchain.info/downloads/DEx_test_plan.pdf

screenshot:


and icons list (lexicon):
https://masterchain.info/downloads/masterchain_icons_list.pdf

You are welcome to extend this document (pptx files on downloads directory), and fill in tests.
Grazcoin

mastream
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
January 20, 2014, 01:22:15 AM
 #913

@grazcoin looks great, I like your site and would love to participate, but I can't seem to get it to work.
Whenever I try to add an address to the wallet, I end up with an empty wallet with no addresses in it.
jakecnn
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 20, 2014, 01:23:55 AM
 #914

I couldnt get Bitoy's MyMscWallet to work. I get 'Exception thrown:File not found' every time I run the executable.
I've tried it on a 32bit and 64bit system, getting the same problem.
When I update the settings(which seems to work, since the values are persistent), I get the same error twice.
jakecnn
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 20, 2014, 02:22:51 AM
 #915

@grazcoin looks great, I like your site and would love to participate, but I can't seem to get it to work.
Whenever I try to add an address to the wallet, I end up with an empty wallet with no addresses in it.
I think you can only add addresses that received MSC or TMSC.
mastream
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
January 20, 2014, 02:45:41 AM
 #916

@grazcoin looks great, I like your site and would love to participate, but I can't seem to get it to work.
Whenever I try to add an address to the wallet, I end up with an empty wallet with no addresses in it.
I think you can only add addresses that received MSC or TMSC.


thanks, I thought so too but i got the same effect when trying to add an address with MSC in it.

edit:
I see now that I can still try to use the DEx functions and I dont really need to have the address in my wallet.
the effect should be the same, right?
aTriz
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 683


Tontogether | Save Smart & Win Big


View Profile
January 20, 2014, 02:52:56 AM
 #917

I couldnt get Bitoy's MyMscWallet to work. I get 'Exception thrown:File not found' every time I run the executable.
I've tried it on a 32bit and 64bit system, getting the same problem.
When I update the settings(which seems to work, since the values are persistent), I get the same error twice.

Bitoy will be able to help you better but just a few pages back I had issues and found..

-Make sure you have none of you're files in your MyMastercoins folder set to read only! (You can do this by Right Click: Properties and make sure the box is un-checked) (Additionally make sure you have Full Control as an Administrator, you can do this as well by Right Click: Properties: Security make sure you have "Full Control")

Though that shouldn't have anything to do with Exception thrown: File not found.

I had a issue with the main setup.exe so I actually go into the MyMastercoinsTCW_1_0_0_1 folder and run MyMastercoinsTCW (Application).





Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 20, 2014, 06:28:30 AM
 #918

I couldnt get Bitoy's MyMscWallet to work. I get 'Exception thrown:File not found' every time I run the executable.
I've tried it on a 32bit and 64bit system, getting the same problem.
When I update the settings(which seems to work, since the values are persistent), I get the same error twice.

Hi jakecnn

Please post a screen shot of the error to
https://bitcointalk.org/index.php?topic=355739.0

After updating, close then try to restart the program.


(When I post the files directly to github, the setup doesn't work something to do with file checksum.  So I zipped it before sending  to github.)

grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 20, 2014, 07:24:33 AM
 #919

@grazcoin looks great, I like your site and would love to participate, but I can't seem to get it to work.
Whenever I try to add an address to the wallet, I end up with an empty wallet with no addresses in it.
I think you can only add addresses that received MSC or TMSC.

Indeed. For now, a wallet can only have addresses that already received MSC/TMSC.
If you want to work with an address that *doesn't have yet* MSC/TMSC, you should first send MSC/TMSC to that address (using a wallet of an address that does have such coins, and the button send).
Once you have MSC/TMSC on that address, you can add it to a wallet.


grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
January 20, 2014, 07:27:10 AM
 #920

@grazcoin looks great, I like your site and would love to participate, but I can't seem to get it to work.
Whenever I try to add an address to the wallet, I end up with an empty wallet with no addresses in it.
I think you can only add addresses that received MSC or TMSC.


thanks, I thought so too but i got the same effect when trying to add an address with MSC in it.

edit:
I see now that I can still try to use the DEx functions and I dont really need to have the address in my wallet.
the effect should be the same, right?

right.
the wallet is only for convenience - it lists your addresses and balances, and suggest these addresses whenever you click "send here" or "accept". The functionality of DEx (as well as simple send) is identical with and without wallet.


Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [46] 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 »
  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!