Giter Club home page Giter Club logo

Comments (4)

zevaryx avatar zevaryx commented on June 8, 2024

This isn't a true Bitcoin miner, but more of a proof of concept on how mining works. It only mines a single simulated block

from cool_python_apps.

AdrianViverosL avatar AdrianViverosL commented on June 8, 2024

Yeah! as zevaryx mentioned above, this code only has demo purposes to get the idea and concept of mining.

from cool_python_apps.

bener07 avatar bener07 commented on June 8, 2024

And where can I find a TRUE script to mine bitcoins to my wallet, I changed the code, and now is in a loop so is just mining and mining and all of that. so where can I find one that sends the bitcoins to my wallet?

from cool_python_apps.

zevaryx avatar zevaryx commented on June 8, 2024

For various reasons, that would be a terrible idea.

tl;dr is that you can't directly mine BTC with standard computers anymore, ignoring that this code is just a proof of concept.

Full reasons:

  • Bitcoin mining is astronomically difficult to compute with normal computers, even with GPU acceleration. You typically mine it with something called an ASIC miner, but not with a normal PC
  • Most mining programs are written in much lower languages than Python, like C/C++, and have very well-optimized algorithms that they use, typically taking advantage of SSE and AVX instructions on CPUs, and OpenCL or CUDA processing on GPUs. This type of optimization is not possible with Python (at least, not without writing a good portion of the code in C and importing it)
  • This code doesn't actually mine anything, but merely simulates what mining would be like. Mining requires accessing the blockchain, synchronizing, validation, and mining. This code does none of that, merely simulating something similar to mining.

from cool_python_apps.

Related Issues (6)

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.