Coder Social home page Coder Social logo

Comments (4)

xanather avatar xanather commented on August 12, 2024 1

My apologies, I think this was a logic/bug error on my end where there was an edge case where it returned true anyway if the node was fully synced but the wallet wasn't.

Seems to work fine after adjusting my code with latest release, the state is not 'ready' immediately after creating the wallet anymore.

Closing.

from cardano-wallet.

HeinrichApfelmus avatar HeinrichApfelmus commented on August 12, 2024

The strange thing is that the console says otherwise, cardano-wallet.cardano-engine is still syncing from the cardano node. E.g:

That's curious, if GET reports "status": "ready" on a wallet, then the wallet should be, well, ready. That said, there is a background process that detects stake pools, maybe that is causing the log messages.

Could you include more detailed logs? (Or contact us privately via the Cardano Foundation (Slack) if you don't want to post your logs publicly. Happy to escalate to a contact person if you like.)

from cardano-wallet.

xanather avatar xanather commented on August 12, 2024

These are the logs I receive while all my wallets are status ready as well as network/information endpoint is ready/in sync.

{"MESSAGE":"\u001b[34m[cardano-wallet.wallet-engine:Info:135]\u001b[0m [2023-09-24 09:53:04.74 UTC] 9e5295f3: Syncing (36.70% percent) Applied 6000 blocks, 0 rollbacks in the last 30.068146537s. Current tip is [point 3c4ac2fb at slot 10602566]."}

Running cardano-wallet-v2023-07-18-linux64.tar.gz, this line above appears just before shutdown once the 'in sync' state is determined. It's only at 36% due to the few times the archival node as been rebooted and is able to increment some bit before shutting back down.

Here are also some pool-engine messages around the same time:

{"MESSAGE":"\u001b[35m[cardano-wallet.pools-engine:Notice:27]\u001b[0m [2023-09-24 09:49:58.83 UTC] In sync! Applied 2267 blocks, 0 rollbacks in the last 30.013552159s. Current tip is [point 0ef01649 at slot 28892968]."}

Noticeably the ready state is available when the pool-engine sync completes before the wallet-engine?

So what is "cardano-wallet.wallet-engine:Info:135" doing?

from cardano-wallet.

HeinrichApfelmus avatar HeinrichApfelmus commented on August 12, 2024

These are the logs I receive while all my wallets are status ready as well as network/information endpoint is ready/in sync.

{"MESSAGE":"\u001b[34m[cardano-wallet.wallet-engine:Info:135]\u001b[0m [2023-09-24 09:53:04.74 UTC] 9e5295f3: Syncing (36.70% percent) Applied 6000 blocks, 0 rollbacks in the last 30.068146537s. Current tip is [point 3c4ac2fb at slot 10602566]."}

Hm. 🤔 This log message is created by a wallet whose walletId starts with 9e5295f3. Can you locate this wallet in one of the following listings?

GET /wallets
GET /byron-wallets
GET /shared-wallets

These listings also include the "state" field for each wallet. Could you filter the response and post here the "id", "state", and "tip" fields of the JSON object corresponding to the wallet whose "id" starts with 9e5295f3, as well as a recent Syncing log message from this wallet?

from cardano-wallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.