Author

Topic: [ANN][XCP] Counterparty - Pioneering Peer-to-Peer Finance - Official Thread - page 231. (Read 1276789 times)

sr. member
Activity: 390
Merit: 254
Counterparty Developer
Storj.io Crowdsale to Launch on Counterparty



For the full announcement, see: https://www.counterparty.co/storj-to-hold-crowdsale-using-counterparty/
sr. member
Activity: 390
Merit: 254
Counterparty Developer
Developers: Just released Counterpartyd 9.32.0 to develop branch. This change includes some potentially backwards incompatible changes. With this release, the entire backend engine code was switched from cherrypy to flask. this shouldn't impact users of the API, except that some existing checks were made stronger. Specifically: if you use non-named/position arguments with any API calls, you will get an error (where before some API calls would work with positional args, but all the get_ ones wouldn't).

Backwards incompatible changes: https://github.com/CounterpartyXCP/counterpartyd/blob/develop/docs/API.rst#9320
Full changeset: https://github.com/CounterpartyXCP/counterpartyd/commit/0cd7e3600041efff842e1abb48ba349d756713dc

If you develop against counterpartyd, please test your code against this new release. Pending no issues, we will be promoting this to master in 5 days to a week or so.
legendary
Activity: 1078
Merit: 1002
Bitcoin is new, makes sense to hodl.
Question to developers; is it possible for anyone to issue a bet where the winner is determined by a specified pattern in a future block hash/merkle root?

It's possible. I guess the only thing turning counterparty team off is it can be manipulated by mining. Although I think it's still worth doing, because users should accept the risk before playing. The risk should be minuscule, until the feature gets too grand. And this would allow trustless crowdfund dicing like CHA (last time I checked, they used the NY lottery thing as seed).
member
Activity: 150
Merit: 29
Happy mother of 5 children
I'm testing out Rock-Paper-Scissor. I'm playing with 1 XCP.

It's still pending after four hours. It will be matched as soon as someone else plays, right?

The game matched eventually. I guess there was no one else playing for a while, that's why I had to wait.
But after it matched it seemed that my wallet did not post my move. After several blocks I logged out and then in again, and the game resolved correctly.

..
Question to developers; is it possible for anyone to issue a bet where the winner is determined by a specified pattern in a future block hash/merkle root?
sr. member
Activity: 271
Merit: 254
XCP - The future of crypto-commodities trading, direct from farmer to food.

Quote
If you have 1 SOYBEANS, you can trade it in for 1 pound of my food grade soybeans before the end of 2014.

...

DISCLAIMER: This is not a currency, security, or any other sort of money transmission instrument or regulated commodities trade. If you buy SOYBEANS, you are buying a pre-order coupon(s) exchangeable for 1 pound of food-grade non-gmo soybeans. The transaction is only considered final once the US dollars for selling bitcoin actually end up in a 7 elements LLC bank account.

LOL, good luck with this.  Technically, a "coupon" that represents an ownership interest in soybeans is a security.  A "coupon" is literally, historically, a little tear-off piece of an actual security document.  But you would at least have a decent argument against facing any kind of regulatory action, in that the SEC makes absolutely no attempt to regulate similar securities issued by companies such as Groupon and LivingSocial.

That's kinda what I figure. They would have to explain why kickstarter, Ripple labs, and any place that offers store credit gets a get-out-of-regulation free coupon Tongue

Really the closest thing is I'm trying to apply the CSA model (community supported agriculture), where the customers share in some part of the production and/or price risk with the farmers.
sr. member
Activity: 335
Merit: 255
Counterparty Developer
I think the UI should have a way to display all opening games with different wagers. Because the fun of RPS is playing against the same player over and over.

you right. I will add somewhere the address of open and closed games.
Also I will check if possible to associate game with the chat nickname... but anyway you can not choose the player against your game will match..
the best way for now is to decide together an 'exotic' wager like 1.4321 and both play it.
If there is a lot of interest for this we can eventually add a parameter to make a game match only against a given address.

legendary
Activity: 1078
Merit: 1002
Bitcoin is new, makes sense to hodl.
I think the UI should have a way to display all opening games with different wagers. Because the fun of RPS is playing against the same player over and over.
sr. member
Activity: 523
Merit: 256
Trustless RPSLS is definitely interesting idea.  Bet matching and some other things seem like they would be an especially big challenge.

If you want fast matching for RPSLS (single and multiplayer), you should check out
https://rpsls.win88.me

Provably Fair. Over 1.1M rounds played of Rock, Paper, Scissors, Lizard, Spock
sr. member
Activity: 335
Merit: 255
Counterparty Developer
I'm seeing 2 opens on 1 XCP RPS game, why don't they match ?

2 games from the same address

or

2 games with different possible-moves (RPS and RPSSL in CW)
legendary
Activity: 1078
Merit: 1002
Bitcoin is new, makes sense to hodl.
I'm seeing 2 opens on 1 XCP RPS game, why don't they match ?
legendary
Activity: 3010
Merit: 8114
We are still in the "innovators" stage, so this is not very surprising. We have several more large UI changes upcoming, which should make it easier for people to use Counterparty, and help move us into the "early adopter" stage.

Sounds good. I like Counterparty and I think it has a lot to offer. Am looking forward to the upgrades. Are the new changes whats causing this to happen when I try to log in right now?

"No counterparty servers are currently available. Please try again later. ERROR: Request Time out."

Never seen that one before. Thanks.

That's because you haven't looked. If you just googled the error you'd have found that it's been reported before on more than one occasion, for example here:
https://forums.counterparty.co/index.php/topic,188.msg2342.html#msg2342

Status of Countewallet servers is available here and sometimes it's possible to get around the problem by connecting to another Counterwallet server.
http://status-backend.counterparty.co/

For your information I did look. I did type the message into Google and nothing relevant to the current situation came up. There's a variety of different reasons why the error message could come up.
full member
Activity: 196
Merit: 100
I saw the news about Rock Paper Scissors being built with Counterparty, I'm wondering if I can make a tic tac toe game so I can blow the people in my programming class away! is this even possible?
legendary
Activity: 3010
Merit: 8114
Quote
To resolve this issue, Counterparty has developed the first step towards trustless multiplayer games such as poker and chess. Due to the distributed nature of this solution, nobody can control the outcome of any game except the players themselves. Using Counterparty and Bitcoin transactions, the future of online gaming can be like the future of money itself: decentralized.

To show you what we mean, we actually built Rock-Paper-Scissors (RPS) and Rock-Paper-Scissors-Lizard-Spock (RPSLS) into Counterparty! And the underlying system allows you to do a lot more than just play rock-paper-scissors… You can play any game of this type with an odd number of possible moves.

Blockchain based poker? I'm absolutely floored. Is such a thing even possible?  Shocked

It seems like it would take far too long to play a hand, but I'm all for improvements in decentralized gambling. At the end of the day, there must be some sort of human hand in programming the decentralization, so it can never be truly "decentralized" or free of human bias. Any way to lessen reliance on user trust is probably beneficial.
newbie
Activity: 47
Merit: 0
We are still in the "innovators" stage, so this is not very surprising. We have several more large UI changes upcoming, which should make it easier for people to use Counterparty, and help move us into the "early adopter" stage.

Sounds good. I like Counterparty and I think it has a lot to offer. Am looking forward to the upgrades. Are the new changes whats causing this to happen when I try to log in right now?

"No counterparty servers are currently available. Please try again later. ERROR: Request Time out."

Never seen that one before. Thanks.

That's because you haven't looked. If you just googled the error you'd have found that it's been reported before on more than one occasion, for example here:
https://forums.counterparty.co/index.php/topic,188.msg2342.html#msg2342

Status of Countewallet servers is available here and sometimes it's possible to get around the problem by connecting to another Counterwallet server.
http://status-backend.counterparty.co/
sr. member
Activity: 335
Merit: 255
Counterparty Developer
Quote
Pending Game: As you have one or more pending game, please stay logged in so that the game(s) can be properly resolved. Once your game has been matched, it will take one more block for the game to complete.
Be careful, if you close the Wallet before the end of the game you can lose money!!

If I'm the first person opening the game, and I close counterwallet. Will the game be matched by others and I automatically lose ?


Yes, if you not re-open your wallet during the 20 blocks after the matching, and the other player resolved the game, you lose.
legendary
Activity: 1078
Merit: 1002
Bitcoin is new, makes sense to hodl.
Quote
Pending Game: As you have one or more pending game, please stay logged in so that the game(s) can be properly resolved. Once your game has been matched, it will take one more block for the game to complete.
Be careful, if you close the Wallet before the end of the game you can lose money!!

If I'm the first person opening the game, and I close counterwallet. Will the game be matched by others and I automatically lose ?
sr. member
Activity: 335
Merit: 255
Counterparty Developer
I'm testing out Rock-Paper-Scissor. I'm playing with 1 XCP.

It's still pending after four hours. It will be matched as soon as someone else plays, right?

Yes, exactly. I just played 1 XCP: just keep you wallet open and "may the best man win" ;-)

here how RPS works:

Quote
1) You broadcast a hash of your move (i.e. hash('rock' + random bytes))
and a wager (and an expiration).

2) Your move is matched with precisely one other move with the same
wager.

3) Both you and your opponent wait for one confirmation and then reveal
your move and the random bytes. When both moves have been broadcast, the
winner takes all (but there are ties).

This implementation of RPS is agnostic in the number of possible moves,
so rock-paper-scissors-lizard-spock, etc., is also supported.

of course, Counterwallet do all this automatically. You just need to pick your move and your wager, click play and keep your wallet open.

In counterpartyd.py there is 2 new transactions:

Quote

rps --source=mtQheFaSfWELRB2MyMBaiWjdDm6ux9Ezns --wager=1 --move=3 --possible-moves=3 --expiration=20

Where:
source: the source address
wager: the quantity of XCP to wager
move: the selected move
possible-moves: the number of possible moves (odd number greater or equal than 3)
expiration: the number of blocks for which the bet should be valid


Counterpartyd return a random number, that should be used in the second transaction, when the game match with another one (same wager and same possible-moves).

Quote

rpsresolve --source=mtQheFaSfWELRB2MyMBaiWjdDm6ux9Ezns --random=a9423a12c065aab67f25614372dd1370 --move=3 --rps-match-id= 092f15d36786136c4d868c33356ec3c9b5a0c77de54ed0e96a8dbdd8af160c23

Where:
source: the source address
random: the random number used in the corresponding rps transaction
move: the selected move in the corresponding rps transaction
rps-match-id: the concatenation of the hashes of the two transactions which compose the rps match

newbie
Activity: 30
Merit: 0
Quote
To resolve this issue, Counterparty has developed the first step towards trustless multiplayer games such as poker and chess. Due to the distributed nature of this solution, nobody can control the outcome of any game except the players themselves. Using Counterparty and Bitcoin transactions, the future of online gaming can be like the future of money itself: decentralized.

To show you what we mean, we actually built Rock-Paper-Scissors (RPS) and Rock-Paper-Scissors-Lizard-Spock (RPSLS) into Counterparty! And the underlying system allows you to do a lot more than just play rock-paper-scissors… You can play any game of this type with an odd number of possible moves.

Blockchain based poker? I'm absolutely floored. Is such a thing even possible?  Shocked
member
Activity: 150
Merit: 29
Happy mother of 5 children
I'm testing out Rock-Paper-Scissor. I'm playing with 1 XCP.

It's still pending after four hours. It will be matched as soon as someone else plays, right?
sr. member
Activity: 390
Merit: 254
Counterparty Developer
We are still in the "innovators" stage, so this is not very surprising. We have several more large UI changes upcoming, which should make it easier for people to use Counterparty, and help move us into the "early adopter" stage.

Sounds good. I like Counterparty and I think it has a lot to offer. Am looking forward to the upgrades. Are the new changes whats causing this to happen when I try to log in right now?

"No counterparty servers are currently available. Please try again later. ERROR: Request Time out."

Never seen that one before. Thanks.

The new counterblockd is having some issues with a few of the non-essential periodic checks that are causing it to become unreachable for brief periods of time. I've tried disabling these checks in the code for now, and we'll see if that fixes the problem, pending more tweaking of the logic to not cause issues.
Jump to: