Skip to content

Release v1.284.0 #805

Merged
fnordspace merged 8 commits intomainfrom
develop
Mar 25, 2026
Merged

Release v1.284.0 #805
fnordspace merged 8 commits intomainfrom
develop

Conversation

@fnordspace
Copy link
Contributor

Add QSurv contract if proposal is accepted
Update of RANDOM SC, contract file needs expansion
Update of QTF SC
Update of Solution Threshold to 75200

TODO for Computors:

Due to a change in state size of theRANDOM SC, you have to expand the state file with the following command before starting your node:
dd if=/dev/zero bs=1 count=2381968 >> data/contract.0003.206

If the QSurv Proposal is accepted you do not have to change anything
If the QSurv Proposal is not accepted you need to uncomment the toggle NO_QSURV in src/qubic.cpp

fnordspace and others added 8 commits March 19, 2026 10:07
* feat: Add QSurv trustless survey contract and tests

- Add QSurv.h with StateData architecture (state.get/state.mut)
- Register QSURV at index 25 in contract_def.h
- Add contract_qsurv.cpp test suite
- Add project references in vcxproj files

* Adjust construction epoch for QSurv
* Update from CFB

* Adds StateData

* Fixes loop
* Get players
Sync Jackpot with balance

* GetWinningCombinationsHistory

* Fixes

* Fixes: contract verify

* Adds wonAmount

* Fixes save to state

* GetWinnerRewards

* Fixes type wonAmount

* Add batch ticket purchase functionality and selection validation

* Add BuildSelectionTickets functionality for batch ticket preparation

* Enhance documentation for BuyTicketsBatch and BuyTicketsBySelection procedures

* Convert to StateData

* Reduces the value of QTF_MAX_BATCH_TICKETS from 512 to 256

* New tests

* Fixes Contract Verify

* Adds comment
@cyber-pc
Copy link
Collaborator

LGTM 👍

@fnordspace fnordspace merged commit 97d3f65 into main Mar 25, 2026
3 checks passed
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.

4 participants