Author

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

newbie
Activity: 22
Merit: 0
The thing I don't like about XCP escrow is the added complexity to what should really be a very simple function.

Agree. Having more than one mechanism to penalise BTCpay defaulters adds unnecessary complexity. Plus it damages order fungibility (the idea that any order can be matched against any other without the user having to jump through hoops.)

On the otherhand I don't see how to make large BTC Sell / XCP Buy orders reliable (troll prohibitive) but not fee inefficient without the escrow mechanism.

This is exactly what I'm attempting to address here:
https://forums.counterparty.co/index.php/topic,69.msg340.html#msg340

* the fee mechanism/concept kept simple - an XCP sell order always specifies his fee_required as a simple number (ideally proportional to the size of his order)
* the ability of an XCP buy order to match any sell order, providing the required fee as any combination of XCP and BTC he prefers
* the automatic refund of XCP fees upon BTCpay settlement

If implemented, this would result in:
* the vast majority of fees being paid in XCP (any sensible client would do this automatically where ever possible,) massively improving fee efficiency.
* serious troll deterrence, as matching any appreciably large sum of XCP and failing to BTCpay would cost you heavily (but it'd be free if you utilised the XCP fee and did BTCpay.)
* retained simplicity of the fee mechanism. XCP sellers just specify a single fee. XCP buyers can match any order on the book, paying the fee with whatever they have available. Software could automatically default optimal values very easily so that the user need never even think about fees.
sr. member
Activity: 364
Merit: 264
Does the transaction malleability issue affect Counterparty?

http://www.reddit.com/r/Bitcoin/comments/1xmnt3/bitstamp_bitcoin_withdrawal_processing_suspended/

Is this scenario possible?

Attacker creates a sell order. It has TxID=1xx. Renegade node duplicates this transaction by modifying TxID=2xx. There are now 2 identical sell orders.

Both get matched by buyers.

Buyers send BTC only to find out later that the transaction was duplicated.

I don't think so, because counterpartyd doesn't recognise unconfirmed transactions.

Crossposted from the XCP forums. I'm no bitcoin dev, so I'm not 100% sure, but:

---

Well, I'll chime in. Because malleability only affects the txid and not pubkeys (which we use for multisig) nor OP-RETURN (which hasn't even been implemented yet), I don't see how that affectx XCP. You might say it could affect BTCpay, but then again no unconfirmed transactions appear in the DEX anyways, so I don't see that as an issue.
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Does the transaction malleability issue affect Counterparty?

http://www.reddit.com/r/Bitcoin/comments/1xmnt3/bitstamp_bitcoin_withdrawal_processing_suspended/

Is this scenario possible?

Attacker creates a sell order. It has TxID=1xx. Renegade node duplicates this transaction by modifying TxID=2xx. There are now 2 identical sell orders.

Both get matched by buyers.

Buyers send BTC only to find out later that the transaction was duplicated.

I don't think so, because counterpartyd doesn't recognise unconfirmed transactions.
legendary
Activity: 1320
Merit: 1007
Hey so Patel can you explain just a little more what's the bitcoin.conf settings supposed to be.

I understand the reindex I tried it twice took over two days so I cut it off

Bitcoind -reindex

I'm assuming I can just use the counterparty
Exe installer and that's all I need ?

And then rebuild counterpartyd database ?
How ? Ha.

If you could just explain that I think it might click for me


Bitcoin.conf located in C:\Users\Owner\AppData\Roaming\Bitcoin should be set to:

rpcuser=rpc
rpcpassword=rpcpw1234
server=1
daemon=1
txindex=1

Save the file.

Click start, type cmd, press enter.

type: cd C:\Program Files (x86)\Bitcoin

press enter

type: bitcoin.exe -reindex

press enter

And wait like 6 hours for it to finish.
full member
Activity: 224
Merit: 100
CabTrader v2 | crypto-folio.com
Hey so Patel can you explain just a little more what's the bitcoin.conf settings supposed to be.

I understand the reindex I tried it twice took over two days so I cut it off

Bitcoind -reindex

I'm assuming I can just use the counterparty
Exe installer and that's all I need ?

And then rebuild counterpartyd database ?
How ? Ha.

If you could just explain that I think it might click for me
legendary
Activity: 1320
Merit: 1007
Patel bhai, not everyone out here are geeks. Buying and selling should be very easier like fill the order, click payment and receive coins.

yes, I agree. It will be soon.
newbie
Activity: 28
Merit: 0
I'm definitely a self proclaimed advanced user

Cannot wait to see that GUI working on my PC. I think I'd rather use a web based version of course, cause this whole blockchain reindex is insane. I tried 3 times already Cry

Its really simple actually.

Set bitcoin.conf properly
Reindex
Download counterparty prereq's
Build counterparty database

On a virtual machine, reindexing takes about 6 hours, and rebuilding takes about 3.

But its a one time deal, after that your set.

Patel bhai, not everyone out here are geeks. Buying and selling should be very easier like fill the order, click payment and receive coins.
legendary
Activity: 1320
Merit: 1007
I'm definitely a self proclaimed advanced user

Cannot wait to see that GUI working on my PC. I think I'd rather use a web based version of course, cause this whole blockchain reindex is insane. I tried 3 times already Cry

Its really simple actually.

Set bitcoin.conf properly
Reindex
Download counterparty prereq's
Build counterparty database

On a virtual machine, reindexing takes about 6 hours, and rebuilding takes about 3.

But its a one time deal, after that your set.
full member
Activity: 224
Merit: 100
CabTrader v2 | crypto-folio.com
The trading volume is low simply because while burning BTC to get XCP was extremely simple ... Sending XCP via counterpartyd can be a daunting task for an average user. I'm definitely a self proclaimed advanced user and the installation instructions for counterpatyd are simply awful IMHO. We need that GUI and a very good explanation of how to use it.

EDIT: buying after the burn is not easy either.
newbie
Activity: 28
Merit: 0
why the trading volume is so low?
hero member
Activity: 756
Merit: 502
Best way it's to take this commit: https://github.com/JahPowerBit/counterpartyd/commit/0f4c4d531ba667b8c4880c3a17a217f74ed1426d
and restart counterpartyd with --activate-gui

Seems some deps are missing?

Traceback (most recent call last):
  File "counterpartyd.py", line 13, in
    import requests
ImportError: No module named requests
newbie
Activity: 4
Merit: 0
Have a question. Why don't you implement automatic settlement ? is that even possible ?
sr. member
Activity: 335
Merit: 255
Counterparty Developer
I made a pull request here: https://github.com/PhantomPhreak/counterpartyd/pull/34

Thank in advance to the developers for time to check this code.

Great work!

Any way for us the mere users, to check it out while XCP devs are reviewing the code?
Will replacing the counterpartyd in dist folder, and running the setup.py and run.py will be enough?

Best way it's to take this commit: https://github.com/JahPowerBit/counterpartyd/commit/0f4c4d531ba667b8c4880c3a17a217f74ed1426d
and restart counterpartyd with --activate-gui
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Hi PhantomPhreak


Running the latest develop branch and I noticed that the asset list has been reduced. A lot of previously valid assets are now invalid.

Anything changes related to assets?

Can you give me an example?

there were close to 180 ++ assets before the upgrading. Blockscan is one of the assets

I found the bug and will fix it post-haste. Thanks.

I just wrote a pre-commit hook that will check credits and debits of new and old databases, so regressions like this won't happen again.
hero member
Activity: 756
Merit: 502
I made a pull request here: https://github.com/PhantomPhreak/counterpartyd/pull/34

Thank in advance to the developers for time to check this code.

Great work!

Any way for us the mere users, to check it out while XCP devs are reviewing the code?
Will replacing the counterpartyd in dist folder, and running the setup.py and run.py will be enough?
sr. member
Activity: 335
Merit: 255
Counterparty Developer
I talked with a friend (much better than me) yesterday and he convinced me that:

1) there was no need to use CFE, and the vast majority of users had no problem using web wallet as BCI (or the upcoming "Counterwallet"). The paranoid could always use CFE standalone as a "browser safe". So there is no reason that this is not the same for a GUI. And this will leave me much time to improve the GUI.

2) That the easiest way for the user to use the GUI, is to integrate it into counterpartyd. In this way, the user does not need to install multiple software and GUI can be automatically accessed when counterpartyd works.

So despite my huge backlog in my real job (much less funny), I took the time to changed my code to use CherryPy instead of Bottle and it is fully integrated in counterpartyd.
I tried to respect the style of code:

https://github.com/JahPowerBit/counterpartyd

Here are the new arguments of counterpartyd:

--activate-gui : run GUI web server
--gui-host : the host to provide the counterpartyd GUI
--gui-port : port on which to provide the counterpartyd GUI
--gui-user : required username to use the counterpartyd GUI (via HTTP basic auth)
--gui-password : required password (for gui-user) to use the counterpartyd GUI (via HTTP basic auth)

And the corresponding keys in config file:

gui-host
gui-port
gui-user
gui-password

Default values are:

gui-host = rpc-host
gui-port = 8080
gui-user = rpc-user
gui-password = rpc-password

I made a pull request here: https://github.com/PhantomPhreak/counterpartyd/pull/34

Thank in advance to the developers for time to check this code.
legendary
Activity: 876
Merit: 1000
Etherscan.io
Hi PhantomPhreak


Running the latest develop branch and I noticed that the asset list has been reduced. A lot of previously valid assets are now invalid.

Anything changes related to assets?

Can you give me an example?

there were close to 180 ++ assets before the upgrading. Blockscan is one of the assets
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Hi PhantomPhreak


Running the latest develop branch and I noticed that the asset list has been reduced. A lot of previously valid assets are now invalid.

Anything changes related to assets?

Can you give me an example?
member
Activity: 82
Merit: 10
A few years ago I did a study of the history of the stock exchanges. My emphasis was on the shift that occurred in the 1980s from member-based systems to fully electronic systems provided as a market-based service by a third party such as NASDAQ.  Although it was not my focus, I vaguely recall from my research reading about the problem of "backing away" as a long-standing and difficult problem faced by the stock exchange developers. Just as the name implies, "backing away" is the problem of a buyer placing an order and then not settling it within the settlement period, which is the same problem being discussed now amongst ourselves in the context of Counterparty.

While purpose of this post is not to offer a solution, I thought it was worthwhile to flag the fact that this "backing away" problem is not new in the world of exchanges and that it has a name and a history. While offhand I do not recall solutions that were ultimately tried and / or adopted, I shall try to dig thru my archives later today to see if I can uncover any insights from the early systems such as Instinet, Archipelago, etc

Ok, I just did a few quick searches, see page 32 and 42 of this report:
http://www.sec.gov/litigation/investreport/nd21a-report.txt

Looks like the term "firm order" is the antonym of "backing away" and is another keyword for community members to search in an effort to find historical solutions to this problem.
member
Activity: 82
Merit: 10
A few years ago I did a study of the history of the stock exchanges. My emphasis was on the shift that occurred in the 1980s from member-based systems to fully electronic systems provided as a market-based service by a third party such as NASDAQ.  Although it was not my focus, I vaguely recall from my research reading about the problem of "backing away" as a long-standing and difficult problem faced by the stock exchange developers. Just as the name implies, "backing away" is the problem of a buyer placing an order and then not settling it within the settlement period, which is the same problem being discussed now amongst ourselves in the context of Counterparty.

While purpose of this post is not to offer a solution, I thought it was worthwhile to flag the fact that this "backing away" problem is not new in the world of exchanges and that it has a name and a history. While offhand I do not recall solutions that were ultimately tried and / or adopted, I shall try to dig thru my archives later today to see if I can uncover any insights from the early systems such as Instinet, Archipelago, etc
Jump to: