xnova
Sr. Member
Offline
Activity: 390
Merit: 254
Counterparty Developer
|
|
January 15, 2014, 12:54:32 AM |
|
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).
|
|
|
|
panonym
Sr. Member
Offline
Activity: 266
Merit: 250
Help and Love one another ♥
|
|
January 15, 2014, 01:17:27 AM |
|
*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
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
|
|
January 15, 2014, 02:51:46 AM |
|
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
Activity: 390
Merit: 254
Counterparty Developer
|
|
January 15, 2014, 02:59:12 AM |
|
*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.
|
|
|
|
PhantomPhreak (OP)
Sr. Member
Offline
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
|
|
January 15, 2014, 03:06:48 AM |
|
- 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
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
|
|
January 15, 2014, 03:11:09 AM |
|
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
Activity: 882
Merit: 1000
|
|
January 15, 2014, 03:33:08 AM |
|
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
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
|
|
January 15, 2014, 03:40:09 AM |
|
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
|
|
January 15, 2014, 03:47:48 AM |
|
Sorry guys, looks I broke something again .... 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
|
|
January 15, 2014, 03:50:42 AM Last edit: January 15, 2014, 04:03:16 AM by jimhsu |
|
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
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
|
|
January 15, 2014, 04:07:50 AM |
|
Sorry guys, looks I broke something again .... 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
|
|
January 15, 2014, 04:21:29 AM |
|
Sorry guys, looks I broke something again .... 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
Activity: 876
Merit: 1000
Etherscan.io
|
|
January 15, 2014, 04:27:13 AM Last edit: January 15, 2014, 07:28:41 AM by mtbitcoin |
|
I burn 1BTC which is included in block 280513, next block the whole thing is down. I can't show up anywhere. 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
|
|
|
|
BitThink
Legendary
Offline
Activity: 882
Merit: 1000
|
|
January 15, 2014, 08:20:25 AM |
|
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.
|
|
|
|
mtbitcoin
Legendary
Offline
Activity: 876
Merit: 1000
Etherscan.io
|
|
January 15, 2014, 09:15:42 AM |
|
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. Have you tried blockr.io ( http://blockr.io/documentation/api) ? cheers
|
|
|
|
BitThink
Legendary
Offline
Activity: 882
Merit: 1000
|
|
January 15, 2014, 09:48:06 AM Last edit: January 15, 2014, 10:06:27 AM by BitThink |
|
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. 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. 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
Activity: 876
Merit: 1000
Etherscan.io
|
|
January 15, 2014, 10:07:04 AM |
|
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. 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. sure If you don't mind me asking which API are you using to retrieve your "pending confirmations" burn?
|
|
|
|
SyRenity
|
|
January 15, 2014, 10:15:31 AM |
|
How it possible to get some test XCP?
|
|
|
|
BitThink
Legendary
Offline
Activity: 882
Merit: 1000
|
|
January 15, 2014, 10:18:37 AM |
|
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. 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. sure 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
Activity: 882
Merit: 1000
|
|
January 15, 2014, 10:19:58 AM |
|
How it possible to get some test XCP?
You can burn some test BTCs, or ask someone having test XCPs to send you some.
|
|
|
|
|