Skip to content

Fix preprocessor guard for loading execution fee files on non-scratch…#793

Merged
Franziska-Mueller merged 1 commit intodevelopfrom
bugfix/2026-03-12-fixInitializationBug
Mar 12, 2026
Merged

Fix preprocessor guard for loading execution fee files on non-scratch…#793
Franziska-Mueller merged 1 commit intodevelopfrom
bugfix/2026-03-12-fixInitializationBug

Conversation

@fnordspace
Copy link
Contributor

Changed #ifndef to #if ! so that loadContractExecFeeFiles() is called when START_NETWORK_FROM_SCRATCH is 0 (node joining existing network). The #ifndef check always skipped loading because the macro is always defined, causing misalignment after epoch transition.

When a node is starting with START_NETWORK_FROM_SCRATCH = 0 the file contract_exec_fees_rec.xxx is required.

… restart

Changed #ifndef to #if ! so that loadContractExecFeeFiles() is called
when START_NETWORK_FROM_SCRATCH is 0 (node joining existing network).
The #ifndef check always skipped loading because the macro is always
defined, causing misalignment after epoch transition.
@fnordspace fnordspace self-assigned this Mar 12, 2026
@fnordspace fnordspace added this to qubic Mar 12, 2026
@fnordspace fnordspace added the bug Something isn't working label Mar 12, 2026
@Franziska-Mueller Franziska-Mueller merged commit 27dd2a7 into develop Mar 12, 2026
1 check passed
@github-project-automation github-project-automation bot moved this to ✅ Done in qubic Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants