BitShares Forum

Other => Graveyard => LottoShares => Topic started by: FreeTrade on June 27, 2014, 07:24:05 am

Title: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 27, 2014, 07:24:05 am
I've finished coding the MVP and a test platform is now running.

My plan is to conduct testing and polishing and then reset the platform for a launch on July 8th.

You're invited to take part in the testing - only those capable of compiling source code at the moment please.
https://github.com/FreeTrade/lottoshares

I'll be seeking to secure development, testing, marketing, infrastructure, review and audit services with the remaining 30% shares. These should be fully allocated by the time of the launch.
Title: Re: LottoShares DAC - Test Platform Live
Post by: emski on June 27, 2014, 08:03:28 am
http://www.lottoshares.org/ looks parked. It is wise to setup "coming soon" page placeholder.
Title: Re: LottoShares DAC - Test Platform Live
Post by: toast on June 27, 2014, 05:15:11 pm
I've finished coding the MVP and a test platform is now running.

My plan is to conduct testing and polishing and then reset the platform for a launch on July 8th.

You're invited to take part in the testing - only those capable of compiling source code at the moment please.
https://github.com/FreeTrade/lottoshares

I'll be seeking to secure development, testing, marketing, infrastructure, review and audit services with the remaining 30% shares. These should be fully allocated by the time of the launch.

 +5% excited!
Title: Re: LottoShares DAC - Test Platform Live
Post by: CLains on June 27, 2014, 07:38:27 pm
That's in 11 days!!  Awesome +5% +5%
Title: Re: LottoShares DAC - Test Platform Live
Post by: CLains on June 27, 2014, 07:41:03 pm
Countdown on the site  +5%

PMing Cass to do one on the bitshares.org site at least, replacing the old one (http://bitshares.org/lottoshares-snapshot-countdown/).

We all gonna help you push this thing!
Title: Re: LottoShares DAC - Test Platform Live
Post by: pc on June 28, 2014, 01:15:16 pm
I've finished coding the MVP and a test platform is now running.

My plan is to conduct testing and polishing and then reset the platform for a launch on July 8th.

You're invited to take part in the testing - only those capable of compiling source code at the moment please.
https://github.com/FreeTrade/lottoshares

I'll be seeking to secure development, testing, marketing, infrastructure, review and audit services with the remaining 30% shares. These should be fully allocated by the time of the launch.

Compilation fails with the following error (Linux, openSUSE-12.3):
Code: [Select]
src/checkpoints.cpp: In function 'void Checkpoints::addCheckpoint(int64, int64, uint256, bool)':
src/checkpoints.cpp:146:22: error: aggregate 'std::ofstream myfile' has incomplete type and cannot be defined
src/checkpoints.cpp:157:77: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int64 {aka long long int}' [-Wformat]
src/checkpoints.cpp:159:26: error: aggregate 'std::ofstream broadcastOutput' has incomplete type and cannot be defined
src/checkpoints.cpp: In function 'void Checkpoints::loadCheckpoints()':
src/checkpoints.cpp:170:26: error: variable 'std::ifstream myfile2' has initializer but incomplete type

Source code is fresh from github, timestamp is 1403945630 .
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 28, 2014, 02:08:29 pm

Source code is fresh from github, timestamp is 1403945630 .

Thanks for the bug report. I added some headers - can you give it another try please?
Title: Re: LottoShares DAC - Test Platform Live
Post by: pc on June 28, 2014, 02:18:22 pm
Better, but...

Code: [Select]
src/lottoshares.cpp: In function 'void addShareDrops(CBlock&)':
src/lottoshares.cpp:468:40: error: 'itoa' was not declared in this scope
src/lottoshares.cpp:492:40: error: 'itoa' was not declared in this scope
src/lottoshares.cpp:519:52: error: 'itoa' was not declared in this scope
src/lottoshares.cpp:556:52: error: 'itoa' was not declared in this scope
src/lottoshares.cpp:594:52: error: 'itoa' was not declared in this scope
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 28, 2014, 04:08:40 pm
Thanks again - itoa now removed. Please have another try.
Title: Re: LottoShares DAC - Test Platform Live
Post by: emre on June 29, 2014, 08:41:04 am
Quote
$ ./lottosharesd
lottosharesd: main.cpp:2995: bool InitBlockIndex(): Assertion `block.hashMerkleRoot == merklerootGenesisBlock' failed.
Aborted (core dumped)

got this after compiling at both linux and osx.
Title: Re: LottoShares DAC - Test Platform Live
Post by: pc on June 29, 2014, 08:58:37 am
QT compiles now.
Daemon compile fails because obj/lottoshares.o is missing in src/makefile.unix.
When I try to start either I receive the following error message:
Code: [Select]
lottosharesd: main.cpp:2995: bool InitBlockIndex(): Assertion `block.hashMerkleRoot == merklerootGenesisBlock' failed.

...OK, apparently the sharedrop files are expected to reside in the current directory. The build instructions should mention that.
On debian/ubuntu the build fails because of missing libcurl-dev. That dependency should also be listed.
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 29, 2014, 09:54:41 am
Ok thanks guys -

I've removed the curl dependency, pulled Emre's patch to correct the daemon build.

For the sharedrop files - not sure if that's how we're going to end up handling that, but for now they do need to be in the currect directory to build the genesis block.
Title: Re: LottoShares DAC - Test Platform Live
Post by: pc on June 29, 2014, 12:17:55 pm
Hm, now it loads the sharedrop files, but still it fails. This is in the log (openSUSE-12.3 on x86_64):

Code: [Select]
2014-06-29 12:12:16 LottoShares version v1.0.0.0-gdab1cbb-beta ()
2014-06-29 12:12:16 Using OpenSSL version OpenSSL 1.0.1h 5 Jun 2014
2014-06-29 12:12:16 Default data directory /home/peter/.lottoshares
2014-06-29 12:12:16 Using data directory /home/peter/.lottoshares
2014-06-29 12:12:16 Using at most 5 connections (1024 file descriptors available)
2014-06-29 12:12:16 Using 4 threads for script verification
2014-06-29 12:12:16 init message: Verifying wallet...
2014-06-29 12:12:16 dbenv.open LogDir=/home/peter/.lottoshares/database ErrorFile=/home/peter/.lottoshares/db.log
2014-06-29 12:12:16 init message: Loading block index...
2014-06-29 12:12:16 Opening LevelDB in /home/peter/.lottoshares/blocks/index
2014-06-29 12:12:51 Opened LevelDB successfully
2014-06-29 12:12:51 Opening LevelDB in /home/peter/.lottoshares/chainstate
2014-06-29 12:13:17 Opened LevelDB successfully
2014-06-29 12:13:17 LoadBlockIndexDB(): last block file = 0
2014-06-29 12:13:17 LoadBlockIndexDB(): transaction index disabled
2014-06-29 12:13:17 Initializing databases...
2014-06-29 12:13:40 after bitcoin, total coins :2000000000000000
2014-06-29 12:13:46 after doge, total coins :4000000000000000
2014-06-29 12:13:47 after pts, total coins :4999999998109821
2014-06-29 12:13:48 after mmc, total coins :6000000079533682
2014-06-29 12:13:48 after ags, total coins :6999957079872862
2014-06-29 12:13:51 89ac175ec9bc64af4ebce8112bfcd7983e5abcb2871a69d265b214b71b94e211
2014-06-29 12:13:51 4ff382bb8a0284d52f2a119b461352b4dc294500d65a7261a0e456441e49950a
2014-06-29 12:13:51 a49d54ead14b7666e567800a6ad91b7c8983839b498033d4b3b492068b4a6ffb
lottosharesd: main.cpp:2995: bool InitBlockIndex(): Assertion `block.hashMerkleRoot == merklerootGenesisBlock' failed.
Title: Re: LottoShares DAC - Test Platform Live
Post by: CLains on June 29, 2014, 12:51:26 pm
PMing Cass to do one on the bitshares.org site at least, replacing the old one (http://bitshares.org/lottoshares-snapshot-countdown/).

Cass did it, http://bitshares.org/lottoshares-launch-countdown/

Now we just need some text and the exact time to put in the countdown! o/

What say you, FreeTrade?
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 29, 2014, 12:57:20 pm
Hm, now it loads the sharedrop files, but still it fails. This is in the log (openSUSE-12.3 on x86_64):

Thanks, yes, we got some kind of floating point arithmetic bug. I'm working on it.
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 29, 2014, 01:00:12 pm

Cass did it, http://bitshares.org/lottoshares-launch-countdown/

Now we just need some text and the exact time to put in the countdown! o/

What say you, FreeTrade?

I think the countdown code was a bit buggy, working off local client time rather than UTC time - so maybe look at fixing that. I'll get you an exact UTC time shortly - after I've got some of the other bugs ironed out.
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 29, 2014, 01:47:26 pm
Okay - floating point arithmetic bug was causing slightly different balances in genesis block on linux vs windows, resulting in errors. Should be fixed now.
Title: Re: LottoShares DAC - Test Platform Live
Post by: pc on June 29, 2014, 03:39:52 pm
OK - seems to be working.

My linux packages are available at http://software.opensuse.org/download.html?project=home%3Ap_conrad%3Acoins&package=lottoshares - or will be, when the build service comes up again. :-/
Title: Re: LottoShares DAC - Test Platform Live
Post by: emre on June 29, 2014, 09:18:45 pm
+1

it's working atm.

Title: Re: LottoShares DAC - Test Platform Live
Post by: puppies on June 30, 2014, 03:24:11 am
Code: [Select]
Status: 1583 confirmations
Date: 6/24/14 23:02
Source: Generated
Credit: 194.13745532 LTS (matures in 106929 more blocks)

Is the maturity rate for the LTS correct?  I want to gamble.
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 30, 2014, 03:42:41 am
Code: [Select]
Status: 1583 confirmations
Date: 6/24/14 23:02
Source: Generated
Credit: 194.13745532 LTS (matures in 106929 more blocks)

Is the maturity rate for the LTS correct?  I want to gamble.

Yes, for MMC, PTS, AGS and the 30%, maturation is at a random block, after 2 months and less than 14 months, using the genesis block as a seed. This is because some of these balances can be very large and we don't want them flooding the market from the outset. BTC and DOGE balances are small and can be used right away. Subsidies for processing tickets can be used after 10 blocks or so.

Or send me your address and I'll send you some coins to test with.

Title: Re: LottoShares DAC - Test Platform Live
Post by: puppies on June 30, 2014, 03:51:14 am
Code: [Select]
Status: 1583 confirmations
Date: 6/24/14 23:02
Source: Generated
Credit: 194.13745532 LTS (matures in 106929 more blocks)

Is the maturity rate for the LTS correct?  I want to gamble.

Yes, for MMC, PTS, AGS and the 30%, maturation is at a random block, after 2 months and less than 14 months, using the genesis block as a seed. This is because some of these balances can be very large and we don't want them flooding the market from the outset. BTC and DOGE balances are small and can be used right away. Subsidies for processing tickets can be used after 10 blocks or so.

Or send me your address and I'll send you some coins to test with.

LaSbZsYEYrwHMWcfxXjiAw25VaCZgA4Psx 

Thanks man, I'd like to try it out.
Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 30, 2014, 03:54:43 am
Ok. Good luck!

For the test platform, every ticket is a winner!

2 numbers returns your stake,
1 number gives you one hundredth of your stake back
0 numbers gives you one tenth of your stake back
Title: Re: LottoShares DAC - Test Platform Live
Post by: puppies on June 30, 2014, 05:16:24 am
How can I tell the difference between blocks mined by my cpu and ticket payouts?   I see a ton of mined transactions.

Sent from my SCH-I535 using Tapatalk

Title: Re: LottoShares DAC - Test Platform Live
Post by: FreeTrade on June 30, 2014, 06:10:29 am
For now, you'll need to infer from the amounts - amounts of around 10 are mined. Everything else is a ticket payout.

I'll be polishing up the interface over the next week to provide better information on what's what - you could also use separate clients for mining/playing for the next few days to make things clearer.
Title: Re: LottoShares DAC - Test Platform Live
Post by: puppies on June 30, 2014, 04:19:25 pm
Thanks freetrade.   I would also suggest adding a sort of block explorer tab that will display the numbers that are called, if it's not too much of a pain.   I think that would make the game more playable and lead to a wider adoption.
Title: Re: LottoShares DAC - Test Platform Live
Post by: emre on June 30, 2014, 05:17:57 pm
block explorer for test platform:
http://lottoshares.42tx.com/

you can see your ticket transactions.
Title: Re: LottoShares DAC - Test Platform Live
Post by: emre on July 09, 2014, 03:31:44 pm
added some extra info for ticket transactions:

http://lottoshares.42tx.com/tx/ad278c59f0fb604be07337cc7223c7fda7e643fb470ba2151daa4f8889b23fa9