Merged
Conversation
* 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
Collaborator
|
LGTM 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.206If 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