Skip to content

Conversation

@cyber-pc
Copy link
Collaborator

@cyber-pc cyber-pc commented Aug 2, 2025

This PR

  • Allow us to set multiple full custom mining event in weekday.
  • Unify all mining phase transition logic into the checkAndSwitchMiningPhase function.
  • Add support for resetting the mining state within checkAndSwitchMiningPhase.

@cyber-pc cyber-pc changed the base branch from main to develop August 2, 2025 05:24
@cyber-pc
Copy link
Collaborator Author

cyber-pc commented Aug 4, 2025

This PR is tested, it also includes #491
cc: @Franziska-Mueller @krypdkat

@cyber-pc
Copy link
Collaborator Author

cyber-pc commented Aug 4, 2025

Please do not merge yet. I need to do some more tests.

src/qubic.cpp Outdated
{
if ((!allocPoolWithErrorLog(L"gFullExternalEventTime", gNumberOfFullExternalMiningEvents * sizeof(FullExternallEvent), (void**)&gFullExternalEventTime, __LINE__)))
{
logToConsole(L"Can not initialize buffer for full external mining events.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you use allocPoolWithErrorLog I think you can remove the additional logToConsole

@cyber-pc
Copy link
Collaborator Author

cyber-pc commented Aug 5, 2025

This PR is ready now.

@Franziska-Mueller Franziska-Mueller merged commit 3f18f35 into develop Aug 5, 2025
1 check passed
@cyber-pc cyber-pc deleted the feature/2025-08-02-multiple-event-time-point-custom-mining branch August 8, 2025 03:48
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.

3 participants