Skip to content

Conversation

@N-010
Copy link
Contributor

@N-010 N-010 commented Jan 13, 2026

N-010 added 30 commits January 13, 2026 23:25
…reserve and don’t consume reseed budget with tier top-ups on k4 rounds

  - test/contract_qtf.cpp: expose private/protected internals for unit tests, add exact-match k2/k3 ticket generators (unique), fund jackpot balance in k4 test, and force FR off in baseline k2/k3 revenue-split test
…eserve top-ups; correct schedule bitmask in specx
Auto-update QTF index in QRP
Adds cleanup for allowedSmartContracts in QRP
@N-010 N-010 marked this pull request as ready for review January 21, 2026 21:17
@N-010
Copy link
Contributor Author

N-010 commented Jan 23, 2026

@Franziska-Mueller
Please take a look at this PR

Copy link
Collaborator

@Franziska-Mueller Franziska-Mueller left a comment

Choose a reason for hiding this comment

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

here are some initial comments, I will continue the review tomorrow

N-010 added 2 commits January 28, 2026 20:38
# Conflicts:
#	src/Qubic.vcxproj
#	src/Qubic.vcxproj.filters
#	src/contract_core/contract_def.h
#	test/test.vcxproj.filters
}

state.maxAutoTicketsPerUser = input.maxTicketsPerUser;
output.returnCode = toReturnCode(EReturnCode::SUCCESS);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think there is an issue here, with the current code, the new maxAutoTicketsPerUser limit only affects new auto participants but no existing ones. When changing the maxAutoTicketsPerUser, you have to either iterate through the current auto participants and adjust their desiredTickets count accordingly or you have to add a check in ProcessAutoTickets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

CALL(GetRandomDigits, locals.randomInput, locals.randomOutput);

locals.ticket.player = input.player;
locals.ticket.digits = locals.randomOutput.digits;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think when this function is executed in the same tick (= same prev spectrum digest), it will always generate the same numbers right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right
Done

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