Giter Club home page Giter Club logo

Comments (11)

Earlz avatar Earlz commented on August 16, 2024 2

I think this might be easiest to fix by just having BIP34 not start until after block 16

from qtum.

davidjaenson avatar davidjaenson commented on August 16, 2024 2

It bugs out if setting BIP34Height = 0, but not when setting BIP34Height = 1

from qtum.

cryptozeny avatar cryptozeny commented on August 16, 2024 2

same here. this resolve my issue for a new altcoin. thanks!

        consensus.BIP34Height = 1;
        consensus.BIP34Hash = uint256S("");

from qtum.

qtum-neil avatar qtum-neil commented on August 16, 2024

Well better see why it's happening, starting from block 16 would entail having block hashes until 16 known, which is not convenient at the current state where the genesis hash itself is still subject to possible changes.

from qtum.

davidjaenson avatar davidjaenson commented on August 16, 2024

I have updated the issue: after retesting I am not able to reproduce the issue when setting BIP34 activation from block >= 1 instead of 0. The issue relating to blocks after that appear to have been due to issues in the python qa tests that I mistook for the same issue.

from qtum.

Earlz avatar Earlz commented on August 16, 2024

Oh I see, so it bugs out for the genesis, but not block 1 (after genesis) ?

from qtum.

Earlz avatar Earlz commented on August 16, 2024

That seems like an easy fix then. I assume this is because the genesis block isn't constructed to be compliant with BIP34. I don't think there is any benefit to complicating the genesis block generation for that

from qtum.

davidjaenson avatar davidjaenson commented on August 16, 2024

Ah yes, that seems to be the cause of the issue.

from qtum.

qtum-neil avatar qtum-neil commented on August 16, 2024

Yes, makes more sense, I will fix it.

from qtum.

qtum-neil avatar qtum-neil commented on August 16, 2024

Pull request created: #16

from qtum.

Earlz avatar Earlz commented on August 16, 2024

fixed and merged

from qtum.

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.