Post
Topic
Board Service Announcements
Re: [ANN] Joinmarket - Coinjoin that people will actually use
by
Mythoughts
on 17/04/2016, 09:01:52 UTC
My patientsendpayments seems to crash every time someone actually tries to initiate a transaction.
First I assumed there might have been some communication problem, but now this has happend two times in a row making that reason unlikely.

Running Debian Jessy, Joinmarket with bitcoind, both over TOR. Start command:
python patientsendpayment.py -f 5000 -w 48 -c 5000 wallet.json 1000000

There's >0.1btc in mixing level 0 of the wallet, the payment to be sent was 0.01 btc.

Debug log:

Code:
2016-04-17 10:45:42,171 [MainThread  ] [DEBUG]  new cjorder nick=TakerNickName oid=0 amount=279749
2016-04-17 10:45:42,171 [MainThread  ] [DEBUG]  get_utxos_by_mixdepth =
{0: {u':1': {'address': u'',
                                                                             'value': 12000000}}}
2016-04-17 10:45:42,171 [MainThread  ] [DEBUG]  for mixdepth=0 amount=279749 selected:
2016-04-17 10:45:42,171 [MainThread  ] [DEBUG]  [{'utxo': u':1',
  'value': 15000000}]
2016-04-17 10:45:42,196 [MainThread  ] [DEBUG]  maker utxos = {u':1': {'address': u'',
                                                                         'value': 12000000}}
2016-04-17 10:45:42,362 [MainThread  ] [DEBUG]  >>privmsg nick=TakerNickName cmd=pubkey msg=
2016-04-17 10:45:45,301 [MainThread  ] [DEBUG]  <2016-04-17 10:45:45,317 [MainThread  ] [DEBUG]  CRASHING, DUMPING EVERYTHING
2016-04-17 10:45:45,317 [MainThread  ] [DEBUG]  Class debug dump, name:Wallet
2016-04-17 10:45:45,317 [MainThread  ] [DEBUG]  key=unspent
2016-04-17 10:45:45,317 [MainThread  ] [DEBUG]  {u':1': {'address': u'',
                                                                         'value': 12000000}}
2016-04-17 10:45:45,317 [MainThread  ] [DEBUG]  key=gaplimit
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  6
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  key=index
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  [[2, 1]]
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  key=index_cache
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  [[2, 1]]
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  key=spent_utxos
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  []
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  key=utxo_selector
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  key=path
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  string: len:19
2016-04-17 10:45:45,318 [MainThread  ] [DEBUG]  wallets/wallet.json
2016-04-17 10:45:45,319 [MainThread  ] [DEBUG]  key=storepassword
2016-04-17 10:45:45,319 [MainThread  ] [DEBUG]  False
2016-04-17 10:45:45,319 [MainThread  ] [DEBUG]  key=max_mix_depth
2016-04-17 10:45:45,319 [MainThread  ] [DEBUG]  1
2016-04-17 10:45:45,319 [MainThread  ] [DEBUG]  key=imported_privkeys
2016-04-17 10:45:45,319 [MainThread  ] [DEBUG]  {}
Traceback (most recent call last):
  File "patientsendpayment.py", line 241, in main
    irc.run()
  File "/home/username/joinmarket-develop/joinmarket/irc.py", line 657, in run
    self.__handle_line(line)
  File "/home/username/joinmarket-develop/joinmarket/irc.py", line 540, in __handle_line
    self.__handle_privmsg(_chunks[0], _chunks[2], get_irc_text(line))
  File "/home/username/joinmarket-develop/joinmarket/irc.py", line 491, in __handle_privmsg
    self.__on_privmsg(nick, parsed)
  File "/home/username/joinmarket-develop/joinmarket/irc.py", line 377, in __on_privmsg
    self.on_seen_auth(nick, i_utxo_pubkey, btc_sig)
  File "/home/username/joinmarket-develop/joinmarket/maker.py", line 253, in on_seen_auth
    self.active_orders[nick].auth_counterparty(nick, pubkey, sig)
  File "/home/username/joinmarket-develop/joinmarket/maker.py", line 96, in auth_counterparty
    btc_pub = btc.privtopub(btc_key)
  File "/home/username/joinmarket-develop/bitcoin/main.py", line 280, in privkey_to_pubkey
    f = get_privkey_format(privkey)
  File "/home/username/joinmarket-develop/bitcoin/main.py", line 191, in get_privkey_format
    elif len(priv) == 32: return 'bin'
TypeError: object of type 'NoneType' has no len()
done


Edit:
New entries in the bitcoind-debug.log as well. This I've also not seen before I I started using Joinmarkt... google didnt help with that error message:
Code:
2016-04-17 11:41:45 AddToWallet   update
2016-04-17 11:41:45 runCommand error: system(curl -sI --connect-timeout 1 http://localhost:62602/walletnotify?) returned 1792