Giter Site home page Giter Site logo

Problem with lastHashStore about bitc HOT 3 OPEN

bit-c avatar bit-c commented on June 27, 2024
Problem with lastHashStore

from bitc.

Comments (3)

mx4 avatar mx4 commented on June 27, 2024

Ah, cool. I added this ASSERT some time back to catch an instance of a bug I've been tracking for some time. You can basically get rid of the problem by resync'ing your txdb/headers:

./bitc -z

.. and things will/should go smoothly afterwards.

Btw, were you running the top-of-trunk from bitc? IOW, when did you last sync-up your tree?

If that's ok with you, I'd like to debug this a bit and would like to confirm that you're seeing the same issue I was trying to track down when I added this ASSERT. I will ideally need the bitc binary+core dump (beware of the privacy implication, so feel free to say no).

The problem here is that it's possible that the last block we were sync'd at when we last shut down is now an orphan. So when it's time to compute from where we need to refresh the txdb, we find a height of 0 because that block is orphaned..

I know what needs to be done to address this issue (walk backwards from that orphan until we hit the current best chain and use this junction node as a valid sync point), but it's a bit annoying to code (lazy me), so if that proves to be the issue that'll be a good incentive to finally find the time to fixing this.

from bitc.

combwattle avatar combwattle commented on June 27, 2024

After running ./bitc -z, everything seems to be working again with the latest balance (0.0001 btc).
I can provide bitc binary+core dump. Please let me know how I can perform such operation, and, also, it would be great if you could share an email address, to which I will send the dump. Thanks for your prompt feedback.

from bitc.

mx4 avatar mx4 commented on June 27, 2024

Please send me the (gzipped?) binary & dump at the address in the LICENSE file. Thanks!

from bitc.

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.