Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - koeppelmann

#16
Quote from: Troy on October 15, 2014, 10:11:49 PM
Quote from: zack on October 15, 2014, 05:20:22 PM
If I simultaneously buy both share types, isn't that the same as increasing beta?

Yes, but if you buy both sides (matching with yourself), you would lose because you would have zero net position, and would only get back a fraction of any spent transaction fees if there are any dividends paid to shareholders

No! Really - check it - it will not effect the Beta/ aka. it would not make the market more stable. The same transaction after this buy would move the market the same way as before the buy.
#17
What do you mean by simultaneously? And if you buy 1000 shares of state one and then 1000 shares of state two you do not change the Beta at all.
Try it out: https://cdetrio.github.io/prediction-market-lmsr/index.html

This is by the way the reason why I think this critique here is stall very valid:
http://forum.truthcoin.info/index.php/topic,130.msg510.html#msg510

The critique leads to this need:
"I think it would be necessary to place classical buy/sell orders in the truthcoin blockchain that either get active as soon as the market maker price goes below them or that could be matched by other orders directly."
#18
@zack - but the voting mechanics/ coin redistribution/ SVD stuff, does work the way as Paul proposed it for every individual jury/branch, right? Even if it is only a single entity holding all votecoins of one branch?
#19
Development / Re: Python implementation
October 01, 2014, 06:08:40 PM
After updating to the newest version make_PM market worked and I added the "HillaryPM".

However - when I tried to buy shares I got a "count error":


martin@martin-VirtualBox:~/Truthcoin-POW-master$ ./truth_cli.py buy_shares
What is the unique name for this prediction market?
>HillaryPM
how many states does this pm have?
>2
how many shares do you want to buy of state 0? To sell states, use negative numbers.
>10
how many shares do you want to buy of state 1? To sell states, use negative numbers.
>0
failed to add tx because: count error
#20
Development / Re: Python implementation
October 01, 2014, 03:19:17 AM
I am stuck at Block 1022
#21
Development / Re: Python implementation
October 01, 2014, 02:22:59 AM
Quote from: zack on September 30, 2014, 08:04:58 PM
Quote from: koeppelmann on September 30, 2014, 08:00:48 PM
Some more questions:

where can I specify a time/date of the resolution of the decision?

I do not 100% understand the distribution of vote coins in your implementation. And how are votecoins connected to a "jury". What happens if I create a jury?

You cannot specify an exporation yet. They can be decided as soon as enough people have voted, and we are in the consensus time period.

If you create a jury, then you get all the jury coins. Whoever holds those coins can vote on the decisions that are asked of the jury.
If you want to start a jury with 10 other people, then divide the coins into 11 piles, and send them to each person.

But you plan to add resolution dates, right?

Second question: have you changed something to the difficulty adjustments. I am mining about 40minutes now and have not found a block yet. I currently have the difficulty of 000004d67a62d9b17b4000000000000000000000000000000000000000000000.
#22
Development / Re: Python implementation
September 30, 2014, 08:09:35 PM
Quote from: zack on September 30, 2014, 08:03:24 PM

If Zack writes a tx, it is valid until Zack broadcasts a different tx.
If Zack does not broadcast a different tx, then the tx will stay valid for months.

Ok, this is indeed different if other blocks does not cause this problem.
Quote from: zack on September 30, 2014, 08:03:24 PM

I don't know what a 'mempool' is.
What decision did I make?


mempool is short for memory pool and is the name for all Bitcoin transactions that are spread in the network but not included in a block.
Compare: mempool.info
I thought you made the decision to not have a mempool - but if I understand it correctly the command txs shows the mempool of the your truthcoin network implementation.
#23
Development / Re: Python implementation
September 30, 2014, 08:00:48 PM
Some more questions:

where can I specify a time/date of the resolution of the decision?

I do not 100% understand the distribution of vote coins in your implementation. And how are votecoins connected to a "jury". What happens if I create a jury?
#24
Development / Re: Python implementation
September 30, 2014, 07:51:43 PM
does this mean in your implementation transactions are only valid for one block?
Does that mean if a transaction does not get included right away it becomes invalid?

I think such a concept as a mempool (like in Bitcoin) is necessary. However, I guess the reason you made this decision is that the order is crucial for buy/sell transactions, right?
#25
Development / Re: Python implementation
September 30, 2014, 05:08:12 AM
I tried to do more testing.
Actually I created a jury, and decision and a PM - however, I can not buy shares...

martin@martin-VirtualBox:~/Truthcoin-POW-master$ ./truth_cli.py make_PM
What is the address or pubkey of the owner of the PM?
>113dARdhbwSrbohSWoahQhKEyDZcoas
What is the unique name for this new prediction market?
>HillaryPM
how big should B be? Initial investment is B*ln(n) where n is the number of states
>10
how many decisions is this prediction market to be based upon?
>1
What is the unique name of the 0 decision?
>Hillary
how many states can this PM result in?
>2
what is the text title of the 0 state?
>YES
how does the 0 state depend upon the outcome of the decisions? For example: if there are 2 decisions, and this market only comes true when the first is "yes" and the second is "no", then you would put: "1 0" here.
>1
what is the text title of the 1 state?
>NO
added tx: {'count': 1324, u'B': 10, u'type': u'prediction_market', u'states': [u'YES', u'NO'], u'PM_id': u'HillaryPM', 'signatures': ['HMcYRbjderROjQjTZaOlE6MTQP5YPe8OeMx2g1Ij6jpRFiP2xn3pPZoC5wg0My0RUEcnizcTZIkmZ3tSMZJ71ug='], u'fees': 0, u'owner': u'113dARdhbwSrbohSWoahQhKEyDZcoas', 'pubkeys': ['04ba9d76d0f8c62633c7a377e98e944e4f2e4d46f843236b19587f60c37f36c6342be23e2f33e51e910893926687b9fee25b2af329aca5b7fe9986c86c145c78ff'], u'decisions': [u'Hillary'], u'states_combinatory': [[1]]}
martin@martin-VirtualBox:~/Truthcoin-POW-master$ ./truth_cli.py txs
[]
martin@martin-VirtualBox:~/Truthcoin-POW-master$ ./truth_cli.py buy_shares
What is the unique name for this prediction market?
>HillaryPM
how many states does this pm have?
>2
how many shares do you want to buy of state 0? To sell states, use negative numbers.
>10
how many shares do you want to buy of state 1? To sell states, use negative numbers.
>0
failed to add tx because: that is not a prediction market yettx: {'count': 1329, u'buy': [10, 0], u'PM_id': u'HillaryPM', 'signatures': ['G15A4WYKa12vIbCKRCestIvpkpxx+4RhKdaQt1t+7tN7OUT7l8I+vLPnk0pw1xapqUpHj+MFzfl0aozf2EGEQhM='], 'pubkeys': ['04ba9d76d0f8c62633c7a377e98e944e4f2e4d46f843236b19587f60c37f36c6342be23e2f33e51e910893926687b9fee25b2af329aca5b7fe9986c86c145c78ff'], u'type': u'buy_shares'}

#26
Development / Re: Python implementation
September 26, 2014, 02:25:34 AM
I will soon write a script to replicate everything that happens on fairlay.com on your truthcoin implementation.

I think this is a good method to test things with some real events.

(We are just developing our API - http://188.165.246.217/api/)
#27
Outside Work / Re: Blockchain for building upon
September 18, 2014, 06:26:21 PM
Just loaded the latest version.

martin@martin-VirtualBox:~/Truthcoin-POW-master$ python threads.py
You need to define either "pubkey" or "brain_wallet" in the file custom.py   If you want to make a new pubkey using the brain_wallet "brain_wallet_42", use the command: ./truthd new_address brain_wallet_42
martin@martin-VirtualBox:~/Truthcoin-POW-master$ python truthd.py new_address test
brain: test
privkey: c2a9068dc7c0830a2c7c95f82b0438eb4740ea39f1b023b515cf9dd0ddd803f3
pubkey: 04b91be1f1a46d5f061960eace4cc21f00971b47a4d5e4a23e413893c3650db56c26f21c1df4c13071c85dca14ea69a968221f06dd87aa84dea621e2c4510efd9b
address: 115MtZACq3ZtW7dezpwE4bXGPgxnWsj
martin@martin-VirtualBox:~/Truthcoin-POW-master$ python threads.py
You need to define either "pubkey" or "brain_wallet" in the file custom.py   If you want to make a new pubkey using the brain_wallet "brain_wallet_42", use the command: ./truthd new_address brain_wallet_42


From the output of the threads.py I would expect that the command
python truthd.py new_address
would set a brainwallet string. This seems not to work. Or does it only work if threads are running? And I can only change the brainwallet phrase with it?
#28
Outside Work / Re: Blockchain for building upon
September 17, 2014, 08:37:18 PM
sending money works. Even in cases it should better not :)

martin@martin-VirtualBox:~/Truthcoin-POW-master$ ./truthd.py my_balance
29098990
martin@martin-VirtualBox:~/Truthcoin-POW-master$ ./truthd.py spend 29098991 115nxUddLmxijWskiz5znHxk1KdMZpS
added tx: {'count': 292, 'signatures': ['G30U3NyCn6iJf5i7c9MK+po2GUlOehi5waDOH18Jz0sK5K8WOkKecSAQqIVAt8eDxFwhPtiN78OYLkepjjEz5qo='], 'to': u'115nxUddLmxijWskiz5znHxk1KdMZpS', 'amount': 29098991, 'pubkeys': ['04ba9d76d0f8c62633c7a377e98e944e4f2e4d46f843236b19587f60c37f36c6342be23e2f33e51e910893926687b9fee25b2af329aca5b7fe9986c86c145c78ff'], 'type': 'spend'}
martin@martin-VirtualBox:~/Truthcoin-POW-master$ ./truthd.py my_balance-1001
#29
Outside Work / Re: Blockchain for building upon
September 17, 2014, 07:34:21 PM
I did the same on the ubuntu version and noticed that the output is here slightly different:

{'stop': False, 'diffLength': u'567114dc969a8517611af56a65ee172b10e9cca65a00b3ecd9315c7dd98fe926cfd6a18', 'db': <leveldb.LevelDB object at 0x7f858f55cea0>, 'mine': False, 'heart_queue': <multiprocessing.queues.Queue object at 0x7f858e089690>, 'txs': [], 'privkey': 'e72d48e99ef82b4f29efccf0eb6587b0fa3b6684e275423a141e0698f54b2016', 'suggested_blocks': <multiprocessing.queues.Queue object at 0x7f858e0897d0>, 'suggested_txs': <Queue.Queue instance at 0x7f858e08ab00>, 'memoized_votes': {}, 'length': 835, 'peers_ranked': [[['192.241.212.114', 8900], 29.999999773843584]], 'pubkey': '04ba9d76d0f8c62633c7a377e98e944e4f2e4d46f843236b19587f60c37f36c6342be23e2f33e51e910893926687b9fee25b2af329aca5b7fe9986c86c145c78ff', 'address': '113dARdhbwSrbohSWoahQhKEyDZcoas'}


Here is no 127.0.0.1 peer. And the ubuntu and the mac node do not find each other...
#30
Outside Work / Re: Blockchain for building upon
September 17, 2014, 07:01:29 PM
Ok, still trying to get it running on a mac, I added to the code


while not DB['stop']:
        print DB
        time.sleep(0.5)


the result was (after some time):

{'stop': False, 'diffLength': '0', 'db': <leveldb.LevelDB object at 0x1b047a0>, 'mine': False, 'heart_queue': <multiprocessing.queues.Queue object at 0x1b044f0>, 'txs': [], 'peers_ranked': [[['192.241.212.114', 8900], 29.993509628926837], [['127.0.0.1', 8900], 29.998638870532321]], 'suggested_blocks': <multiprocessing.queues.Queue object at 0x1b045f0>, 'brainwallet': 'brain wallet', 'suggested_txs': <Queue.Queue instance at 0x1b0b058>, 'memoized_votes': {}, 'length': -1, 'privkey': 'fdbb564cabcd074b4f74d8cfba6e1f5f86dc43f048e8d9b57d1dbc06a2b31338', 'pubkey': '04664ecaa807d7e9c73cfc64b141a56c36a0ba5048843db3592310a6d4dc68c262f62a4053a53a2a622020a91fd4d9c55b64becf0b918cbbd34f1cf5ae0ab815c4', 'address': '11btWMfgyCi66nxiJMivmkdDVxDZpKj'}



At least it is running and it seems to have a connection to 192.241.212.114, but length (blockcount, right?) is 0.

BTW. for very simple problems skype is maybe a quicker solution than a forum... My Name in Skype: MartinK13