Author

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

sr. member
Activity: 266
Merit: 250
Help and Love one another ♥
This is just how bitcoin works, after all.

Does this help?
https://en.bitcoin.it/wiki/Change

Thanks for the link.
"The client can't spend just 10.00 BTC out of a 10.89 BTC payment anymore than a person can spend $1 out of a $20 bill."

So I guess this is one aspect about Bitcoin I didn't grasp before now.
Which reduce quite a bit it's awesomeness I must say...

Maybe it's because I made most of my transfert from online exchange and wallet.
Where it's not a problem to send 1/10 of my coin, and just 2sec after send 2/10 of the rest elsewhere.
I'm not froze for a blocktime.

Yeah I got it now. The abstraction of online exchange hided this "default".
At least it send the change to the same pubkey, and not randomly-without-control like bitcoind.
member
Activity: 79
Merit: 10
Update to new version wininstaller. Server is running well just started but after current block reach it stopped with no accsess to Bitcoind. I cant even open wallet until i close counterpartyd server. Am i missed something?
By the way is it 1400+ for 1BTCstill???     

Just noticed that server shows block No 278338 with current time. What is it and how to fix?

Code:
2014-01-15-T02:01:04Mocкoвcкoe вpeмя (зимa) Block: 278338
sr. member
Activity: 364
Merit: 264
The transaction looks right, but the TEST/XCP value from the log looks wrong, again.

Also on blockscan:
- "Price" should include the pair (e.g. XCP/TEST) instead of just "XCP"
- For BTC/XCP, buy and sell prices look right; the "price" column is still wrong (you could derive/verify the price column by dividing the buy by the sell price...) - more confusingly only some of the prices look wrong.

(I hope this "intensive" testing is useful, BTW).

Yes, I am currently working on the order display and have updated the latest changes.. I believe I am getting closer :-). I have swapped columns for the buy/sell so that it follows the sequence of the "order" parameters command. Every order is a "buy" first


The buy prices are actually available in the order database so I am picking those up from there. However, I believe the divisibility (0 or 1 value) of NON BTC/XCP Assets can be set on a per individual basis when the asset is initially issued(generated).

I suggest also rebuilding the db from your end.
sr. member
Activity: 364
Merit: 264
Unfortunately I don't think bitcoin works that way. When you are trying to send an amount (0.0002172) that does not exactly match an unspent output, a transaction has to be made that takes the remaining amount and sends it back as change. The "problem" is that the amount sent back as change is unconfirmed, and counterpartyd does not allow spending of unconfirmed outputs (while I think the main client/blockchain.info does).

I did not understood the beginning.
Maybe on a technical point of view it is hard or not possible in this case to not have change, I don't know.
Understood last part.
What I don't get is why *all* BTC must be moved.
No change = no need for confirmation = annoyance solved.


avkinp, we're around 1300 XCP/BTC now

This is just how bitcoin works, after all.

Does this help?

https://en.bitcoin.it/wiki/Change

There used to be a picture somewhere...
sr. member
Activity: 266
Merit: 250
Help and Love one another ♥
Unfortunately I don't think bitcoin works that way. When you are trying to send an amount (0.0002172) that does not exactly match an unspent output, a transaction has to be made that takes the remaining amount and sends it back as change. The "problem" is that the amount sent back as change is unconfirmed, and counterpartyd does not allow spending of unconfirmed outputs (while I think the main client/blockchain.info does).

I did not understood the beginning.
Maybe on a technical point of view it is hard or not possible in this case to not have change, I don't know.
Understood last part.
What I don't get is why *all* BTC must be moved.
No change = no need for confirmation = annoyance solved.


avkinp, we're around 1300 XCP/BTC now
member
Activity: 79
Merit: 10
Update to new version wininstaller. Server is running well just started but after current block reach it stopped with no accsess to Bitcoind. I cant even open wallet until i close counterpartyd server. Am i missed something?
By the way is it 1400+ for 1BTCstill???     
sr. member
Activity: 364
Merit: 264
 Example: pubkeyN has 1000 XCP & 1000 BTC, send-cmd cost 0.0002172 BTC
                  if I enter the command to move my XCP, all these BTC are frozen...
                  why does the other 999.999 BTC need to be unavailable for 1 blocktime?
                  awesome if you can improve that by stopping to move what doesn't need to move
                  just take the 0.0002172 or what it will cost in v0.9 with OP_RETURN (back to 0.0001 BTC I hope)
                  If I moved 500 XCP, I need to wait 1 blocktime to be able to move other XCP => annoying

Unfortunately I don't think bitcoin works that way. When you are trying to send an amount (0.0002172) that does not exactly match an unspent output, a transaction has to be made that takes the remaining amount and sends it back as change. The "problem" is that the amount sent back as change is unconfirmed, and counterpartyd does not allow spending of unconfirmed outputs (while I think the main client/blockchain.info does).
sr. member
Activity: 364
Merit: 264
Is the "dividend" command already working? I'm trying to pay dividends to an asset I just created ("MAXM"), but the total amount is 0:
Code:
./counterpartyd.py dividend --from=1B9S7nhAsQeGnU6DWqaMF1G2jamLSFNJkV --quantity-per-share=1 --share-asset=MAXM
Total amount to be distributed in dividends: 0.0

Am I missing something here?

There seems to be an error where only assets set to divisible can have dividends distributed.

sr. member
Activity: 266
Merit: 250
Help and Love one another ♥
I made some test.
Here is a list of thing to improve ASAP:

- with send command (XCP or assets), some BTC are send along.
  without warning, nor choice on the amount...
  and it's a weird amount (0.0001086 BTC), which is totally useless
  Reason: with multisign, every command other than burn need a minimum of 0.0002086 BTC
  (the send command cost 0.0002172 BTC, so 0.0001086 is not enough to move again)
  I'd like at least a warning (cost x fee + y BTC moved to this destination, total = z BTC : do you accept?)
  Ideally I'd like to be able to choose this amount (0 BTC by default, or x)

- if asset == 'BTC': raise exceptions.BalanceError('Cannot send bitcoins.')
  it's such a pity, can't you modify it to be able to send (only) BTC from a selected pubkey?
  bitcoind miss this basic feature, which is annoying
  Beside, *it is possible* to send BTC trough counterprotocold, as send-cmd sent 0.0001086 BTC

- edit for this one: online exchange hided the "change" limitation to me, 'guess it cannot be improve
  every command freeze the total amount of BTC of the selected pubkey for 1 blocktime
  Example: pubkeyN has 1000 XCP & 1000 BTC, send-cmd cost 0.0002172 BTC
                  if I enter the command to move my XCP, all these BTC are frozen...
                  why does the other 999.999 BTC need to be unavailable for 1 blocktime?
                  awesome if you can improve that by stopping to move what doesn't need to move
                  just take the 0.0002172 or what it will cost in v0.9 with OP_RETURN (back to 0.0001 BTC I hope)
                  If I moved 500 XCP, I need to wait 1 blocktime to be able to move other XCP => annoying
                 
- your man help page are wrong, and unclear for new user (most important: miss = sign, which is obligatory to work)

Result example:
Code:
xcp send -h
usage: counterpartyd send [-h] --from SOURCE --to DESTINATION --quantity
                          QUANTITY --asset ASSET

optional arguments:
  -h, --help           show this help message and exit
  --from SOURCE        the source address

What I'd like to get:
Code:
xcp send -h
usage: counterpartyd send --from=pubkeySOURCE --to=pubkeyDESTINATION --quantity=QUANTITY --asset=ASSET

optional arguments:
  -h, --help           show manual
  --from=SOURCE        the source public address

hero member
Activity: 700
Merit: 500
Is the "dividend" command already working? I'm trying to pay dividends to an asset I just created ("MAXM"), but the total amount is 0:
Code:
./counterpartyd.py dividend --from=1B9S7nhAsQeGnU6DWqaMF1G2jamLSFNJkV --quantity-per-share=1 --share-asset=MAXM
Total amount to be distributed in dividends: 0.0

Am I missing something here?
legendary
Activity: 876
Merit: 1000
Etherscan.io
The transaction looks right, but the TEST/XCP value from the log looks wrong, again.

Also on blockscan:
- "Price" should include the pair (e.g. XCP/TEST) instead of just "XCP"
- For BTC/XCP, buy and sell prices look right; the "price" column is still wrong (you could derive/verify the price column by dividing the buy by the sell price...) - more confusingly only some of the prices look wrong.

(I hope this "intensive" testing is useful, BTW).

Yes, I am currently working on the order display and have updated the latest changes.. I believe I am getting closer :-). I have swapped columns for the buy/sell so that it follows the sequence of the "order" parameters command. Every order is a "buy" first


The buy prices are actually available in the order database so I am picking those up from there. However, I believe the divisibility (0 or 1 value) of NON BTC/XCP Assets can be set on a per individual basis when the asset is initially issued(generated).
sr. member
Activity: 364
Merit: 264
The transaction looks right, but the TEST/XCP value from the log looks wrong, again.

Also on blockscan:
- "Price" should include the pair (e.g. XCP/TEST) instead of just "XCP"
- For BTC/XCP, buy and sell prices look right; the "price" column is still wrong (you could derive/verify the price column by dividing the buy by the sell price...) - more confusingly only some of the prices look wrong.

(I hope this "intensive" testing is useful, BTW).
sr. member
Activity: 364
Merit: 264
Oddly I see that my order for selling 5 TEST (that I put in later, at a slightly lower price) matched first on blockscan. Do we have a fork, or will this be resolved somehow?

EDIT: need to rebuild database. Check back later.
hero member
Activity: 700
Merit: 500
With the new version, that has those rounding errors fixed, I do see 10 TEST transacted:
Code:
Order: sell 0.04 XCP for 10 TEST at 250.0000 TEST/XCP in 100 blocks (d5c06218...8a1306c5)
Order Match: 1 TEST for 0.0035 XCP at 350000.0000 XCP/TEST (dc6823b3b40f70d1...af224bf38a1306c5)
Order Match: 9 TEST for 0.036 XCP at 400000.0000 XCP/TEST (a751987c40ff7dd9...af224bf38a1306c5)
Order Match: 0 TEST for 0.0 XCP at 400000.0000 XCP/TEST (f94c5812d2c2b62d...af224bf38a1306c5)

(Obviously that last match is funny. I'll fix it.)

On the old version, it's only 1 TEST.
Code:
Burn: 1MsGuABdHyMCt2jwaFucfTJDmkWahawnSh burned 1.0 BTC for 1302.63636364 XCP (9e83d1f1...5b65eb7f)
Burn: 1Ci19UvsTEpnpEcxQBtxK9p43aYjNFjVfE burned 1.0 BTC for 1302.63636364 XCP (1b4f1062...f0314eb6)
Order: sell 0.04 XCP for 10 TEST at 250.0000 TEST/XCP in 100 blocks (d5c06218...8a1306c5)
Order Match: 1 TEST for 0.0035 XCP at 350000.0000 XCP/TEST (dc6823b3b40f70d1...af224bf38a1306c5)

I just rebuild the database and I can see the orders being matched now. My address received 11 TEST (1+10) so this seems to be working well now.

How is the expiration value calculated and what is this based on? I assume this is countdown from a specific start time? If yes, is the specific start time based on the block time or some other value?

I think the expiration value is just the amount of blocks the order is valid for. When creating a new order you can set the expiration value yourself.
legendary
Activity: 876
Merit: 1000
Etherscan.io

I'm pretty sure that that's a bug in blockscan.com. Amounts of indivisible assets (like TEST) should not be divided by 10^8 for display the way that divisible assets are.


Sorry about that. The assets (like TEST) should not be divided as they are not denominated in "satoshi's style". I have updated the view->order page on blockscan

How is the expiration value calculated and what is this based on? I assume this is countdown from a specific start time? If yes, is the specific start time based on the block time or some other value?

Cheers
newbie
Activity: 28
Merit: 0
When will I be able to trade XCP? Are you planning to start an exchange?
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
EDIT: I fixed the bug and pushed to GitHub.

Great, market view is working again.
Now shouldn't the system match these 2 orders?
Code:
| Give Quantity | Give Asset | Get Quantity | Get Asset |    Price     | Price Assets |  Fee   | Time Left |       Tx Hash       |
|       25      |    TEST    |     0.1      |    XCP    |    0.0040    |   XCP/TEST   | 0.0001 |    9866   | a751987c...90d05a76 |
|     0.004     |    XCP     |      1       |    TEST   |   250.0000   |   TEST/XCP   | 0.0001 |     2     | 5d46f970...518978cc |

Hmm. I'll look into that...

I put up some more TEST orders of varying sizes, if you want to try matching them.

I created a matching order (0.04 XCP <-> 10 TEST), let's see how this works out.
EDIT: it did work, I now have 1 TEST in my wallet. Awesome! Hm, I should have received 10 TEST, will wait a couple of blocks to see what happens.

Only part of your order matched due to rounding errors (?) I'm putting up more orders to better assess this.

With the new version, that has those rounding errors fixed, I do see 10 TEST transacted:
Code:
Order: sell 0.04 XCP for 10 TEST at 250.0000 TEST/XCP in 100 blocks (d5c06218...8a1306c5)
Order Match: 1 TEST for 0.0035 XCP at 350000.0000 XCP/TEST (dc6823b3b40f70d1...af224bf38a1306c5)
Order Match: 9 TEST for 0.036 XCP at 400000.0000 XCP/TEST (a751987c40ff7dd9...af224bf38a1306c5)
Order Match: 0 TEST for 0.0 XCP at 400000.0000 XCP/TEST (f94c5812d2c2b62d...af224bf38a1306c5)

(Obviously that last match is funny. I'll fix it.)

On the old version, it's only 1 TEST.
Code:
Burn: 1MsGuABdHyMCt2jwaFucfTJDmkWahawnSh burned 1.0 BTC for 1302.63636364 XCP (9e83d1f1...5b65eb7f)
Burn: 1Ci19UvsTEpnpEcxQBtxK9p43aYjNFjVfE burned 1.0 BTC for 1302.63636364 XCP (1b4f1062...f0314eb6)
Order: sell 0.04 XCP for 10 TEST at 250.0000 TEST/XCP in 100 blocks (d5c06218...8a1306c5)
Order Match: 1 TEST for 0.0035 XCP at 350000.0000 XCP/TEST (dc6823b3b40f70d1...af224bf38a1306c5)
sr. member
Activity: 364
Merit: 264
EDIT: I fixed the bug and pushed to GitHub.

Great, market view is working again.
Now shouldn't the system match these 2 orders?
Code:
| Give Quantity | Give Asset | Get Quantity | Get Asset |    Price     | Price Assets |  Fee   | Time Left |       Tx Hash       |
|       25      |    TEST    |     0.1      |    XCP    |    0.0040    |   XCP/TEST   | 0.0001 |    9866   | a751987c...90d05a76 |
|     0.004     |    XCP     |      1       |    TEST   |   250.0000   |   TEST/XCP   | 0.0001 |     2     | 5d46f970...518978cc |

Hmm. I'll look into that...

I put up some more TEST orders of varying sizes, if you want to try matching them.

I created a matching order (0.04 XCP <-> 10 TEST), let's see how this works out.
EDIT: it did work, I now have 1 TEST in my wallet. Awesome! Hm, I should have received 10 TEST, will wait a couple of blocks to see what happens.

Only part of your order matched due to rounding errors (?) I'm putting up more orders to better assess this.
sr. member
Activity: 390
Merit: 254
Counterparty Developer
The drawback is that they will have no enough money to hire more developers and provide bounties. The advantage is that the community is more willing to contribute to this project as long as they get some XCP. It's like open-source community project vs. private company project.

That my point exactly, where from these XCP's are going to be paid off?

If the developers are not allocating some development fund (and apparently they not), the only source for these XCP would be the community, which may actually prefer hoarding the coins, rather then donating them for the cause.

Any thoughts from developers about this potential issue?

We are in a position to be able to support bounties at least during that crucial initial 3-6 month period post-burn. Our goal for bounties is that the amount awarded is enough to motivate people to build things around Counterparty, which themselves will quite often generate revenue (or give them benefit in some other way). Publicity and community awareness will also be a big focus as well (and a way in which non-developers can easily get involved). This all being said, bounties won't be nearly as large as with Mastercoin, for instance -- due to their different offering model. However, we believe that the functionality and opportunity that Counterparty already provides as a base framework creates ample opportunity, and bounties will really help kickstart community and possibly corporate developments around it, as well as getting the word out to people and organizations that would find what we have here to be useful.
hero member
Activity: 700
Merit: 500
EDIT: I fixed the bug and pushed to GitHub.

Great, market view is working again.
Now shouldn't the system match these 2 orders?
Code:
| Give Quantity | Give Asset | Get Quantity | Get Asset |    Price     | Price Assets |  Fee   | Time Left |       Tx Hash       |
|       25      |    TEST    |     0.1      |    XCP    |    0.0040    |   XCP/TEST   | 0.0001 |    9866   | a751987c...90d05a76 |
|     0.004     |    XCP     |      1       |    TEST   |   250.0000   |   TEST/XCP   | 0.0001 |     2     | 5d46f970...518978cc |

Hmm. I'll look into that...

I put up some more TEST orders of varying sizes, if you want to try matching them.

I created a matching order (0.04 XCP <-> 10 TEST), let's see how this works out.
EDIT: it did work, I now have 1 TEST in my wallet. Awesome! Hm, I should have received 10 TEST, will wait a couple of blocks to see what happens.
Jump to: