MultiChain explorer throwing TypeError on catchup

+1 vote
block_tx 74 79
block_tx 75 80
block_tx 76 81
block_tx 76 82
Exception at 22791
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 100000, 'chain_id': 1, 'loader': u'default', 'conf': None, 'dirname': u'/home/ivaylo/.multichain/chain1', 'id': 11}
Traceback (most recent call last):
  File "Mce/", line 2855, in catch_up
  File "Mce/", line 3166, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Mce/", line 3298, in import_blkdat
    store.import_block(b, chain = chain)
  File "Mce/", line 1195, in import_block
    tx['tx_id'] = store.import_tx(tx, pos == 0, chain)
  File "Mce/", line 2115, in import_tx
    address = util.hash_to_address_multichain(vers, pubkey_hash, checksum)
  File "Mce/", line 141, in hash_to_address_multichain
    vh += hash[pos:pos+5]
TypeError: cannot concatenate 'str' and 'list' objects


Here's the last few lines of the stacktrace. Any clue what's going on? I don't know if this is a coincidence or not but I was following the getting started tutorial and at one point I ran the getblock 83 command (I also mistyped it as getblock [83] and getblock [83 not sure if relevant), and I notice that the exception is thrown at that exact block.
asked Oct 23, 2016 by Ivaylo
We've forwarded this to the right person and will be in touch shortly.
I've been following the getting started guide and am getting the same error, would be interested to know what the resolution is.
Hi Guy, sharing what worked for me, whenever you name your keys in your publishes, don't use any space, like "account number", instead use dashes, "account-number". Then you will get a really clean stack trace.

You won't see this anymore:

TypeError: cannot concatenate 'str' and 'list' objects

1 Answer

0 votes

@Ivaylo @karlstc Can you please zip up your .multichain/chain1 folder and email it to me, along with your explorer folder (containing your .conf and .sqlite file)?  Email to simon at coinsciences dot com. 

Also please let me know which version of MultiChain you are using e.g. v24 or v25.  Thanks.

answered Oct 30, 2016 by simon
edited Oct 31, 2016 by simon