Hi
Go to Github and look up the way Counterwallet creates address when you click on Create New Wallet.
@zono, the wallet may need to read a variety of different blocks from the bitcoin blockchain (e.g. a user logs in and how can CW tell his BTC balance on any particular address?) so there’s quite a lot of interaction between the two.
Let me know if you have any problems!
@zono, you made a mistake reading the config file option.
Hi Zono
- Your version of counterpartyd is v9.48.0, but, as of block 334000, the minimum version is v9.49.0. Reason: ‘hotfix: numeric asset names’. Please upgrade to the latest version and restart the server.
This is telling you you need to update to v9.49, so just run the setup part again (remove counterparty_build directory and check out from Github and run setup.py again - you do not have to change any config files after that, just run “counterpartyd server”)
-
You installed in a non-default directory so just change “/home/xcp/” to “/home/zono” in your config file path (after you update).
-
Connection refused simply means the port is not open (and it’s not open because counterparty is not running)
> I found this error below. What is this?
Hi, I am stil struggling to set up counterpartyd.
I have changed to step by step approach. But unfortunately, I encountered another issue… Could you take a look please…?
My problem:
I got “Integrity check failed.” error when I tried to start counterpartyd.
When I did:
-
Clean install Ubuntu 14.04 amd64
-
Install bitcoind and run.
cd ~
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
mkdir -p ~/.bitcoin/
echo -e “rpcuser=rpc
rpcpassword=1234
server=1
daemon=1
txindex=1” > ~/.bitcoin/bitcoin.conf
bitcoind
- Install Counterpartyd and run.
cd ~
sudo apt-get -y update
sudo apt-get -y install git-core python3
git clone https://github.com/CounterpartyXCP/counterpartyd_build ~/counterpartyd_build
cd ~/counterpartyd_build
sudo python3 setup.py --with-bootstrap-db
counterpartyd server
- I got this error below.
$ counterpartyd server
Status: Running v9.49.1 of counterpartyd.
Status: Checking version.
Status: Acquiring lock.
Status: Connecting to database.
Traceback (most recent call last):
File “/home/xcp/counterpartyd_build/dist/counterpartyd/lib/util.py”, line 376, in connect_to_db
raise exceptions.DatabaseError(‘Integrity check failed.’)
lib.exceptions.DatabaseError: Integrity check failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/xcp/counterpartyd_build/dist/counterpartyd/counterpartyd.py”, line 660, in
db = util.connect_to_db()
File “/home/xcp/counterpartyd_build/dist/counterpartyd/lib/util.py”, line 379, in connect_to_db
except exceptions.DatabaseIntegrityError:
AttributeError: ‘module’ object has no attribute ‘DatabaseIntegrityError’
-
Added a debug message
368 # Integrity check
369 integral = False
370 for i in range(10): # DUPE
371 try:
372 logging.debug(‘Status: Checking database integrity.’)
373 cursor.execute(’’‘PRAGMA integrity_check’’’)
374 rows = cursor.fetchall()
375
376 logging.warning(rows[0][0]) # ADDED THIS DEBUG
377
378 if not (len(rows) == 1 and rows[0][0] == ‘ok’):
379 raise exceptions.DatabaseError(‘Integrity check failed.’)
I put “logging.warning(rows[0][0])” and run again. Then I got this message below.
2014-12-17-T18:27:30+0900 Status: Running v9.49.1 of counterpartyd.
2014-12-17-T18:27:30+0900 Status: Checking version.
2014-12-17-T18:27:30+0900 Status: Acquiring lock.
2014-12-17-T18:27:30+0900 Status: Connecting to database.
2014-12-17-T18:37:04+0900 *** in database main ***
On page 3270 at right child: 2nd reference to page 415253
Page 415262 is never used
Hi
@zono, sumimasen, kantan no mono dake! I will check your blog!
- I wrote a how-to here. You can use this approach to pre-generate addresses and private keys as well.
Is it possible to create list of addresses and private keys from Counterwallet pass phrase? - I am not quite sure that blockchain.info wallet uses the same deterministic approach and the same word list, if it doesn’t then it wouldn’t be possible to use the Counterwallet pass phrase to access that wallet.
When you start Bitcoin and then “counterpartyd server” no other services should require to be started manually, so I think counterblockd is already running (since the API works).
“ps -ef | grep block” may give you the answer (I am on a tablet now so I cannot give you an idea how it looks on my PC).