Skip to content

Commit

Permalink
added temporary switch for qearn update
Browse files Browse the repository at this point in the history
  • Loading branch information
Franziska-Mueller committed Jan 13, 2025
1 parent ec507db commit 23fff8d
Show file tree
Hide file tree
Showing 7 changed files with 1,768 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Qubic.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ClInclude Include="assets\net_msg_impl.h" />
<ClInclude Include="common_buffers.h" />
<ClInclude Include="contracts\ComputorControlledFund.h" />
<ClInclude Include="contracts\Qearn_old.h" />
<ClInclude Include="contracts\SupplyWatcher.h" />
<ClInclude Include="contracts\EmptyTemplate.h" />
<ClInclude Include="contracts\GeneralQuorumProposal.h" />
Expand Down
5 changes: 4 additions & 1 deletion src/Qubic.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<Filter>contracts</Filter>
</ClInclude>
<ClInclude Include="contracts\QVAULT.h">
<Filter>contracts</Filter>
<Filter>contracts</Filter>
</ClInclude>
<ClInclude Include="contract_core\contract_def.h">
<Filter>contract_core</Filter>
Expand Down Expand Up @@ -211,6 +211,9 @@
<ClInclude Include="platform\global_var.h">
<Filter>platform</Filter>
</ClInclude>
<ClInclude Include="contracts\Qearn_old.h">
<Filter>contracts</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="platform">
Expand Down
4 changes: 4 additions & 0 deletions src/contract_core/contract_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ struct __FunctionOrProcedureBeginEndGuard
#define CONTRACT_INDEX QEARN_CONTRACT_INDEX
#define CONTRACT_STATE_TYPE QEARN
#define CONTRACT_STATE2_TYPE QEARN2
#ifdef QEARN_UPDATE
#include "contracts/Qearn.h"
#else
#include "contracts/Qearn_old.h"
#endif

#undef CONTRACT_INDEX
#undef CONTRACT_STATE_TYPE
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/Qearn.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ struct QEARN : public ContractBase

};

array<StatsInfo, QEARN_MAX_EPOCHS> statsInfo;
Array<StatsInfo, QEARN_MAX_EPOCHS> statsInfo;

struct getStateOfRound_locals {
uint32 firstEpoch;
Expand Down
Loading

0 comments on commit 23fff8d

Please sign in to comment.