# Associate T-address to Z-address

**URL:** <https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941>\
**Category:** Technical Support\
**Created:** [November 3, 2016, 8:10pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941 "2016-11-03T20:10:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebcorse](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sebcorse](https://forum.zcashcommunity.com/u/sebcorse)\
**Post date:** [November 3, 2016, 8:10pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/1 "2016-11-03T20:10:10Z")

</div>

Hello

I begin with ZEC mining. My zcachd is running, with a Z-adress and I create a T-address to mine on Pools  
But after some hours (and some tests on zcashd to solo mine), I loose my T-address in my list  
Z-address is still here, but no more T …

Is it a way to re-associate my t-address in my wallet ?

---

<div class="post-metadata">

**Author:** ![anon](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/anon/32/4181_2.png) [@anon](https://forum.zcashcommunity.com/u/anon)\
**Post date:** [November 3, 2016, 8:30pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/2 "2016-11-03T20:30:44Z")

</div>

You’re not losing any addresses, you just need to exec

```auto
$ zcash-cli listreceivedbyaddress 0 true

```

---

<div class="post-metadata">

**Author:** ![sebcorse](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sebcorse](https://forum.zcashcommunity.com/u/sebcorse)\
**Post date:** [November 3, 2016, 8:45pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/3 "2016-11-03T20:45:52Z")

</div>

Thank you, but my first T-address is not the same as this listed by this command …  
First was t1WAoinB9ChsS8APMdpF5TTFvp2K2ibKjG4  
Current is t1Zs2DWXLRmMB7wDvKX9S438nnFctwKEvXx

---

<div class="post-metadata">

**Author:** ![sebcorse](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sebcorse](https://forum.zcashcommunity.com/u/sebcorse)\
**Post date:** [November 3, 2016, 8:55pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/4 "2016-11-03T20:55:59Z")

</div>

I have news : if I try to use my original ~/.zcash directory (fortunately backuped), I have an error  
Verifying wallet… and stop  
In db.log ;  
wallet.dat: BDB0090 DB\_VERIFY\_BAD: Database verification failed  
BDB1009 /home/seb/.zcash/wallet.dat: unsupported btree version: 10

---

<div class="post-metadata">

**Author:** ![anon](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/anon/32/4181_2.png) [@anon](https://forum.zcashcommunity.com/u/anon)\
**Post date:** [November 3, 2016, 9:02pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/5 "2016-11-03T21:02:12Z")

</div>

Shouldn’t be losing your t-addr unless another party is unknowingly exporting your wallet, making a cp for themselves remotely, purging the t-addr from said local backup, re-importing local backup and getting the zec’s destined for your wallet; highly unlikely but plausible.  
Can only suggest to back up your wallet, hash it or better, sign with your pgp key so you can verify their unique signatures and replace the payout t-addr in the pools with one of your current or a newly generated t-addr:

```auto
$ zcash-cli z_exportwallet wallet.bak
$ sha256sum wallet.bak wallet.dat > wallet.bak.sha256

```

---

<div class="post-metadata">

**Author:** ![anon](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/anon/32/4181_2.png) [@anon](https://forum.zcashcommunity.com/u/anon)\
**Post date:** [November 3, 2016, 9:04pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/6 "2016-11-03T21:04:00Z")

</div>

Run `db_dump ~/.zcash/wallet.dat` to second check validity of the db.

---

<div class="post-metadata">

**Author:** ![anon](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/anon/32/4181_2.png) [@anon](https://forum.zcashcommunity.com/u/anon)\
**Post date:** [November 3, 2016, 9:06pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/7 "2016-11-03T21:06:33Z")

</div>

issue identified - [wallet.dat got corrupted · Issue #1694 · zcash/zcash · GitHub](https://github.com/zcash/zcash/issues/1694#issuecomment-257039402)

---

<div class="post-metadata">

**Author:** ![sebcorse](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sebcorse](https://forum.zcashcommunity.com/u/sebcorse)\
**Post date:** [November 3, 2016, 10:26pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/8 "2016-11-03T22:26:19Z")

</div>

It’s much better, this issue solved my wallet problem … but it seem’s my block .dat file are corrupted too and the db\_dump solution doesn’t work this time

Zcashd stay’s on “Init message: Activating best chain…”

---

<div class="post-metadata">

**Author:** ![5thdimension](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/5thdimension/32/778_2.png) [@5thdimension](https://forum.zcashcommunity.com/u/5thdimension)\
**Post date:** [November 3, 2016, 10:51pm UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/9 "2016-11-03T22:51:49Z")

</div>

delete ./zcash block folder content (index…) it happen to me and even reindex didnt fix

---

<div class="post-metadata">

**Author:** ![anon](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/anon/32/4181_2.png) [@anon](https://forum.zcashcommunity.com/u/anon)\
**Post date:** [November 4, 2016, 2:45am UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/10 "2016-11-04T02:45:47Z")

</div>

did @5thdimension’s suggestion resolve the Init while of hell?

---

<div class="post-metadata">

**Author:** ![sebcorse](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sebcorse](https://forum.zcashcommunity.com/u/sebcorse)\
**Post date:** [November 4, 2016, 7:16am UTC](https://forum.zcashcommunity.com/t/associate-t-address-to-z-address/6941/11 "2016-11-04T07:16:06Z")

</div>

Hi  
Deleting the blocks dir unlock the startup, but I have the same result as begin  
T-adresse is t1Zs2DWXLRmMB7wDvKX9S438nnFctwKEvXx …

I think I made the .zcash backup too late, and my first t-adress t1WAoinB9ChsS8APMdpF5TTFvp2K2ibKjG4 is lost …
