# Sharing ledger database between cardano-node and Daedalus

**URL:** <https://forum.cardano.org/t/sharing-ledger-database-between-cardano-node-and-daedalus/112015>\
**Category:** Cardano Integration\
**Tags:** daedalus, cardano\
**Created:** [26 December 2022 11:21 UTC](https://forum.cardano.org/t/sharing-ledger-database-between-cardano-node-and-daedalus/112015 "2022-12-26T11:21:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![p\_l\_p](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@p\_l\_p](https://forum.cardano.org/u/p_l_p)\
**Post date:** [26 December 2022 11:21 UTC](https://forum.cardano.org/t/sharing-ledger-database-between-cardano-node-and-daedalus/112015/1 "2022-12-26T11:21:58Z")

</div>

Hi, I am struggling running the cardano-node pointing to the Deadalus ledger.  
I wonder if you could give me some tips or point me to the right documentation/information.  
I am runnning on the Preview Tesnet.

When I run cardano-node, I can run a query that tells me the database is sync to 100%

```auto
$ ./cardano-cli query tip --testnet-magic 2
{
    "block": 258714,
    "epoch": 62,
    "era": "Babbage",
    "hash": "3967dd604e0cb538264fdfb785c0240c2bac065a21d74e82791440f12903e790",
    "slot": 5392351,
    "syncProgress": "100.00"
}

```

If I then close the node, start Daedalus, and run the same command, I get this.  
Note how the slot number is almost the same on both queries, but the sync % is very different.  
Daedalus is stuck at 44% and would not move.

```auto
$ ./cardano-cli query tip --testnet-magic 2
{
    "block": 258282,
    "epoch": 62,
    "era": "Babbage",
    "hash": "6e314d5baa938034208d1c7c082b0e8edb44985316ad159f5c079dabebd82682",
    "slot": 5383347,
    "syncProgress": "44.70"
}

```

I am running on Linux and started the node as follows.  
I think the problem may be the network configuration files.  
When I start the cardano-node, I used config files I got online.  
Perhaps the ones used by Dedalus are different? I am not sure where they get stored (Linux).

```auto
./cardano-node run --topology ./lpconfig/topology.json --database-path ~/.local/share/Daedalus/preview/chain --port 3001 --config ./lpconfig/config.json --socket-path ~/.local/share/Daedalus/preview/cardano-node.socket

```

Thanks.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [26 December 2022 11:48 UTC](https://forum.cardano.org/t/sharing-ledger-database-between-cardano-node-and-daedalus/112015/2 "2022-12-26T11:48:22Z")

</div>

Shot in the dark: If I read the announcements of IOG correctly, they introduced a feature (SECP elliptic curve cryptography in Plutus) that is only available with version 1.35.4 and that is already activated on Preview.

It seems that the node inside Daedalus is still 1.35.3. So, that might explain why it gets stuck once it reaches blocks that already use SECP. But I don’t even find the Preview/Preprod downloads on the Deadalus homepage anymore.

Personally, I don’t use Daedalus anymore for anything.

---

<div class="post-metadata">

**Author:** ![mcrio](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/mcrio/32/40017_2.png) [@mcrio](https://forum.cardano.org/u/mcrio)\
**Post date:** [26 December 2022 12:34 UTC](https://forum.cardano.org/t/sharing-ledger-database-between-cardano-node-and-daedalus/112015/3 "2022-12-26T12:34:42Z")

</div>

> [@p\_l\_p](#):
>
> Perhaps the ones used by Dedalus are different? I am not sure where they get stored (Linux).

Try in `~/.local/share/Daedalus`. The executable should be in `~/.local/bin`

Also start Daedalus, then run `ps auxf | grep -i cardano` and see if there’s some info about the process you can use. I uninstalled it long time ago so can’t test locally.
