GithubHelp home page GithubHelp logo

Comments (8)

zack-bitcoin avatar zack-bitcoin commented on May 26, 2024

Thank you for realing that the ports arent being closed.

I think this test is failing because it uses sleep instead of reacting to return values or callbacks.
Sleeps don't work on different computers because different computers need to sleep different amounts of time.

Either we need to fiX the commands to avoid sleeps, or we need to increase the amount of time it sleeps so that the test passes on more computers.

Or maybe test_market should only be run on servers that will actually be running a market. No reason to test unused code.

from amoveo.

damoCl avatar damoCl commented on May 26, 2024

Good
When i run in production mode, and begin a sync, the program downloads 100 blocks first.
When I start mining another 56 blocks are created, for which the mining reward is added to the balance.

Is this the correct behavior of the program. I left it running over night, and when I came back to it, I had mined a few hundred blocks. However when I stop and clean the program, it restarted from block 156 again, and reset the balance.

Is the production mode acting as a stand alone node with the server, ( ie no interaction with other people testing the software.)

from amoveo.

damoCl avatar damoCl commented on May 26, 2024

Also, what procedure is used to mine the blocks?

from amoveo.

zack-bitcoin avatar zack-bitcoin commented on May 26, 2024

To mine blocks:

mine:start()

You are right, only 100 blocks are being downloaded at a time. This is a problem.
Also it can't seem to share past 156 or so.

from amoveo.

zack-bitcoin avatar zack-bitcoin commented on May 26, 2024

The problem with sharing blocks is fixed in the newer version of the code.

I made some changes that may have fixed the problem that @damoCl found.
Do the tests still fail on @damoCl 's computer?

Would you mind sharing the log files if there are still errors?
/_build/dev1/rel/ae_core/log/crash.log
/_build/dev2/rel/ae_core/log/crash.log
/_build/dev3/rel/ae_core/log/crash.log

(remember to do git pull to download the new version of the code before running tests.)

from amoveo.

damoCl avatar damoCl commented on May 26, 2024

Sorry, Zach, I upgraded the ameveo code, and have overwritten the crash logs. I'll back them up from now, in future.

Another issue I have found, is that if I modify your code to run on a few more cores, by modifying the block.erl file, at around line 367, Cores=10 for example, the miner will quickly mine 5 or 10 blocks, and then stop mining.

from amoveo.

zack-bitcoin avatar zack-bitcoin commented on May 26, 2024

Thank you for noticing this mining problem.

from amoveo.

zack-bitcoin avatar zack-bitcoin commented on May 26, 2024

I don't think mining from the core software is very important.
We need to set up software for GPU mining and mining pools as soon as possible.
Once GPU mining is possible, no one will mine with the core software anyway.

For now I will close this issue. feel free to open another.

from amoveo.

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.