Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more mining stats #471

Draft
wants to merge 55 commits into
base: feature/coordinated-mining_v5
Choose a base branch
from

Conversation

JamesPiechota
Copy link
Collaborator

No description provided.

vird and others added 30 commits September 27, 2023 16:05
Co-authored-by: Lev Berman <[email protected]>
Co-authored-by: Amin Arria <[email protected]>
Co-authored-by: Esteban Dimitroff Hódi <[email protected]>
Make it record h/s (not MiB/s) as documented in the declaration; set it
to 0 when mining is paused.
Refactor ar_mining_server.erl and ar_coordination.erl:
1. Intrdoduce 2 records to encapsulate the long argument lists (ar_mining_candidate, and ar_mining_solution)
2. Introduce common functions to remove duplicate code

This is a first pass and tests fail. Next commits will fix tests and add more.
Some small bug fixes, and also better session management when computing H2 for a peer (i.e.
assume we have a valid mining session if the request came from a peer)
…ar_test_node.erl and bin/test.

Instead of using test_on_fork(), tests can use ar_test_node:test_with_mocked_function()

Also get rid of a bunch of debugging output
Fix off-by-one error when selecting partitions to mine
JamesPiechota and others added 25 commits September 27, 2023 16:05
is calculatd automatically. Previously that logic was tied to free
memory which can vary significantly and can cause the limit to be
set too low. With this PR it is tied to total memory which is a
stable value
1. copy genesis data with packing `any`
2. restart the ar_data_sync processes
3. copy genesis data into each configured storage_module

without this 2 step process a test node with both spora_2_5 and spora_2_6 storage
modules will not sync data for all storage modules
…ny` 2. restart the ar_data_sync processes 3. copy genesis data into each configured storage_module
…ny` 2. restart the ar_data_sync processes 3. copy genesis data into each configured storage_module
…king `any` 2. restart the ar_data_sync processes 3. copy genesis data into each configured storage_module
from mining. Since that partition may be incomplete it provides
a mining advantage (e.g. it can fit in RAM), and we don't want
to over-incentivize syncing the last partition.
The ar_pricing_tests are calibrated to this value so it's easier
to stick with it. Only change needed is to update the ar_test_node
launch sequence to not wait for partial chunks to be synced (since
they won't hit the ar_sync_record)
out why they are causing other tests to fail
are calibrated for that number). Tests that
need a different size (e.g. ar_mining_io_tests, ar_mining_server_tests)
can set the storage modules explicitly.
it from the ar_mining_server critical path
merge master branch into feature/coordinated-mining-v5
as before it passes locally when run alone, will see if it still fails
as part of the full test run
@JamesPiechota JamesPiechota force-pushed the feature/coordinated-mining_v5 branch from 7d10818 to 935aa07 Compare October 13, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants