Author

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

sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Looks like I might have finally caught up with the blockchain. I tried to check on it but the process had crashed with this error.

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

Any ideas here?

Reparse counterpartyd and try again.

Actually, I believe the problem is that he's running an old version. 520bit, tell us what counterpartyd --version returns.
sr. member
Activity: 602
Merit: 252
Looks like I might have finally caught up with the blockchain. I tried to check on it but the process had crashed with this error.

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

Any ideas here?

Reparse counterpartyd and try again.
newbie
Activity: 10
Merit: 0
Looks like I might have finally caught up with the blockchain. I tried to check on it but the process had crashed with this error.

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

Any ideas here?
hero member
Activity: 672
Merit: 500
Make sure the coins are on the same address as your XCP address. Then do a rescan.

Thanks guys, a reparse seems to have done the trick.

I've finally managed to make this work !!
sr. member
Activity: 602
Merit: 252
Can we reuse the escrow BTCs after we finished an exchange? The BTC amount send to the escrow should be 0.0001086 or 0.0001086+0.0001086 BTCs.

https://blockchain.info/tx/7b80040a18c70f279ac32c7032e69c46aff50ee76398df7babf6f9039ed2561d
sr. member
Activity: 335
Merit: 255
Counterparty Developer
Got a lib.exceptions.BalanceError: Insufficient bitcoins although my balance is 0.01 BTC.
(vista x64 running from source)

Quote
C:\counterpartyd_build>C:\Python32\python.exe run.py send --source=xxxxxxxxx1 --destination=xxxxxxxxx2 --quantity
=100 --asset=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 495, i
n
    quantity, args.asset, unsigned=args.unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 34, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, unsigned=unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 359, in
transaction
    raise exceptions.BalanceError('Insufficient bitcoins at address {}. (Need {}
 BTC.)'.format(source, total_btc_out / config.UNIT))
lib.exceptions.BalanceError: Insufficient bitcoins at address xxxxxxxxx1. (Need 0.0003172 BTC.)

try "bitcoind listunspent" to check.
and if it return nothing, try to set the date of your system. I got this error yesterday.
sr. member
Activity: 602
Merit: 252
I'm trying to get counterpartyd up and running on Debian. I have bitcoind running and I am running counterpartyd server in the background but when I try to connect to it using counterpartyd market --give-asset=BTC, I get the following error and I've not been able to figure out how to resolve it.

Traceback (most recent call last):
  File "/opt3/git/counterpartyd_build/dist/counterpartyd/counterpartyd.py", line 509\
, in
    util.database_check(db)
  File "/opt3/git/counterpartyd_build/dist/counterpartyd/lib/util.py", line 64, in d\
atabase_check
    raise exceptions.DatabaseError('Counterparty database is behind Bitcoind. Is the\
 counterpartyd server running?')
lib.exceptions.DatabaseError: Counterparty database is behind Bitcoind. Is the count\
erpartyd server running?

Can someone give me some help with what to look for?

Thanks.

You have to let counterpartyd server update to the latest bitcoin block.
legendary
Activity: 1320
Merit: 1007
Got a lib.exceptions.BalanceError: Insufficient bitcoins although my balance is 0.01 BTC.
(vista x64 running from source)

Quote
C:\counterpartyd_build>C:\Python32\python.exe run.py send --source=xxxxxxxxx1 --destination=xxxxxxxxx2 --quantity
=100 --asset=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 495, i
n
    quantity, args.asset, unsigned=args.unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 34, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, unsigned=unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 359, in
transaction
    raise exceptions.BalanceError('Insufficient bitcoins at address {}. (Need {}
 BTC.)'.format(source, total_btc_out / config.UNIT))
lib.exceptions.BalanceError: Insufficient bitcoins at address xxxxxxxxx1. (Need 0.0003172 BTC.)

Make sure the coins are on the same address as your XCP address. Then do a rescan.
hero member
Activity: 672
Merit: 500
Got a lib.exceptions.BalanceError: Insufficient bitcoins although my balance is 0.01 BTC.
(vista x64 running from source)

Quote
C:\counterpartyd_build>C:\Python32\python.exe run.py send --source=xxxxxxxxx1 --destination=xxxxxxxxx2 --quantity
=100 --asset=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 495, i
n
    quantity, args.asset, unsigned=args.unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 34, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, unsigned=unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 359, in
transaction
    raise exceptions.BalanceError('Insufficient bitcoins at address {}. (Need {}
 BTC.)'.format(source, total_btc_out / config.UNIT))
lib.exceptions.BalanceError: Insufficient bitcoins at address xxxxxxxxx1. (Need 0.0003172 BTC.)
newbie
Activity: 26
Merit: 0
It is possible to set two expire time ?

1) expire time for the order
2) expire time for the btcpay

Thks


I don't think that the btcpay expire time would ever need to float.

Why?

Because the time should be as low as possible, and the minimum time is the same across trades.

Thanks.  simpler is always better
newbie
Activity: 10
Merit: 0
I'm trying to get counterpartyd up and running on Debian. I have bitcoind running and I am running counterpartyd server in the background but when I try to connect to it using counterpartyd market --give-asset=BTC, I get the following error and I've not been able to figure out how to resolve it.

Traceback (most recent call last):
  File "/opt3/git/counterpartyd_build/dist/counterpartyd/counterpartyd.py", line 509\
, in
    util.database_check(db)
  File "/opt3/git/counterpartyd_build/dist/counterpartyd/lib/util.py", line 64, in d\
atabase_check
    raise exceptions.DatabaseError('Counterparty database is behind Bitcoind. Is the\
 counterpartyd server running?')
lib.exceptions.DatabaseError: Counterparty database is behind Bitcoind. Is the count\
erpartyd server running?

Can someone give me some help with what to look for?

Thanks.

Has your counterpartyd server caught up to the most recent block?

Maybe not. I'll check that. That's a misleading error message if that is the problem.
newbie
Activity: 10
Merit: 0
I'm trying to get counterpartyd up and running on Debian. I have bitcoind running and I am running counterpartyd server in the background but when I try to connect to it using counterpartyd market --give-asset=BTC, I get the following error and I've not been able to figure out how to resolve it.

Traceback (most recent call last):
  File "/opt3/git/counterpartyd_build/dist/counterpartyd/counterpartyd.py", line 509\
, in
    util.database_check(db)
  File "/opt3/git/counterpartyd_build/dist/counterpartyd/lib/util.py", line 64, in d\
atabase_check
    raise exceptions.DatabaseError('Counterparty database is behind Bitcoind. Is the\
 counterpartyd server running?')
lib.exceptions.DatabaseError: Counterparty database is behind Bitcoind. Is the count\
erpartyd server running?

Can someone give me some help with what to look for?

Thanks.
sr. member
Activity: 602
Merit: 252
I have another error when I make an order:

Code:
c:\counterpartyd_build>counterpartyd order --source 1XXX --get-quantity 20 --get-asset BTC --give-quantity 200 --give-asset XCP --expiration 5000 --fee_required 0.01

c:\counterpartyd_build>echo off
Transaction (unsigned): 010000000191bc9ad6c118669cb9ef0425310793357f2d42d7e27ad6c040908b1210ce22520200000000ffffffff036c2a0000000000006751410424e0d192e25d4eea9ef8ba4f32d45a025d0aa80172c45580762f3d417b
6eb804d8d7f3e1ee43863a165ae507bbf67b15bf137ed0d5072f1334e489cb6368c14d2120434e5452505254590000000a000000000000000100000004a817c8000000000052ae6c2a0000000000006751410424e0d192e25d4eea9ef8ba4f32d45a025d
0aa80172c45580762f3d417b6eb804d8d7f3e1ee43863a165ae507bbf67b15bf137ed0d5072f1334e489cb6368c14d2116000000000000000077359400138800000000000f42400000000000000000000052ae95847402000000001976a914779835a784
adb00b7cc20357da16ad282c6ff88588ac00000000
Traceback (most recent call last):
  File "c:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 522, in
    print(unsigned_tx_hex) if args.unsigned else json_print(bitcoin.transmit(unsigned_tx_hex))
  File "c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 382, in transmit
    if input('Confirm? (y/N) ') != 'y':
AttributeError: 'UnicodeOutput' object has no attribute 'errors'

How to fix the 'no attribute 'errors''?
My counterpartyd is up-to-date by the way.

Also posted here: https://forums.counterparty.co/index.php?topic=22.new#new

should be fixed, please update from git.

Thanks, it works now after update from git.
sr. member
Activity: 390
Merit: 254
Counterparty Developer
Code:
C:\python32\python.exe C:\counterpartyd_build\run.py order --source=1Fxxxxxx........ --get-quantity=20 --get-asset=BTC --give-quantity=990 --give-asset=XCP --expiration=3000 --fee_required=.0001

then

Code:
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 521, i
n
    args.expiration, fee_required, fee_provided, unsigned=args.unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\order.py", line 47, in cre
ate
    return bitcoin.transaction(source, None, None, fee_provided, data, unsigned=
unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 371, in
transaction
    transaction = serialise(inputs, destination_output, data_output, change_outp
ut, multisig=multisig, source=source, unsigned=unsigned)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 217, in
serialise
    secret_exponent, compressed = wif_to_tuple_of_secret_exponent_compressed(pri
vate_key_wif, is_test=testnet)
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

Why
Code:
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

You're running an old version of pycoin.

Easiest way to fix this, if you're using the build system, is to just rerun setup.py from a checkout of the newest code.
sr. member
Activity: 390
Merit: 254
Counterparty Developer
I have another error when I make an order:

Code:
c:\counterpartyd_build>counterpartyd order --source 1XXX --get-quantity 20 --get-asset BTC --give-quantity 200 --give-asset XCP --expiration 5000 --fee_required 0.01

c:\counterpartyd_build>echo off
Transaction (unsigned): 010000000191bc9ad6c118669cb9ef0425310793357f2d42d7e27ad6c040908b1210ce22520200000000ffffffff036c2a0000000000006751410424e0d192e25d4eea9ef8ba4f32d45a025d0aa80172c45580762f3d417b
6eb804d8d7f3e1ee43863a165ae507bbf67b15bf137ed0d5072f1334e489cb6368c14d2120434e5452505254590000000a000000000000000100000004a817c8000000000052ae6c2a0000000000006751410424e0d192e25d4eea9ef8ba4f32d45a025d
0aa80172c45580762f3d417b6eb804d8d7f3e1ee43863a165ae507bbf67b15bf137ed0d5072f1334e489cb6368c14d2116000000000000000077359400138800000000000f42400000000000000000000052ae95847402000000001976a914779835a784
adb00b7cc20357da16ad282c6ff88588ac00000000
Traceback (most recent call last):
  File "c:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 522, in
    print(unsigned_tx_hex) if args.unsigned else json_print(bitcoin.transmit(unsigned_tx_hex))
  File "c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 382, in transmit
    if input('Confirm? (y/N) ') != 'y':
AttributeError: 'UnicodeOutput' object has no attribute 'errors'

How to fix the 'no attribute 'errors''?
My counterpartyd is up-to-date by the way.

Also posted here: https://forums.counterparty.co/index.php?topic=22.new#new

should be fixed, please update from git.
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
understood thks.
So in futur versions, btcpay expire time will be 10 blocks ?

I'm thinking about it.
sr. member
Activity: 335
Merit: 255
Counterparty Developer
understood thks.
So in futur versions, btcpay expire time will be 10 blocks ?
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
It is possible to set two expire time ?

1) expire time for the order
2) expire time for the btcpay

Thks


I don't think that the btcpay expire time would ever need to float.

Why?

Because the time should be as low as possible, and the minimum time is the same across trades.
newbie
Activity: 26
Merit: 0
It is possible to set two expire time ?

1) expire time for the order
2) expire time for the btcpay

Thks


I don't think that the btcpay expire time would ever need to float.

Why?
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
It is possible to set two expire time ?

1) expire time for the order
2) expire time for the btcpay

Thks


I don't think that the btcpay expire time would ever need to float.
Jump to: