Giter Club home page Giter Club logo

Comments (13)

jprichardson avatar jprichardson commented on August 18, 2024

It works in the console if I add a label. If I do it via RPC, it still times out (with or without the label), but if I kill the BlackCoin-qt process and reopen it, it ultimately added it. However, the RPC is still broken :(

from blackcoin-old.

bearsylla avatar bearsylla commented on August 18, 2024

After importprivkey, the wallet will trigger rescan, which will scan the entire blockchain, and the process will take 5 - 15 minutes and even more depending on your processing power.

However you can disable the rescan by importprivkey <blackcoinprivkey> rescan=false

FYI: The syntax for importprivkey is

importprivkey <blackcoinprivkey> [label] [rescan=true]

from blackcoin-old.

bearsylla avatar bearsylla commented on August 18, 2024

The wallet will not respond to the RPC until the rescan is complete, that's why it cause timeout

from blackcoin-old.

bearsylla avatar bearsylla commented on August 18, 2024

rescan is needed if there is fund in the address corresponded to the privkey prior to the import.

However, if the privkey is newly generated, then there is no reason to rescan it. For example, rescan is set to false in the blackshare project. https://github.com/doetsch/blackshares/blob/master/src/wallet.cpp#L2675

from blackcoin-old.

bearsylla avatar bearsylla commented on August 18, 2024

more information here: bitcoin/bitcoin#1085

from blackcoin-old.

jprichardson avatar jprichardson commented on August 18, 2024

That makes sense. But does the Mac OS X version support setting the rescan to false? I just get this response: importprivkey <blackcoinprivkey> [label]. If I try either importprivkey 69UKv8ib5CNNr9DPjiPCkAHMLeoZMkFi13j9wGPThiDBSwodyQX afafa rescan=false or importprivkey 69UKv8ib5CNNr9DPjiPCkAHMLeoZMkFi13j9wGPThiDBSwodyQX afafa false.

from blackcoin-old.

jprichardson avatar jprichardson commented on August 18, 2024

Hmmm, looks like it does... https://github.com/rat4/blackcoin/blob/d7b2fa94ae48812fb7d747f7e48e956996e5b3e5/src/rpcdump.cpp#L110

from blackcoin-old.

 avatar commented on August 18, 2024

It does, however the rescan flag was added in v1.1.2

from blackcoin-old.

jprichardson avatar jprichardson commented on August 18, 2024

The wallet will not respond to the RPC until the rescan is complete, that's why it cause timeout

Actually, the fact that this does this is pretty poor design. I assume this is a relic of an older Bitcoin-qt design?

  1. Why does the UI lock up if no label is passed?
  2. @rat4 Can you post the v1.1.2 Mac OS X client?

Thanks, this functionality is needed for an app I'm writing.

from blackcoin-old.

 avatar commented on August 18, 2024
  1. Why does the UI lock up if no label is passed?

I've tested this on latest codebase and haven't noticed a difference if
the label is passed or not.

  1. @rat4 https://github.com/rat4 Can you post the |v1.1.2| Mac OS X
    client?

Mac build was provided by a community member, but he's no longer active.

  1. How long is it expected for the rescan to take?

The bigger (already synchronized part of the) blockchain the longer
rescan takes.

from blackcoin-old.

jprichardson avatar jprichardson commented on August 18, 2024

Mac build was provided by a community member, but he's no longer active.

Does this mean that Mac builds will no longer be provided? i.e. Is Mac no longer supported by BlackCoin?

from blackcoin-old.

blockcorporation avatar blockcorporation commented on August 18, 2024

I'm working on building the mac client but been working on it on the weekends. So not all hope is lost on mac builds. Any help would be wondervol.

from blackcoin-old.

bearsylla avatar bearsylla commented on August 18, 2024

@jprichardson If you just need the blackcoind, it can be eassily compiled using macports. #39 However, it seems that there is some bugs in macports that prevent the building of QT wallet

from blackcoin-old.

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.