Bitcoin Forum
May 14, 2024, 06:25:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [46] 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 ... 661 »
  Print  
Author Topic: [ANN][XCP] Counterparty - Pioneering Peer-to-Peer Finance - Official Thread  (Read 1276307 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
xnova
Sr. Member
****
Offline Offline

Activity: 390
Merit: 254

Counterparty Developer


View Profile
January 15, 2014, 12:54:32 AM
 #901

It appears there's a record for a 21000000 BTC credit from 1CUdFmgK9trTNZHALfqGvd8d6nUZqH2AAf in the list that shouldn't be there, which triggered some of the built-in sanity checking (a good thing). This could easily be ignored/skipped (as it's not valid to credit BTC via Counterparty), but I feel most comfortable leaving this bug to PhantomPhreak, given that he's been point on fixing these type of issues lately in counterpartyd (my focus has been more docs, build system/multiplatform, API, and GUIs).

He should be online rather soon to address this. Thanks for your patience guys while we work through these early issues with the distributed exchange, and the other functionality (broadcasts, bets, etc).

Visit the official Counterparty forums: http://counterpartytalk.org
1715667900
Hero Member
*
Offline Offline

Posts: 1715667900

View Profile Personal Message (Offline)

Ignore
1715667900
Reply with quote  #2

1715667900
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
panonym
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250

Help and Love one another ♥


View Profile
January 15, 2014, 01:17:27 AM
 #902

*laugh

About API:
When it's ready, does that mean XCP can be exchanged on centralized exchange too?
(Isn't there a problem for that as XCP exchange require BTC fee?)
PhantomPhreak (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 300

Counterparty Chief Scientist and Co-Founder


View Profile
January 15, 2014, 02:51:46 AM
 #903

Sorry for the delay, guys. I was AFK.

I fixed the assertion error bug, and a working version is now on GitHub.
xnova
Sr. Member
****
Offline Offline

Activity: 390
Merit: 254

Counterparty Developer


View Profile
January 15, 2014, 02:59:12 AM
 #904

*laugh

About API:
When it's ready, does that mean XCP can be exchanged on centralized exchange too?
(Isn't there a problem for that as XCP exchange require BTC fee?)

Yes...however the API interface will be different than the standard bitcoind interface, and so it will take a centralized exchange some extra work to integrate.

BTC network fees should only be an issue on XCP deposit and withdrawal from the centralized exchange, as buys and sells can be tracked using the exchange's internal trade engine, without actually requiring any actual XCP sends until the user takes the money back out to their XCP wallet.

Visit the official Counterparty forums: http://counterpartytalk.org
PhantomPhreak (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 300

Counterparty Chief Scientist and Co-Founder


View Profile
January 15, 2014, 03:06:48 AM
 #905

- 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

I'm strongly considering adding this feature.


- your man help page are wrong, and unclear for new user (most important: miss = sign, which is obligatory to work)

The equals sign is not obligatory.
PhantomPhreak (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 300

Counterparty Chief Scientist and Co-Founder


View Profile
January 15, 2014, 03:11:09 AM
 #906

  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).

With Bitcoind, I think, one may send unconfirmed change that originated from one of the addresses in your wallet. I don't think that it would be impossible to enable this in counterpartyd, too.
BitThink
Legendary
*
Offline Offline

Activity: 882
Merit: 1000



View Profile
January 15, 2014, 03:33:08 AM
 #907

May I ask a question about parsing the XCP balance

In the specification " If the sender does not hold a sufficient amount of that asset at the time that the send message is parsed (in the sequence of transactions), then the send is invalid."

May I know if there're more than one transaction in a block, what's the sequence? Is it the order inside that block (the coinbase as the first transaction).

Moreover, the same applies to the ORDERs and BIDs. An order costs XCP will be invalid if there's no efficient balance. If there're SEND, ORDER, BID, SEND in the same block. We parse them in that order and reduce balance accordingly.  They all have the same priority, right? Thanks.
PhantomPhreak (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 300

Counterparty Chief Scientist and Co-Founder


View Profile
January 15, 2014, 03:40:09 AM
 #908

May I ask a question about parsing the XCP balance

In the specification " If the sender does not hold a sufficient amount of that asset at the time that the send message is parsed (in the sequence of transactions), then the send is invalid."

May I know if there're more than one transaction in a block, what's the sequence? Is it the order inside that block (the coinbase as the first transaction).

Moreover, the same applies to the ORDERs and BIDs. An order costs XCP will be invalid if there's no efficient balance. If there're SEND, ORDER, BID, SEND in the same block. We parse them in that order and reduce balance accordingly.  They all have the same priority, right? Thanks.

That's all correct, yes.
jimhsu
Sr. Member
****
Offline Offline

Activity: 364
Merit: 264


View Profile
January 15, 2014, 03:47:48 AM
 #909

Sorry guys, looks I broke something again ....  Cry

Apparently 100,000,000,000 is too big of a number for coins.

"I was just trying to recreate DOGE .... *slinks away*"

(Wow, how many bugfixes did I cause in github today? lol)

Dans les champs de l'observation le hasard ne favorise que les esprits préparé
jimhsu
Sr. Member
****
Offline Offline

Activity: 364
Merit: 264


View Profile
January 15, 2014, 03:50:42 AM
Last edit: January 15, 2014, 04:03:16 AM by jimhsu
 #910

Still .. better that these things happen now than in the future, where things will seriously break.

Note: I would suggest a max cap, because no matter what datatype you use, someone could simply issue 999999999999999999999999999.... coins as an attack.

I haven't tested non-alphanumeric characters in the asset name yet -- is there support for that or will I crash something again?

Also check for overflow possibilities in trading, dividend payments, bets, all that.

Dans les champs de l'observation le hasard ne favorise que les esprits préparé
PhantomPhreak (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 300

Counterparty Chief Scientist and Co-Founder


View Profile
January 15, 2014, 04:07:50 AM
 #911

Sorry guys, looks I broke something again ....  Cry

Apparently 100,000,000,000 is too big of a number for coins.

"I was just trying to recreate DOGE .... *slinks away*"

(Wow, how many bugfixes did I cause in github today? lol)
Still .. better that these things happen now than in the future, where things will seriously break.

Note: I would suggest a max cap, because no matter what datatype you use, someone could simply issue 999999999999999999999999999.... coins as an attack.

I haven't tested non-alphanumeric characters in the asset name yet -- is there support for that or will I crash something again?

Absolutely. Keep 'em comin'.

I fixed the code so that it will run, but this same problem may exist elsewhere, so hold off on re-creating the problem for another twenty-four hours, maybe.

Asset names should only be upper-case alphabetic, but the code should catch all violations of that rule.
jimhsu
Sr. Member
****
Offline Offline

Activity: 364
Merit: 264


View Profile
January 15, 2014, 04:21:29 AM
 #912

Sorry guys, looks I broke something again ....  Cry

Apparently 100,000,000,000 is too big of a number for coins.

"I was just trying to recreate DOGE .... *slinks away*"

(Wow, how many bugfixes did I cause in github today? lol)
Still .. better that these things happen now than in the future, where things will seriously break.

Note: I would suggest a max cap, because no matter what datatype you use, someone could simply issue 999999999999999999999999999.... coins as an attack.

I haven't tested non-alphanumeric characters in the asset name yet -- is there support for that or will I crash something again?

Absolutely. Keep 'em comin'.

I fixed the code so that it will run, but this same problem may exist elsewhere, so hold off on re-creating the problem for another twenty-four hours, maybe.

Asset names should only be upper-case alphabetic, but the code should catch all violations of that rule.

Thanks for taking care of this right now. I won't cause any more mischief tonight ... :p



Dans les champs de l'observation le hasard ne favorise que les esprits préparé
mtbitcoin
Legendary
*
Offline Offline

Activity: 876
Merit: 1000


Etherscan.io


View Profile
January 15, 2014, 04:27:13 AM
Last edit: January 15, 2014, 07:28:41 AM by mtbitcoin
 #913

I burn 1BTC which is included in block 280513, next block the whole thing is down. I can't show up anywhere.  Tongue

But probably everyone has it, yes.
There are no transactions after block 280514: http://www.blockscan.com/

I have updated blockscan.com with the latest GIT pull and we are up todate for the explorer

EtherScan::Ethereum Block Explorer | BlockScan::Coming Soon
BitThink
Legendary
*
Offline Offline

Activity: 882
Merit: 1000



View Profile
January 15, 2014, 08:20:25 AM
 #914

I tried to adapt couterpartyd to use blockchain.info json-rpc API. Sadly, blockchain.info json-rpc API does not provide 'getrawtransaction'. It seems I have to install bitcoind in my poor VPS having only 20GB. Sad
mtbitcoin
Legendary
*
Offline Offline

Activity: 876
Merit: 1000


Etherscan.io


View Profile
January 15, 2014, 09:15:42 AM
 #915

I tried to adapt couterpartyd to use blockchain.info json-rpc API. Sadly, blockchain.info json-rpc API does not provide 'getrawtransaction'. It seems I have to install bitcoind in my poor VPS having only 20GB. Sad

Have you tried blockr.io (http://blockr.io/documentation/api) ?

cheers



EtherScan::Ethereum Block Explorer | BlockScan::Coming Soon
BitThink
Legendary
*
Offline Offline

Activity: 882
Merit: 1000



View Profile
January 15, 2014, 09:48:06 AM
Last edit: January 15, 2014, 10:06:27 AM by BitThink
 #916

I tried to adapt couterpartyd to use blockchain.info json-rpc API. Sadly, blockchain.info json-rpc API does not provide 'getrawtransaction'. It seems I have to install bitcoind in my poor VPS having only 20GB. Sad

Have you tried blockr.io (http://blockr.io/documentation/api) ?

cheers



Cool! I did not know that before. I will give it a try. Thanks a lot. Smiley

It seems they've provided all the APIs I need to parse the counterparty balance. Just sent an email to ask for the request quota.
mtbitcoin
Legendary
*
Offline Offline

Activity: 876
Merit: 1000


Etherscan.io


View Profile
January 15, 2014, 10:07:04 AM
 #917

I tried to adapt couterpartyd to use blockchain.info json-rpc API. Sadly, blockchain.info json-rpc API does not provide 'getrawtransaction'. It seems I have to install bitcoind in my poor VPS having only 20GB. Sad

Have you tried blockr.io (http://blockr.io/documentation/api) ?

cheers



Cool! I did not know that before. I will give it a try. Thanks a lot. Smiley

sure  Cheesy

If you don't mind me asking which API are you using to retrieve your "pending confirmations" burn?

EtherScan::Ethereum Block Explorer | BlockScan::Coming Soon
SyRenity
Hero Member
*****
Offline Offline

Activity: 756
Merit: 502


View Profile
January 15, 2014, 10:15:31 AM
 #918

How it possible to get some test XCP?
BitThink
Legendary
*
Offline Offline

Activity: 882
Merit: 1000



View Profile
January 15, 2014, 10:18:37 AM
 #919

I tried to adapt couterpartyd to use blockchain.info json-rpc API. Sadly, blockchain.info json-rpc API does not provide 'getrawtransaction'. It seems I have to install bitcoind in my poor VPS having only 20GB. Sad

Have you tried blockr.io (http://blockr.io/documentation/api) ?

cheers



Cool! I did not know that before. I will give it a try. Thanks a lot. Smiley

sure  Cheesy

If you don't mind me asking which API are you using to retrieve your "pending confirmations" burn?
Currently, I am only using blockchain.io's 'https://blockchain.info/address/1CounterpartyXXXXXXXXXXXXXXXUWLpVr?format=json&limit=50&offset=0' and parse the burning balance based on this.  It lists all the transactions blockchain.io see, including unconfirmed ones.
BitThink
Legendary
*
Offline Offline

Activity: 882
Merit: 1000



View Profile
January 15, 2014, 10:19:58 AM
 #920

How it possible to get some test XCP?
You can burn some test BTCs, or ask someone having test XCPs to send you some.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [46] 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 ... 661 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!