Bitcoin Forum
June 26, 2024, 01:10:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
41  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 23, 2014, 04:36:48 PM
this transaction is not yet confirmed in blockchain.org (0 confirmation)
https://blockchain.info/tx/4db98b7d610ed1b7170c7c8e3cd165298801e098e12314004b4d1f25676cc06f


But is already in MasterChain (and MasterChest)
https://masterchain.info/btcpayment.html?tx=4db98b7d610ed1b7170c7c8e3cd165298801e098e12314004b4d1f25676cc06f&currency=MSC


42  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 15, 2014, 12:59:31 AM
Grazcoin,

Please take a look at
1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb


We are in consensus before I sent a Cancel Sell Offer.
MM=46.63879623 1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb MCHAIN=47.72567223


Difference 1.086876


Was there a change in your code (ie invalidating some transactions discussed earlier)?
43  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 14, 2014, 01:52:23 PM

Hi Zathras,

Sorry, but I couldn't join at that time.
Although I think for protocol beauty reasons, there shouldn't be rules against buying from specific addresses ("self address"), I don't mind adding this rule if it takes us in a smoother way closer to consensus. It doesn't have any affect of balance consensus - only on transaction consensus.
I do insist on the option to send coins to one self - as I think it is important (having in mind a 3rd level protocol on top of mastercoin one day - but I think you support send to self anyway).

So bottom line:
If you see that it makes your life much easier, I'll code the change and request mymastercoin to follow.



Send to self works well in bitcoins because it consolidates the coins into one transaction. Which will save space next time you send.   

In mastercoin there is no small change coins.   But we already allowed sending to ones address so it's ok now.

 Please  advise the changes to that I can update the codes.

(Ps Busy preparing for vacation will update it soon as I get back Smiley
44  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 14, 2014, 01:45:16 PM

http://mymastercoins.com/viewaddresstrans.aspx?address=182osbPxCo88oaSX4ReJwUr9uAcchmJVaL

Although in same block 289755 the payment came first before the purchase offer 9ecd.  I didn't consider the block number only the order.

42f470   3/9/2014 8:43:46 PM   289755   Valid   Payment: 0.0005 btc for 0.005 TMSC
36ef61   3/9/2014 8:43:46 PM   289755   Valid   Payment: 0.001 btc for 0.01 TMSC
df3b38   3/9/2014 8:43:46 PM   289755   Valid   Payment: 0.002 btc for 0.01 TMSC
9ecd7a   3/9/2014 8:43:46 PM   289755   Valid   Purchase Offer: 0.05 TMSC


Graz/Bitoy,

Closing in on consensus - but I think you guys have a problem in the way you're handling the blocking of simultaneous accepts from the same buyer.

You guys have accept 9ecd7a40eba06ea554fa42dadca1c4c94dc301040d656484a85c45d68d80963a as valid.

However that accept above was in block 289755.  

All the payments for the previous accept took place in block 289755.

As all the payments took place in block 289755 the previous accept is thus closed in block 289755.  A new accept should not be allowed until the next block, 289756 - otherwise we are encouraging new accepts while payments are still unconfirmed (which means we then need to go to checking whether the payments occurred 'earlier in the block' than the new accept etc)

Therefore accept 9ecd7a40eba06ea554fa42dadca1c4c94dc301040d656484a85c45d68d80963a should be invalid as its in the same block as the payments for the previous accept.

Thanks
Zathras
45  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 12, 2014, 10:06:58 AM
Ok.  So we are invalidating only "concurrent accept".


Invalid Purchase offer transactions due to minimum miners fee not reached.

b9a870a6c1bc12c954b1b01fbdb86a8f71aa8c31ff77624dd8b58f84ef21bbfb     
b31a720e9b8ede0b6aa0c3b10ed1a7274b257d489f81e11470499281cb0402d7     
61d922eb409fcd932798cb519f97ba65de18099c501b324ae86b4658530da92b     
f6bb04e866fcf7a267f1af5659a7350a87b2c132ee1253757846c5be0b455a42     
8a8c2e7fe253fe8635d34ecc71510955d3a344546410db6961b35cd51809d3ea     
77702fd6333eb5a67fa03b6fdb0fda04981bd671fd2a9175e2bee43340770940

minimal fee enforcement fixed:
https://github.com/grazcoin/mastercoin-tools/commit/cad5aca3e371a6efa11196e2ddbcd694eb49ab3a
example:
https://masterchain.info/sellaccept.html?tx=61d922eb409fcd932798cb519f97ba65de18099c501b324ae86b4658530da92b&currency=TMSC

invalidate concurrent accepts from the same address:
https://github.com/grazcoin/mastercoin-tools/commit/08b46cc77e17b8813d3c5e5c357ffd4f557612c6
example:
https://masterchain.info/sellaccept.html?tx=263b7c420b2456b3f04eea4d92ddf35b95703859173a321c9fdeb71e6c1f5328&currency=TMSC

take care - once an accept offer expires or gets paid, a user can create a new one as there is no "concurrent accept" any more. I wouldn't like to prevent a user from buying at a later stage (e.g. long term sell offers that may run for years should let people buy more than once).
example for a valid accept after the previous is "done" (got fully paid):
https://masterchain.info/sellaccept.html?tx=9ecd7a40eba06ea554fa42dadca1c4c94dc301040d656484a85c45d68d80963a&currency=TMSC

Grazcoin

46  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 12, 2014, 06:58:36 AM
Is this transaction invalid ?
a7120ed05e1b42f48fec59d0a3b56202d15a0bb8272653f995ac584f16e67c09


What happened is Buyer 1G3P5bws8wRVrVfKWxv8F85pRjs9qXyyA6 placed a
 
Purchase offer 0.002
6ea30cd210ae4521c58d026114f16ef4e63c86d9550de5dba72f588f789aa69c
for Sell Offer
8b2deeb03c2590bbc6698ab3d663eb920e8bb7e89437a7984a54b8d0154d6741


Paid for 0.002

Tried to Purchase again 0.007 from the same Sell Offer
8b2deeb03c2590bbc6698ab3d663eb920e8bb7e89437a7984a54b8d0154d6741
47  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 12, 2014, 12:13:42 AM
1. Ok will enforce the req minimum fees require for purchase accept.

2.  I think it should be.   A buyer can place only one purchase offer transaction on any sell offer transaction.


We had a productive meeting today, and Craig and I were able to make some decisions regarding the last remaining consensus issues:

1) Minimum fees must be respected, as has been in the spec since the beginning. I believe Bitoy and Grazcoin both need to make this change. Without this change, someone can shut down the whole dEX with spam transactions. The fix is simple: if someone tries to accept coins without paying the minimum fee, invalidate that transaction.


2) We're going to have to disable multiple accept offers. This was a harder decision to make, but it boils down to reducing complexity. Also, since graz and bitoy both need to make the minimum fee change, we can't keep the parsing libraries static. This should also be a simple fix: only one accept offer from a buyer to a seller. Additional accept offers are invalid.

3) Zathras is going to have to drop his change to respect packet sequence numbers in class B transactions. We simply can't afford the time, and we believe we can rely on the order of outputs not changing in the transaction, so sequence numbers are probably redundant for class B transactions. If we do packets out-of-sequence someday, we'll have to change the version number of all transaction types.

Sorry that further changes must be made, but we needed to choose a direction and stick with it. Both Craig and I are committed to this direction, and I'll be updating the spec to reflect #2 and #3.

Thanks guys!

 
48  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 11, 2014, 11:54:42 PM
I'm using blockchain

047992ccb171ca59d39432dc93eba2301188b68ead661dd9fdfe3dda47e2f27ebfff9a0a069d4cb 3851ce19fe5be7ea1b772ee4b678e3bdcc7769713cd675e14c7   Senders Public

021bf733f7beb3932563cd8e8a3ec13fb22047f0694a0b6e8a2ad08e63bba57cbb   This is packet 2?

026c3fe6ffe4fdf222b80142d95c275753e49587546ef02c40e3e06ee449b27109  Packet 1


The important thing in the spec is the packets must be in order.

Ex. Valid
Packet 1
Packet 2
Junk
Packet 3

Ex. Invalid.  It can't be jumbled

Packet 1
Packet 3
Junk
Packet 2


first mastercoin packet
Second mastercoin packet (if required)
Senders  public key

You probably mean:

Sender's pubKey
Mastercoin data-package #1
Mastercoin data-package #2

^ this is the order of almost all transactions that were made in the past.


Given that DEX starts in a few days, I tend to agree with Bitoy, should probably locked into the stec temporarily. But solving this should stay high priority, the more packages there are, the less trivial is the solution. With four packages (e.g. the smart propertie stuff), it's already 24 combinations, with 5 packages it's 120. If a brute force approach is used.

dexX7 is right.
Example sell offer is:
https://masterchain.info/selloffer.html?tx=ccc6c0ed758c42a950b1f54956d74db0a84783908fe41427a540b1221f5887e5&currency=TMSC
The BIP11 part is:
"script": "1 [ 047992ccb171ca59d39432dc93eba2301188b68ead661dd9fdfe3dda47e2f27ebfff9a0a069d4cb 3851ce19fe5be7ea1b772ee4b678e3bdcc7769713cd675e14c7 ] [ 021bf733f7beb3932563cd8e8a3ec13fb22047f0694a0b6e8a2ad08e63bba57cbb ] [ 026c3fe6ffe4fdf222b80142d95c275753e49587546ef02c40e3e06ee449b27109 ] 3 checkmultisig",
Which is:

Sender's pubKey
Mastercoin data-package #1
Mastercoin data-package #2

note that if you look at the transaction on blockchain.info, the order of pubkeys inside the BIP11 looks opposite:
https://blockchain.info/tx/ccc6c0ed758c42a950b1f54956d74db0a84783908fe41427a540b1221f5887e5


49  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 11, 2014, 10:49:57 AM
Can we just change the specs ie

For multisig transaction the following order is followed

 first mastercoin packet
Second mastercoin packet (if required)
Senders  public key

Please don't introduce another peak and decode for multisig.

If  mymastercoins can't find a transaction type it will assume it is a payment and try to look for a purchase offer.

Dexx got me thinking about packet ordering, and as we all know it's the sequence numbers that determine the order.  The order of outputs or keys within multisig outputs is not mandated by the spec, only that we grab all the public keys and order them by sequence number.

So for the first test, a simple send where the multisig still has the correct public keys and sequence number, it's just that the master protocol packet public key is before the senders public key in the multisig instead of the other way around.

MyMastercoins decodes it as an unmatched purchase (http://www.mymastercoins.com/default.aspx?TXID=1ce1e44f40da1f7eddca5f81d72d76a005f8f45b83ee1f9b07ca901f3e6ec235)
Masterchain declares it invalid based on unknown transaction type (5cc2) (https://masterchain.info/simplesend.html?tx=1ce1e44f40da1f7eddca5f81d72d76a005f8f45b83ee1f9b07ca901f3e6ec235&currency=TMSC)
Masterchest (after a bugfix) now decodes it correctly (https://masterchest.info/lookuptx.aspx?txid=1ce1e44f40da1f7eddca5f81d72d76a005f8f45b83ee1f9b07ca901f3e6ec235)

Next up I'm going to simulate a sell offer because it spans multiple packets, with the public key order in the multisig of [sender],[packetseqnum2],[packetseqnum1] which will again be a perfectly valid transaction, but will test each implementations ability to deal with ordering packets properly.

Thanks Smiley
Zathras

50  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 11, 2014, 02:01:37 AM

To be honest perhaps I'm misunderstanding your point, but if a user accepts 100 MSC across these multiple accepts and then fully pays for them within the time limit (including across multiple bitcoin payments) there is no reasonable compromise where the user only receives 70 MSC.

I do understand the complexity argument, but surely if we're talking about multiple accepts we should either do it right or not at all - even if doing it right increases complexity.  As I've mentioned before multiple accepts would be a problem for me - and I see no real prudence to implementing them in the structure described.

If we are to do multiple accepts, surely something like the sum of bitcoin payments within the various timelimits would need to be taken and applied to the accept offers (in blockchain order) incrementally at each respective unit price as each one is fully paid or something along those lines - sorry this is a new concept for me so haven't thought it through thoroughly.  My own view is that if I somehow need to code for multiple accepts, it has to be in a way that if a user accepts X and pays for X within the timelimit, then they receive X.

Thanks
Zathras


I've always thought that the system allows multiple transaction accepts.

Ex.  
Alice sell offer 100 tmsc for 1 btc
Bob sell offer 50 tmsc for .6 btc
Charles accepts 40  from Alice
Deb accepts 100 from Alice but gets only 60 (bec. Charles got it first )
Deb accepts 40 from Bob (because she wants 100 and got only 60)


So Deb has 2 transaction accepts.  

In grazcoins example it just happens that the buyer accepted 2 transaction from the same sell offer.   But we should treat it as regular multiple accept.

51  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 10, 2014, 11:52:58 AM
65b106   2/25/2014 9:38:36 PM   287806   Valid   Update Offer to Sell: 0.05 TMSC for 0.0006 btc
8e12e8   3/9/2014 8:17:42 PM   289750   Valid   Purchase Offer: 0.025 TMSC
263b7c   3/9/2014 8:17:42 PM   289750   Valid   Purchase Offer: 0.04 TMSC
42f470   3/9/2014 8:43:46 PM   289755   Valid   Payment: 0.0005 btc for 0.005 TMSC
36ef61   3/9/2014 8:43:46 PM   289755   Valid   Payment: 0.001 btc for 0.01 TMSC
df3b38   3/9/2014 8:43:46 PM   289755   Valid   Payment: 0.002 btc for 0.01 TMSC
9ecd7a   3/9/2014 8:43:46 PM   289755   Valid   Purchase Offer: 0.05 TMSC
5eea7f   3/9/2014 9:04:14 PM   289757   Valid   Payment: 0.003 btc for 0.03 TMSC
8c61c5   3/9/2014 9:11:50 PM   289761   Valid   Payment: 0.005 btc for 0.01 TMSC

8c61c5 is an overpayment of  purchase 263b7c

( reserved: 0.173 ( 0.123 + 0.05 ) TMSC available)
52  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 10, 2014, 11:44:05 AM
At this point, there is the 3rd 0.05 accept still open (for 100 blocks) which requires reserve of 0.35 TMSC (as only 0.35 of the 0.5 were actually available at the time of the accept), and there is the new sell offer of 0.123 TMSC, so a total reserve of 0.158 should be kept, leaving available balance of 0.477111 TMSC.

Masterchain -PASSED- (balance: 0.477111 TMSC, reserved: 0.158 TMSC)
Masterchest -FAILED- (balance: 0.462111 TMSC, reserved: 0.0 TMSC)
MyMastercoins -FAILED- (balance: 0.512111 TMSC, reserved: 0.123 TMSC -- you're mixing MSC and TMSC here somehow, I think)

I think mymastercoins just didn't reserve funds for the running accept from the older sell offer - only reserved the 0.123 of the new offer.
But it is fixed now, isn't it (or the accept simply expired?)



Yes MM didn't reserve the funds for the .5 tmsc reserve.  I've fixed this in the test server.  Will update it within the day.
53  Alternate cryptocurrencies / Altcoin Discussion / Re: MyMastercoins Wallet on: March 09, 2014, 02:21:44 PM
Please try this direct download.
http://www.mymastercoins.com/Wallet/MyMastercoinsWallet20201.zip

Instead of using SQL 2008.  DB now uses LocalDB

ConnectString is

Data Source=(LocalDB)\v11.0;AttachDbFilename="|DataDirectory|\MyMastercoins.MDF";Integrated Security=True

54  Alternate cryptocurrencies / Altcoin Discussion / Re: MyMastercoins Wallet on: March 09, 2014, 12:48:26 PM
You need to unzip to a folder ex c:\temp then run c:\temp\setup.exe

Most systems cant run SQL 2008.  I'll upgrade the installer and use a new local db.

You can add any address but it is for viewing only.

Quote

COMPONENT STORE TRANSACTION DETAILS
   No transaction information is available.

My solution: extract the installation to c:\tmp\aaa and run it from there.

1. Why does it matter where I run the installer from?

My next question:
2. Why does setup.exe run the wallet, rather than _install_ it?

3. I'm getting connection times to SQL (exception stacktrace)

Also I'm getting this screen:



4. I seem to be able to add any address I want, without verification for it being a valid BTC/MSC address.

[/quote]
55  Alternate cryptocurrencies / Altcoin Discussion / Re: MyMastercoins Wallet on: March 08, 2014, 09:14:39 AM
I believe I did try that version yesterday.
Now when I try to download from your link, I somehow download a zip file with zero size from github.

I am not able to download the right file. Can you upload it to Dropbox or something?

Please try this direct download.
http://www.mymastercoins.com/Wallet/MyMastercoinsWallet20200.zip

Tested it in Windows 7 with Bitcoin Client 0.8.6

56  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 08, 2014, 05:46:11 AM
I've looked over the consensus posts, and it appears that you guys are quickly converging: Graz is going to allow multiple payments, and then we just have to make sure we all round stuff the same way. Also, we need to determine the unit price from the initial sell order and remember it forever.

Everybody please make sure your code is ready to take a block number for the switchover to allow real MSC trading on 3/15! We'll choose the block number once that day is closer Smiley

For spectators, there are currently a LOT of ways to test the distributed exchange with bitcoins and test mastercoins, and WE WILL PAY YOU! Payouts for February are being decided, and we'll have another big payout at the end of March. Please test!

Ok will wait for the block number before sending the new version.
57  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 08, 2014, 05:42:42 AM
Updated MyMastercoins.com

MM=8.33 1LifmeXYHeUe2qdKWBGVwfbUCMMrwYtoMm MCHAIN=8.23
MM=9.7505 1K6JtSvrHtyFmxdtGZyZEF7ydytTGqasNc MCHAIN=9.5005
MM=8.735 1HG3s4Ext3sTqBTHrgftyUzG3cvx5ZbPCj MCHAIN=8.335
MM=39.26343888 1EqTta1Rt8ixAA32DuC29oukbsSWU62qAV MCHAIN=47.38688888
MM=2.23456112 1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb MCHAIN=1.11111112

Grazcoin, I thought we are near consensus.  What happened to your 1EqTta1Rt8ixAA32DuC29oukbsSWU62qAV?



MM=9.7505 1K6JtSvrHtyFmxdtGZyZEF7ydytTGqasNc MCHEST=9.5005
MM=8.735 1HG3s4Ext3sTqBTHrgftyUzG3cvx5ZbPCj MCHEST=7.935
MM=39.26343888 1EqTta1Rt8ixAA32DuC29oukbsSWU62qAV MCHEST=38.8813538


58  Alternate cryptocurrencies / Altcoin Discussion / Re: MyMastercoins Wallet on: March 07, 2014, 05:48:15 PM
Running setup.exe from within the 2.01 zip, I get this:




After dragging the application files manually to a folder on my desktop, I run it and get this:



Hope that helps!

I'll update the db to sql 2010. It seems the sql 2008 has a lot of compatibility issues.

I will also update the engine as soon as we have tmsc consensus.   Please check the contest tread reg. rounding.

59  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 07, 2014, 04:37:12 PM
Grazcoin,

2 payments from  1HG3s4Ext3sTqBTHrgftyUzG3cvx5ZbPCj to 1LifmeXYHeUe2qdKWBGVwfbUCMMrwYtoMm from 1 purchase offer

aa799134259de13c1249b2c538d32103eec9d0327f1c82195409a75c6a215180  
d09ffc8f6b41176dc5a63f3110574cc42fb9fa8668b696b63b516bc0206001df

This should fix the 2 below

MM=8.33 1LifmeXYHeUe2qdKWBGVwfbUCMMrwYtoMm MCHAIN=8.23
MM=8.335 1HG3s4Ext3sTqBTHrgftyUzG3cvx5ZbPCj MCHAIN=8.435

724fc55b3f65ea1659d537be068cd3012a192e0c027c936b5fd2adc9b8d2f04b

Yours coins bought is .4

Edit
Mine is 0.33333336
Math.Round(BTCPaid * "AmountforSale" / "BTCDesired",   8 )
Math.Round(0.0004 *44.80423511 / 0.04480424 ,  8 )

MM=39.26343884 1EqTta1Rt8ixAA32DuC29oukbsSWU62qAV MCHAIN=39.26343888
60  Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) on: March 07, 2014, 01:58:47 PM
Updated MyMastercoins parser
Finally consensus in 1BKpa19m5Xy9SvSzC5djPWtCfbuynSDwmb


MM=8.33 1LifmeXYHeUe2qdKWBGVwfbUCMMrwYtoMm MCHAIN=8.23
MM=8.335 1HG3s4Ext3sTqBTHrgftyUzG3cvx5ZbPCj MCHAIN=8.435
MM=39.26343884 1EqTta1Rt8ixAA32DuC29oukbsSWU62qAV MCHAIN=39.26343888

MM=8.335 1HG3s4Ext3sTqBTHrgftyUzG3cvx5ZbPCj MCHEST=8.035
MM=39.26343884 1EqTta1Rt8ixAA32DuC29oukbsSWU62qAV MCHEST=38.8813538
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!