Counterpartyd: Technical support thread

[quote author=xnova link=topic=22.msg145#msg145 date=1391537016]
Please UNINSTALL counterpartyd (via “Add/Remove Programs” or “Programs and Features” on the control panel), then install the updated version at https://github.com/xnova/counterpartyd_binaries/raw/master/counterpartyd-v0.2-DEV-amd64_install.exe


Let us know if this potential send bug is resolved or still an issue.
[/quote]


Thanks, but it’s worse. I’ve uninstalled and the database has been uninstalled aswell, and when counterparty server tries to rebuild it show a stream of errors like this for each block


[quote]
Block (reparse): 278921
Traceback (most recent call last):
  File “C:\Python32\Lib\logging\init.py”, line 942, in emit
  File “C:\Python\64-bit\3.2\lib\encodings\cp1252.py”, line 19, in encode
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u2010’ in position
51: character maps to
Logged from file init.py, line 1767[/quote]


I’ll try building and running from source

[quote author=NotSure link=topic=22.msg146#msg146 date=1391539262]
[quote author=xnova link=topic=22.msg145#msg145 date=1391537016]
Please UNINSTALL counterpartyd (via “Add/Remove Programs” or “Programs and Features” on the control panel), then install the updated version at https://github.com/xnova/counterpartyd_binaries/raw/master/counterpartyd-v0.2-DEV-amd64_install.exe


Let us know if this potential send bug is resolved or still an issue.
[/quote]


Thanks, but it’s worse. I’ve uninstalled and the database has been uninstalled aswell, and when counterparty server tries to rebuild it show a stream of errors like this for each block


[quote]
Block (reparse): 278921
Traceback (most recent call last):
  File “C:\Python32\Lib\logging\init.py”, line 942, in emit
  File “C:\Python\64-bit\3.2\lib\encodings\cp1252.py”, line 19, in encode
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u2010’ in position
51: character maps to
Logged from file init.py, line 1767[/quote]


I’ll try building and running from source
[/quote]


That’s the best bet. The currently installer is based off of the develop branch, since I can’t build one with the zeromq dependency (which has since been removed in develop). However, develop is not stable yet. Your best bet is to build from master, from source.

[quote author=xnova link=topic=22.msg145#msg145 date=1391537016]
Please UNINSTALL counterpartyd (via "Add/Remove Programs" or "Programs and Features" on the control panel), then install the updated version at https://github.com/xnova/counterpartyd_binaries/raw/master/counterpartyd-v0.2-DEV-amd64_install.exe


Let us know if this potential send bug is resolved or still an issue.
[/quote]
its working! its ALIVE!
xnova YOU ARE THE BOSS!

[quote author=peled1986 link=topic=22.msg149#msg149 date=1391544766]
[quote author=xnova link=topic=22.msg145#msg145 date=1391537016]
Please UNINSTALL counterpartyd (via "Add/Remove Programs" or "Programs and Features" on the control panel), then install the updated version at https://github.com/xnova/counterpartyd_binaries/raw/master/counterpartyd-v0.2-DEV-amd64_install.exe


Let us know if this potential send bug is resolved or still an issue.
[/quote]
its working! its ALIVE!
xnova YOU ARE THE BOSS!
[/quote]


Good to hear. :smiley:

Thanks xnova. Unlocking the wallet temporary indeed did the trick.


Next question. I want to buy XCP through an order. How to do it? I have a matched order, but do not see my XCP nor does my BTC get debited. Do I need btcpay to finalize the order? Seems strange, but… can’t find a simple example anywhere  :-[

ok so I need btcpay and order-match-id. But how can I know my order-match-id? Is the market command only showing my order-match-ids? Or everyones’? And how do I match my order to my order-match-id? I had several orders…


Thanks!  8)

Ok, figured out how to do btcpay. Turns out that the address in my wallet does not have enough btc in it left to pay for the order. But counterpartyd does not complain and acts if all is good. But I can’t finalize the transaction. And also it seems I there is no option for btcpay to use a different address. Still stuck  :-\

:slight_smile:


Actually it had worked! I’m now the proud owner of one XCP, soon 2!


…now please, can someone fill my order, 1000 XCP for 2.6 BTC?  ::slight_smile:


thanks!!

uh oh, counterpartyd tripped up by an assertion, chokes on block 284193.

[font=Verdana]assert asset != ‘BTC’ # Never BTC[/font]






c:\counterpartyd_build>echo off
Status: RESTART
Block: 284193
Send: 100.0 of asset XCP from 1FueYJfpS7Q92qHGGrbr5d4r5qn4Lz56To to 1KKPcuXvYkEqwjFRUWuDUFcLk3YQgXfVbQ (b5f95848…8fd4d9f3)
Traceback (most recent call last):
  File “c:\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 682, in
    blocks.follow(db)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\blocks.py”, line 534, in follow
    parse_block(db, block_index)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\blocks.py”, line 64, in parse_block
    cancel.parse(db, tx, message)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\cancel.py”, line 61, in parse
    util.credit(db, tx[‘source’], order[‘give_asset’], order[‘give_remaining’])
  File “c:\counterpartyd_build\dist\counterpartyd\lib\util.py”, line 257, in credit
    assert asset != ‘BTC’ # Never BTC.
AssertionError

[quote author=trilli0n link=topic=22.msg159#msg159 date=1391557934]
uh oh, counterpartyd tripped up by an assertion, chokes on block 284193.
[/quote]

You need to apply this fix here: to cancel.py

https://github.com/PhantomPhreak/counterpartyd/commit/618761da0231dd07dbca2d3efc257646d287676e


[font=verdana, sans-serif][size=2]Issue:[/size][/font]
[font=verdana, sans-serif][size=2]XCP not returned from escrow after cancellation of Order[/size][/font]

[font=verdana, sans-serif][size=2]http://blockscan.com/address.aspx?q=17PgVzRSSSjc2aN8Lyp1x9QayKzPzY2pKj[/size][/font]

[font=verdana, sans-serif][size=2]a) I placed a sell order for 250 XCP order [/size][/font]
[font=verdana, sans-serif][size=2]b) the order was matched by the engine, but the buyer did not make any payment yet. [/size][/font]
[font=verdana, sans-serif][size=2]c) I cancelled the order[/size][/font]
[font=verdana, sans-serif][size=2]d) I did not receive back the XCP from escrow[/size][/font]

[font=verdana, sans-serif][size=2]The Balance should be: 1432-400-200-200=632[/size][/font]
[font=verdana, sans-serif][size=2]Instead it is 382 XCP and 250 from Escrow is missing. [/size][/font]

[font=verdana, sans-serif][size=2]Posted this in the Bitcoin talk thread as well. [/size][/font]

Hi, can someone check this transaction?

Placed a test order to sell 200 XCP for 1.23 BTC: http://blockscan.com/tx.aspx?q=3247
1AQPf7f3y37NN9XsYkfGGALHQiW1ig3MXbfilled 17.886 XCP of the order paying 0.11 BTC but is awaiting payment: http://blockscan.com/order_match.aspx?q=3247
Meanwhile there is a BTCpay of 0.11 BTC going to 1JBp8tdzwzo5VKcKpg1QHKbYP2sKDNWGnk, but 1AQPf7f3y37NN9XsYkfGGALHQiW1ig3MXbfilled  has not been updated with an order match or a proper XCP balance. http://blockscan.com/address.aspx?q=1AQPf7f3y37NN9XsYkfGGALHQiW1ig3MXb

Something similar also happened here where an Order Match failed to go through, no BTCpay in this case though.
http://blockscan.com/order_match.aspx?q=3086

So far none of my sell side XCP orders have gone through successfully (for one reason or another). Selling to buy side XCP orders works fine though.

Also note that the last 3 btcpays have invalid order match IDs: http://blockscan.com/btcpay.aspx#


Thank you very much xnova for your help.

I got this error when trying counterpartyd server under vista x64
Running from source or after building an installer


[quote]
Traceback (most recent call last):
  File "C:\Python32\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 2
7, in
    exec(code, m.dict)
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 22, in

    from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\zeromq.py", line 14, in <m
odule>
    import zmq
  File "C:\Python32\lib\site-packages\zmq\init.py", line 29, in
    from zmq import core, devices
  File "C:\Python32\lib\site-packages\zmq\core\init.py", line 26, in <module
>
    from zmq.core import (constants, error, message, context,
  File "ExtensionLoader_zmq_core_error.py", line 22, in
  File "ExtensionLoader_zmq_core_error.py", line 14, in bootstrap
ImportError: DLL load failed: The specified module could not be found.[/quote]


I can wait the next release.

[quote author=jimhsu link=topic=22.msg192#msg192 date=1391587029]
Hi, can someone check this transaction?

Placed a test order to sell 200 XCP for 1.23 BTC: http://blockscan.com/tx.aspx?q=3247
1AQPf7f3y37NN9XsYkfGGALHQiW1ig3MXbfilled 17.886 XCP of the order paying 0.11 BTC but is awaiting payment: http://blockscan.com/order_match.aspx?q=3247
Meanwhile there is a BTCpay of 0.11 BTC going to 1JBp8tdzwzo5VKcKpg1QHKbYP2sKDNWGnk, but 1AQPf7f3y37NN9XsYkfGGALHQiW1ig3MXbfilled  has not been updated with an order match or a proper XCP balance. http://blockscan.com/address.aspx?q=1AQPf7f3y37NN9XsYkfGGALHQiW1ig3MXb

Something similar also happened here where an Order Match failed to go through, no BTCpay in this case though.
http://blockscan.com/order_match.aspx?q=3086

So far none of my sell side XCP orders have gone through successfully (for one reason or another). Selling to buy side XCP orders works fine though.

Also note that the last 3 btcpays have invalid order match IDs: http://blockscan.com/btcpay.aspx#
[/quote]

This order match (from the same person apparaently) did go through. Have no idea why.

http://blockscan.com/tx.aspx?q=3260

He seemed to be using master for the first trade, and may have switched branches the 2nd trade. I was using develop the whole time.

I’m not sure of the proper way to reconcile this (as BTCpay transactions are irreversible), but probably deducting the order value of the XCP from the account receiving the incorrect BTCpay and giving that XCP to the account that sent the BTCpay would be a start.

Announcement:

Fix for the above issue was pushed out on master to fix order matching issues. If using master, please update before doing any more BTC/XCP trades.
The develop branch which blockscan.com uses does not have this issue.

[quote author=jimhsu link=topic=22.msg206#msg206 date=1391619504]
Announcement:

Fix for the above issue was pushed out on master to fix order matching issues. If using master, please update before doing any more BTC/XCP trades.
The develop branch which blockscan.com uses does not have this issue.
[/quote]

If you didn’t get the XCP that you were supposed to due to the recently fixed order matching bug, please see this post:

https://bitcointalk.org/index.php?topic=395761.msg4957701#msg4957701

I require some help please

I am trying to use the send command and I get the following result

C:\>echo off
usage: counterpartyd send [-h] --source SOURCE --destination DESTINATION
                          --quantity QUANTITY --asset ASSET
counterpartyd send: error: argument --source is required

Is this implying the blockchain is not updated?

[quote author=TreeLeaves link=topic=22.msg218#msg218 date=1391638455]
I require some help please

I am trying to use the send command and I get the following result

C:\>echo off
usage: counterpartyd send [-h] --source SOURCE --destination DESTINATION
                          --quantity QUANTITY --asset ASSET
counterpartyd send: error: argument --source is required

Is this implying the blockchain is not updated?
[/quote]

I think you’re using some sort of batch file. Can you post the contents of it? It seems like your command syntax is incorrect.

[pre]Thanks for taking a look Jimshu.

I dont have a batch file. The only file I edited was the Counterpartyd conf to change the rpc password.

The actual send command I used was

counterpartyd send --from=[XXXXxx] --to=[XXXXX] --asset=XCP --quantity=100

What would you suggest?
[/pre]