Author

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

legendary
Activity: 1708
Merit: 1000
Reality is stranger than fiction
Note that you will need BTC on this same address to be able to move your XCP. So keep some.

I've emptied a (several) blockchain wallets to burn, is this an issue? do I need to add some bitcoin to them?


I'd like to know that too, but my wallets are in qt. If some bitcoin are needed, I'd like to know the minimum amount.
legendary
Activity: 882
Merit: 1000
Note that you will need BTC on this same address to be able to move your XCP. So keep some.

I've emptied a (several) blockchain wallets to burn, is this an issue? do I need to add some bitcoin to them?
No need. You could not use XCP with blockchain wallet anyway. Later, you need to export your private key to bitcoind and use couterparyd to use them.
hero member
Activity: 714
Merit: 502
Note that you will need BTC on this same address to be able to move your XCP. So keep some.

I've emptied a (several) blockchain wallets to burn, is this an issue? do I need to add some bitcoin to them?
legendary
Activity: 882
Merit: 1000
No, yours is much better. I actually don't have enough time to polish mine and just want to setup an usable tool as soon as possible. Now with yours online I can safely leave it as it is, and hopefully it is still useful as a backup and a double check. Smiley
legendary
Activity: 876
Merit: 1000
Etherscan.io
Hi

Just as a heads up.. I started working on a XCP CounterParty block explorer shortly after the project was publicly posted, and I would like to announce that I have a live beta version available at http://www.blockscan.com

There is some basic search functionality to allow you to look up your block balance easily and also to see the transaction history for burned blocks. At the moment this only included confirmed blocks as per the CounterParty client

If you have any suggestions, feedback or bug reports do let me know.

Cheers



Very cool site. Much better than my version.   Cheesy

I think I really need to squeeze some time to learn bootstrap.

Thank you

I wasn't aware you were working on a block explorer too or I might have given this a pass Cheesy

But I had already started this earlier and it was a good opportunity to play with bootstrap. Anyway it's always good to have alternate sites and backups


Cheers
legendary
Activity: 1232
Merit: 1001
Another bug report

Quote
Traceback (most recent call last):
  File "./counterpartyd.py", line 465, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'


I have a patch for this

Quote
diff --git a/counterpartyd.py b/counterpartyd.py
index 779ee12..1bbf2bd 100755
--- a/counterpartyd.py
+++ b/counterpartyd.py
@@ -15,7 +15,8 @@ from prettytable import PrettyTable
 
 import time
 import dateutil.parser
-from datetime import datetime
+import datetime
+import calendar
 
 from lib import (config, util, exceptions, bitcoin, blocks)
 from lib import (send, order, btcpay, issuance, broadcast, bet, dividend, burn, cancel, util)
@@ -462,7 +463,7 @@ if __name__ == '__main__':
         json_print(bitcoin.transmit(unsigned_tx_hex))
 
     elif args.action == 'bet':
-        deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
+        deadline = calendar.timegm(dateutil.parser.parse(args.deadline).utctimetuple())

Look ok?

Is there any reason to prefer calendar over datetime here, generally? That is, will we not have other problems with this new version?

Portability: datetime.timestamp is Python 3.3 only, whereas calendar.timegm works in both 2 and 3.3, AFAIK.

N.B. calendar.timegm expects the time to be in UTC.  What time does the XCP exchange use?
legendary
Activity: 882
Merit: 1000
Hi

Just as a heads up.. I started working on a XCP CounterParty block explorer shortly after the project was publicly posted, and I would like to announce that I have a live beta version available at http://www.blockscan.com

There is some basic search functionality to allow you to look up your block balance easily and also to see the transaction history for burned blocks. At the moment this only included confirmed blocks as per the CounterParty client

If you have any suggestions, feedback or bug reports do let me know.

Cheers



Very cool site. Much better than my version.   Cheesy

I think I really need to squeeze some time to learn bootstrap.
full member
Activity: 155
Merit: 100
i need some helps please,

i followed the guide on this link http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html to build from source, everything went fine until the last command when i hit c:/python33/python.exe setup.py,
an error msg was return saying something like command failed: 'pushd %temp% && c:/python33/python.exe setup.py c:/counterpartyd_build/dist/windows/ez_setup.py && popd

can someone tell me what i should do to fix it :|
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Quote
Quote from: PhantomPhreak on January 08, 2014, 05:37:51 PM
The values of feeds are, as it were, manually chosen, and bets are made only on feeds.
That still pops red warning trust-issue in my mind...

I have a suggestion to mitigate the feed trust issue. Instead of placing bets on the data from 1 feed, users could be allowed to place bets on the median of data from multiple feeds pointed to identical data, with transaction fees split and distributed among chosen feed providers.

For even more security the bet could be on the median of medians from multiple feeds over a prolonged period of time, say 100 snapshots.

A scammer would have to control 51% of the "feed network" to scam successfully, which would be prohibitively expensive given the transaction fees it costs to maintain a feed.

EDIT: allowing multiple-feed bets also solves the issue of unexpected feed downtime as well as censorship (I'm sure Standard & Poor's would be unhappy to learn that someone is taking their market data for free and piping it into a crypto betting exchange for profit as the underlying for crypto-financial derivative contracts :-))

That won't work---all clients must agree on the exact value of a feed at any given time, and in your scenario, some clients might accept some feeds as valid, and reject others.

I also don't think that we have to worry about censorship of the broadcasts from an address. It's very hard to stop a particular Bitcoin address from being the origin of certain transactions.


Hi

Just as a heads up.. I started working on a XCP CounterParty block explorer shortly after the project was publicly posted, and I would like to announce that I have a live beta version available at http://www.blockscan.com

There is some basic search functionality to allow you to look up your block balance easily and also to see the transaction history for burned blocks. At the moment this only included confirmed blocks as per the CounterParty client

If you have any suggestions, feedback or bug reports do let me know.

Cheers

That looks great! Thanks!

I'm not sure how easy it is to do anything but burns with Counterparty and unconfirmed blocks, because of the great dependence of the protocol on the order of the transactions within a block. How deterministic is Bitcoind's arrangement of the pool of unconfirmed transactions? (Does anyone know?)

Nitpick: it should be 'Counterparty' in the website header, not 'CounterParty'.



How can I burn a bitcoin for XCP using Electrum? I don't have Bitcoin-qt installed and downloading the fullblockchain will take ages on my internet connection.

Electrum isn't supported (currently). You can use Blockchain.info to burn, however.

Thank you. Reading the guide to burn via Blockchain.info, I think I understand all of the steps and I am going to try a test amount first but what I don't understand is how to claim my XCP after I have burned my BTC?

Can you please explain this?

Where is this guide?

See http://counterpartyd-build.readthedocs.org/en/latest/HowToBurn.html.



Another bug report

Quote
Traceback (most recent call last):
  File "./counterpartyd.py", line 465, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'


I have a patch for this

Quote
diff --git a/counterpartyd.py b/counterpartyd.py
index 779ee12..1bbf2bd 100755
--- a/counterpartyd.py
+++ b/counterpartyd.py
@@ -15,7 +15,8 @@ from prettytable import PrettyTable
 
 import time
 import dateutil.parser
-from datetime import datetime
+import datetime
+import calendar
 
 from lib import (config, util, exceptions, bitcoin, blocks)
 from lib import (send, order, btcpay, issuance, broadcast, bet, dividend, burn, cancel, util)
@@ -462,7 +463,7 @@ if __name__ == '__main__':
         json_print(bitcoin.transmit(unsigned_tx_hex))
 
     elif args.action == 'bet':
-        deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
+        deadline = calendar.timegm(dateutil.parser.parse(args.deadline).utctimetuple())

Look ok?

Is there any reason to prefer calendar over datetime here, generally? That is, will we not have other problems with this new version?
legendary
Activity: 1232
Merit: 1001
Another bug report

Quote
Traceback (most recent call last):
  File "./counterpartyd.py", line 465, in
    deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
AttributeError: type object 'datetime.datetime' has no attribute 'timestamp'


I have a patch for this

Quote
diff --git a/counterpartyd.py b/counterpartyd.py
index 779ee12..1bbf2bd 100755
--- a/counterpartyd.py
+++ b/counterpartyd.py
@@ -15,7 +15,8 @@ from prettytable import PrettyTable
 
 import time
 import dateutil.parser
-from datetime import datetime
+import datetime
+import calendar
 
 from lib import (config, util, exceptions, bitcoin, blocks)
 from lib import (send, order, btcpay, issuance, broadcast, bet, dividend, burn, cancel, util)
@@ -462,7 +463,7 @@ if __name__ == '__main__':
         json_print(bitcoin.transmit(unsigned_tx_hex))
 
     elif args.action == 'bet':
-        deadline = round(datetime.timestamp(dateutil.parser.parse(args.deadline)))
+        deadline = calendar.timegm(dateutil.parser.parse(args.deadline).utctimetuple())

Look ok?
hero member
Activity: 910
Merit: 1000
How can I burn a bitcoin for XCP using Electrum? I don't have Bitcoin-qt installed and downloading the fullblockchain will take ages on my internet connection.

Electrum isn't supported (currently). You can use Blockchain.info to burn, however.

Thank you. Reading the guide to burn via Blockchain.info, I think I understand all of the steps and I am going to try a test amount first but what I don't understand is how to claim my XCP after I have burned my BTC?

Can you please explain this?

Where is this guide?
legendary
Activity: 876
Merit: 1000
Etherscan.io
Hi

Just as a heads up.. I started working on a XCP CounterParty block explorer shortly after the project was publicly posted, and I would like to announce that I have a live beta version available at http://www.blockscan.com

There is some basic search functionality to allow you to look up your block balance easily and also to see the transaction history for burned blocks. At the moment this only included confirmed blocks as per the CounterParty client

If you have any suggestions, feedback or bug reports do let me know.

Cheers

sr. member
Activity: 266
Merit: 250
Help and Love one another ♥
About burning:
Send a maximum of 1 BTC.
If you send 1 BTC, that will subtract 1.0001 BTC. The present cost is 0.0001 BTC for every transaction.
Note that you will need BTC on this same address to be able to move your XCP. So keep some.

About security:
I think the best method to ensure safety is to use an always-offline computer to sign the transaction, like the Armony offline wallet.
Yes but it only works for bitcoin as of now.
Raw transaction can also be made manually, but it's way too complex for most people.
Not even possible for XCP as of now, despite it's close link.
There is room for improvement on that important matter. For all crypto.

The values of feeds are, as it were, manually chosen, and bets are made only on feeds.
That still pops red warning trust-issue in my mind...
sr. member
Activity: 262
Merit: 250
so burning btc using counterpartyd requires to switch to testnet=0 (as in the normal qt) before burning..am i right?

Yes, both counterpartyd and bitcoind must not be on test net.
sr. member
Activity: 390
Merit: 254
Counterparty Developer
I have burned some BTC for XCP,but how to check the earned XCP?

Search for your send address after the transaction has been confirmed in the blockchain:

http://www.counterparty-explorer.com/


Thank you ,got it.
But cannt found my transaction.

All confirmed transactions will be included. Is it possible for you to share your address (or PM me) and I will check for you.

Thank you ,bitthink.
1JYC15vo3HEk2oUD2Y17aFSrj66Ueoz6GM

May be I was wrong because of the wrong set X and fee?


It's there

346   1JYC15vo3HEk2oUD2Y17aFSrj66Ueoz6GM   BTC spent: 0.10900000   XCP balance: 152.4514

Got it,many thanks , BitThink.
Your explanation is reasonable ,may be that is a typo.
Thanks again.

It is a typo. It was fixed earlier this morning but for some reason the docs at readthedocs.org didn't rebuild. I just did a manual rebuild. Thanks for catching that.
legendary
Activity: 1512
Merit: 1004
I have burned some BTC for XCP,but how to check the earned XCP?

Search for your send address after the transaction has been confirmed in the blockchain:

http://www.counterparty-explorer.com/


Thank you ,got it.
But cannt found my transaction.

All confirmed transactions will be included. Is it possible for you to share your address (or PM me) and I will check for you.

Thank you ,bitthink.
1JYC15vo3HEk2oUD2Y17aFSrj66Ueoz6GM

May be I was wrong because of the wrong set X and fee?


It's there

346   1JYC15vo3HEk2oUD2Y17aFSrj66Ueoz6GM   BTC spent: 0.10900000   XCP balance: 152.4514

Got it,many thanks , BitThink.
Your explanation is reasonable ,may be that is a typo.
Thanks again.
full member
Activity: 155
Merit: 100
so burning btc using counterpartyd requires to switch to testnet=0 (as in the normal qt) before burning..am i right?
legendary
Activity: 882
Merit: 1000
I have burned some BTC for XCP,but how to check the earned XCP?

Search for your send address after the transaction has been confirmed in the blockchain:

http://www.counterparty-explorer.com/


Thank you ,got it.
But cannt found my transaction.

All confirmed transactions will be included. Is it possible for you to share your address (or PM me) and I will check for you.

Thank you ,bitthink.
1JYC15vo3HEk2oUD2Y17aFSrj66Ueoz6GM

May be I was wrong because of the wrong set X and fee?


It's there

346   1JYC15vo3HEk2oUD2Y17aFSrj66Ueoz6GM   BTC spent: 0.10900000   XCP balance: 152.4514
legendary
Activity: 882
Merit: 1000
according to the instruction Without using counterpartydhttp://counterpartyd-build.readthedocs.org/en/latest/HowToBurn.html
e.g,I want to burn 1BTC from address A,so I should set the X=0.9999BTC, and set Miners fee=0.0001 BTC.

Code:
If you want to burn X BTC (where X <= 1 BTC) from address A, then make sure that there is exactly X + .001 BTC in address A
Why A addresss is exactly X + .001 BTC other than X + .0001 BTC(fee) ?
So what should I set the X and the fee?
Many thanks.

I think that's a typo, but I am not the authority. Smiley

It's safe to set X <= 1 and any miner fee >= 0.0001
legendary
Activity: 1512
Merit: 1004
I have burned some BTC for XCP,but how to check the earned XCP?

Search for your send address after the transaction has been confirmed in the blockchain:

http://www.counterparty-explorer.com/


Thank you ,got it.
But cannt found my transaction.

All confirmed transactions will be included. Is it possible for you to share your address (or PM me) and I will check for you.

Thank you ,bitthink.
1JYC15vo3HEk2oUD2Y17aFSrj66Ueoz6GM

May be I was wrong because of the wrong set X and fee?
Jump to: