# Counterpartyd v9.45.0 released & how to update

**URL:** https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515
**Category:** Counterparty
**Created:** [October 24, 2014, 3:56am UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515 "2014-10-24T03:56:54Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)
#### Post date: [October 24, 2014, 3:56am UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/1 "2014-10-24T03:56:54Z")

</div>

counterpartyd v9.45.0 has been released.

  

**CHANGELOG** for 9.45.0:

  

- v9.45.0 (2014-10-23)

  - add dividend fee of 0.0002 XCP per recipient (protocol change: 330000)

This update has a lot of new code, but very little that touches the protocol on mainnet. Users will have to upgrade by block 330000 (about three weeks from now), however.

  

**UPGRADE** (example for Windows, upgrading from&nbsp;&nbsp;v9.42.0 of counterpartyd)

  

Backup your wallet if you want.

  

1. Start bitcoind, allow it to catch up with the blockchain  

2.&nbsp;Start&nbsp;elevated Windows command prompt

3.&nbsp;Upgrade&nbsp;(I use python 3.3.5.)

cd c:\counterparty\_build

python setup.py update

4. Start counterpartyd and let it automatically reparse the DB:

counterpartyd server

  

**INSTALL&nbsp;**

  

Those who are new to Counterparty can read the fine document:

  

[http://counterparty.io/docs/build-system/build-from-source/](http://counterparty.io/docs/build-system/build-from-source/)  

  

**WARNING** (example for Windows)

  

Right now when you start an older version of counterpartyd you’ll get reminded that you should upgrade before block 330000.

  

C:\Windows\System32\>echo off

Status: Running v9.42.0 of counterpartyd.

Status: Connecting to database.

Status: Checking version.

C:\counterpartyd\_build\dist\counterpartyd\lib\util.py:378: UserWarning: Your ve

sion of counterpartyd is v9.42.0, but, as of block 330000, the minimum version

s v9.45.0. Reason: ‘dividend fees’. Please upgrade to the latest version and re

tart the server.

&nbsp; warnings.warn(explanation)

Status: Connecting to block explorer.

Status: Connecting to backend.

…

---

<div class="post-metadata">

### Author: ![JPJA](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/jpja/32/1324_2.png) [@JPJA](https://forums.counterparty.io/u/JPJA)
#### Post date: [October 24, 2014, 6:37am UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/2 "2014-10-24T06:37:12Z")

</div>

> - add dividend fee of 0.0002 XCP per recipient (protocol change: 330000)

Is there a technical reason for this, e.g. daily dividends for an asset would drain a lot of resources?&nbsp;  
Or is the fee meant to discourage spammers?

  

Is the fee burned or will it go to the dividend recipient?

---

<div class="post-metadata">

### Author: ![Equality\_7\_2521](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@Equality\_7\_2521](https://forums.counterparty.io/u/Equality_7_2521)
#### Post date: [October 24, 2014, 1:09pm UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/3 "2014-10-24T13:09:27Z")

</div>

> > - add dividend fee of 0.0002 XCP per recipient (protocol change: 330000)
> 
> Is there a technical reason for this, e.g. daily dividends for an asset would drain a lot of resources?&nbsp;  
> Or is the fee meant to discourage spammers?
> 
>   
> 
> Is the fee burned or will it go to the dividend recipient?

Presumably it is a spam prevention measure. Edit: Adam just wrote this in the Counterparty README.md: -  
  
“There is a small fee per recipient with dividends, to prevent SPAM.”  
  
The fee is burned according to him: -  
  
[23/10/2014 21:31:09] Equality 7-2521: Is that “dividend fee of 0.0002 XCP” burned? Presumably it is.  
[23/10/2014 23:07:30] adamkrellenstein: @equality, yes.

---

<div class="post-metadata">

### Author: ![JPJA](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/jpja/32/1324_2.png) [@JPJA](https://forums.counterparty.io/u/JPJA)
#### Post date: [October 24, 2014, 3:28pm UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/4 "2014-10-24T15:28:41Z")

</div>

+1

---

<div class="post-metadata">

### Author: ![mtbitcoin](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/mtbitcoin/32/389_2.png) [@mtbitcoin](https://forums.counterparty.io/u/mtbitcoin)
#### Post date: [October 25, 2014, 9:41am UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/5 "2014-10-25T09:41:34Z")

</div>

@something

I always dread the upgrades ...... I am using python 3.4.1 (on windows - [http://counterparty.io/docs/build-system/build-from-source/](http://counterparty.io/docs/build-system/build-from-source/)) as per the counterparty docs and&nbsp;have updated as per the instructions but I am running into the following issues when attempting to start the daemon. I assume I am missing one of&nbsp;the dependencies ??&nbsp;

Traceback (most recent call last):  
&nbsp;&nbsp;...  
&nbsp;&nbsp;&nbsp; ssl = ctypes.cdll.LoadLibrary(ctypes.util.find\_library ('ssl') or 'libeay32  
)  
&nbsp; File "C:\\Python34\\Lib\\ctypes\\_\_init\_\_.py", line 429, in LoadLibrary  
&nbsp;&nbsp;&nbsp; return self.\_dlltype(name)  
&nbsp; File "C:\\Python34\\Lib\\ctypes\\_\_init\_\_.py", line 351, in \_\_init\_\_  
&nbsp;&nbsp;&nbsp; self.\_handle = \_dlopen(self.\_name, mode)  
OSError: [WinError 126] The specified module could not be found

---

<div class="post-metadata">

### Author: ![robby\_dermody](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/robby_dermody/32/226_2.png) [@robby\_dermody](https://forums.counterparty.io/u/robby_dermody)
#### Post date: [October 25, 2014, 2:40pm UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/6 "2014-10-25T14:40:38Z")

</div>

> Ok. figured out the above.
> 
> Missing openssl dlls. A&nbsp;separate install for openssl is&nbsp;required to run counterpartyd

Did you download it from&nbsp;[http://slproweb.com/download/Win32OpenSSL\_Light-1\_0\_1j.exe](http://slproweb.com/download/Win32OpenSSL_Light-1_0_1j.exe) &nbsp;??? If so, I can enhance the installation docs to add that as a prerequisite

---

<div class="post-metadata">

### Author: ![mtbitcoin](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/mtbitcoin/32/389_2.png) [@mtbitcoin](https://forums.counterparty.io/u/mtbitcoin)
#### Post date: [October 25, 2014, 2:53pm UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/7 "2014-10-25T14:53:42Z")

</div>

> > Ok. figured out the above.
> > 
> > Missing openssl dlls. A&nbsp;separate install for openssl is&nbsp;required to run counterpartyd
> 
> Did you download it from&nbsp;[http://slproweb.com/download/Win32OpenSSL\_Light-1\_0\_1j.exe](http://slproweb.com/download/Win32OpenSSL_Light-1_0_1j.exe) &nbsp;??? If so, I can enhance the installation docs to add that as a prerequisite

Yes, that’s what I installed

---

<div class="post-metadata">

### Author: ![mtbitcoin](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/mtbitcoin/32/389_2.png) [@mtbitcoin](https://forums.counterparty.io/u/mtbitcoin)
#### Post date: [October 25, 2014, 1:55pm UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/8 "2014-10-25T13:55:10Z")

</div>

Ok. figured out the above.

Missing openssl dlls. A&nbsp;separate install for openssl is&nbsp;required to run counterpartyd

---

<div class="post-metadata">

### Author: ![mtbitcoin](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/mtbitcoin/32/389_2.png) [@mtbitcoin](https://forums.counterparty.io/u/mtbitcoin)
#### Post date: [October 25, 2014, 2:56pm UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/9 "2014-10-25T14:56:24Z")

</div>

xnova:

While we are at it, I appear to be running into another issue. The prompt just stays at checking version and never moves past. Any idea?

Status: Connecting to database.  
Status: Running v9.45.0 of counterpartyd.  
Status: Checking version.

---

<div class="post-metadata">

### Author: ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)
#### Post date: [October 28, 2014, 1:58pm UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/10 "2014-10-28T13:58:02Z")

</div>

For those who didn’t read the Github issues related to SSL, these two may be necessary and new compared to a previous version (such as 9.42.0) on Windows.

  

For x86: [http://slproweb.com/download/Win32OpenSSL\_Light-1\_0\_1j.exe](http://slproweb.com/download/Win32OpenSSL_Light-1_0_1j.exe)
 
This package Microsoft Visual C++ 2008 Redistributable Package (x86) may be necessary too:
 
[http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF](http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF)
 
  

 
For x64 the current OpenSSL binary package from the same site: [http://slproweb.com/download/Win64OpenSSL\_Light-1\_0\_1j.exe](http://slproweb.com/download/Win64OpenSSL_Light-1_0_1j.exe)
 
The same Microsoft package but for SP1 and x64 architecture can be found here: [http://www.microsoft.com/en-us/download/details.aspx?id=2092](http://www.microsoft.com/en-us/download/details.aspx?id=2092)
 
  

 
Refer to [http://slproweb.com/products/Win32OpenSSL.html](http://slproweb.com/products/Win32OpenSSL.html) for additional details.
 
  

The SSL requirement was added to counterpartyd in August 2014, but wasn’t added to counterpartyd\_build for Windows.  

[https://github.com/CounterpartyXCP/counterpartyd/commit/ffde476f2969a3cac09198aae7da591a591de820](https://github.com/CounterpartyXCP/counterpartyd/commit/ffde476f2969a3cac09198aae7da591a591de820)  

I probably had OpenSSL libs installed from another program on my Windows.

---

<div class="post-metadata">

### Author: ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)
#### Post date: [November 14, 2014, 10:24am UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/11 "2014-11-14T10:24:32Z")

</div>

Another update for those who haven’t updated to Counterparty 9.45.0 yet:

1. The current Federated Node installer (setup\_federated\_node.py) since 2 days ago contains a new version (actually the same version, but patched) of bitcoin.
2. If you updated, you’re good (to go past block 330K).  
If you haven’t, once the blockchain hits the 330K mark, your counterpartyd 9.42.0 will stop working and you’ll have to update it in order to participate in the protocol network. Because the update installs a patched bitcoin-qt, you need to reindex your blockchain from the beginning, which takes many hours.  
(It is possible to un-install the patched bitcoind and install the stock bitcoind 0.9.2, but you may break your setup, otherwise its’ not harmful to use the non-patched version for now.)

counterpartyd users - because setup.py does not install Bitcoin-Qt - can update and keep using their existing version of bitcoin-qt.

What’s the deal with the patched version of bitcoind? It is required for the multisig functionality. Once Counterparty multisig goes live on the mainnet, everyone on it will have to have a patched bitcoind (with that specific addrindex patch).  
It is recommended to install this patched version sooner rather than later (remember to backup your important data (especially if you have a non-empty wallet on your system) prior to doing this.

Some additional info about this procedure:  
[http://support.counterparty.io/support/solutions/articles/5000505729-counterparty-federated-node-and-counterpartyd-with-bitcoin-qt-and-addrindex-patch](http://support.counterparty.io/support/solutions/articles/5000505729-counterparty-federated-node-and-counterpartyd-with-bitcoin-qt-and-addrindex-patch)

---

<div class="post-metadata">

### Author: ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)
#### Post date: [November 12, 2014, 8:46am UTC](https://forums.counterparty.io/t/counterpartyd-v9-45-0-released-how-to-update/515/12 "2014-11-12T08:46:56Z")

</div>

Just a heads up: we’re at block 329662 as I write this and soon (@ 330,000) counterpartyd version 9.45.0 will be the minimum version supported.&nbsp;

Since above post there’s been several updates so workarounds shouldn’t be necessary.

  

In case you get stuck upgrading you can move ~/counterpartyd\_build to&nbsp;~/counterpartyd\_build.old and install from scratch.

Because the configuration and data files as well as wallets are by default in other locations, this should be safe.

  

Because counterpartyd needs to reparse the DB, it takes a fairly long time (on a slow PC maybe up to 30 minutes) for it to start the first time after upgrade. As long as you see the increased disk activity, it’s probably reparsing the DB so it’s best not to stop it until it’s very clear that it’s stuck.&nbsp;
