Commit Graph

21870 Commits

Author SHA1 Message Date
jferrant
90e36dfab4 Merge pull request #4455 from stacks-network/bugfix/threshold-calculation-should-round-up
Round up thresholds
2024-02-29 22:07:52 +00:00
Jacinta Ferrant
206eca639f Cast to f64 and use ceil instead
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-29 12:58:22 -05:00
Jacinta Ferrant
770ee39af0 Round up thresholds using +0.9
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-29 12:07:17 -05:00
wileyj
d063a74a92 Merge pull request #4403 from stacks-network/feat/signers-voting-property-testing
Add property-based tests for signers-voting contract functions
2024-02-28 21:45:51 +00:00
wileyj
5e255017db Merge pull request #4438 from stacks-network/ci/merge-queue
Update ci trigger to enable merge queue in next
2024-02-28 11:03:46 -08:00
wileyj
b2b236ca52 Merge branch 'next' into ci/merge-queue 2024-02-28 09:21:57 -08:00
wileyj
db49c703ed Merge pull request #4380 from ASuciuX/mutants/optimisations
Mutants Optimisations: big-packages, timeout multiplier, stacks-signer case
2024-02-28 09:19:07 -08:00
wileyj
63493b7c88 Merge branch 'next' into mutants/optimisations 2024-02-28 08:52:08 -08:00
wileyj
418f9dd6f6 Merge branch 'next' into ci/merge-queue 2024-02-28 08:22:09 -08:00
Jeff Bencin
3c8d656b44 chore: Remove imports already included by std::prelude 2024-02-28 11:05:56 -05:00
wileyj
bc67c88ba9 Merge branch 'next' into ci/merge-queue 2024-02-28 07:13:59 -08:00
Nikos Baxevanis
8d373fcf00 Merge branch 'next' into feat/signers-voting-property-testing 2024-02-28 14:56:18 +01:00
ASuciuX
9b9d91bdaa Merge branch 'next' into mutants/optimisations 2024-02-28 15:10:27 +02:00
Nikos Baxevanis
6e6090eb80 Bump @stacks/transactions for isClarityType
- Bump @stacks/transactions from ^6.9.0 to ^6.12.0 for `isClarityType`.
- Use `assert` and `isClarityType` for stricter TypeScript type checks.
- Replace `// @ts-ignore` with precise assertions, improving tests.

Thanks to Hugo Caillard for his crucial help and guidance.
2024-02-28 13:28:49 +01:00
Nikos Baxevanis
ae05a62b3e Add property-based tests for signers-voting contract functions
- reward-cycle-to-burn-height
- burn-height-to-reward-cycle
- is-in-prepare-phase

This effort, initially part of https://github.com/stacks-network/stacks-core/pull/4286,
is now in a separate commit and PR as it's autonomous with regards to PoX-4
property and fuzz testing. Additional property-based tests for the remaining
functions of the signers-voting contract are warranted and will be addressed
in separate commits/PRs.
2024-02-28 13:02:40 +01:00
Jeff Bencin
9385b42360 Merge pull request #4425 from jbencin/chore/vec-allocation-stacks-common
chore(stacks-common): Improvements to `Vec` allocation and operations
2024-02-27 22:06:13 -05:00
Jeff Bencin
16bd17cd43 chore: Address Brice's PR comment 2024-02-27 17:37:45 -05:00
Jeff Bencin
5a3b6f6895 chore: Address Brice's PR comments 2024-02-27 17:37:45 -05:00
Jeff Bencin
a6e3bedb21 chore: Minor performance tweaks 2024-02-27 17:37:45 -05:00
Jeff Bencin
29cfdb8620 chore: Undo flat_map() changes because this seems to optimize significantly worse than a for loop 2024-02-27 17:37:45 -05:00
Jeff Bencin
05c63dc3b2 chore(stacks-common): Clean up Vec operations in transaction.rs 2024-02-27 17:37:45 -05:00
Jeff Bencin
04ddd83192 chore(stacks-common): Use vec::with_capacity() when possible to allocate vectors 2024-02-27 17:37:45 -05:00
Jeff Bencin
d72ad44e24 Merge pull request #4408 from jbencin/chore/vec-with-capacity
chore(clarity): Replace `Vec::new()` and `vec![]`
2024-02-27 17:36:33 -05:00
Jeff Bencin
9ff45c3b0f chore: Address Brice's PR comments 2024-02-27 15:57:08 -05:00
Jeff Bencin
21e2232156 chore(clarity): Use vec::with_capacity() when possible to allocate vectors 2024-02-27 15:57:08 -05:00
wileyj
3c0e7798b2 Update ci trigger for merge queue 2024-02-27 11:29:41 -08:00
ASuciuX
99574791ce Merge branch 'next' into mutants/optimisations 2024-02-27 19:51:03 +02:00
ASuciuX
ee1f7ed545 Merge pull request #4385 from ASuciuX/mutants/add-skip-attribute-to-timeout-functions
Mutants/add skip attribute to timeout functions
2024-02-27 19:50:41 +02:00
ASuciuX
ff7ec086f5 Merge branch 'next' into mutants/add-skip-attribute-to-timeout-functions 2024-02-27 17:50:23 +02:00
Marzi
708a3fc877 Cargo Format 2024-02-27 10:02:37 -05:00
Marzi
221ee486ae Re-apply deleting StagingUserBurnSupport definition and usage 2024-02-27 10:02:37 -05:00
Marzi
ef5169bec0 Cargo Format 2024-02-27 10:02:37 -05:00
Marzi
f502020bea Delete UserBurnSupportOp definition and usage 2024-02-27 10:02:37 -05:00
ASuciuX
93d21477a9 Merge branch 'next' into mutants/optimisations 2024-02-27 16:29:03 +02:00
ASuciuX
2ff19e8c07 Merge branch 'next' into mutants/add-skip-attribute-to-timeout-functions 2024-02-27 15:07:52 +02:00
ASuciuX
50c1549a21 Update .github/workflows/pr-differences-mutants.yml
Co-authored-by: Jeff Bencin <jeff.bencin@gmail.com>
2024-02-27 14:04:53 +02:00
wileyj
577b118a36 Merge pull request #4287 from stacks-network/feat/signers-cast-dkg-vote
Feat/signers cast dkg vote
2024-02-26 07:21:15 -08:00
Jacinta Ferrant
e22871d6af Send DKG and sign to all senders and remove shutdown in hanging tests
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-24 16:50:24 -05:00
Jacinta Ferrant
7dfee14faa CRC: fix faulty comments
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-24 16:49:57 -05:00
Jacinta Ferrant
0bd2ad6212 Store commands to the side in case init fails
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-24 16:49:38 -05:00
Jacinta Ferrant
9ce4f97c9f Fix epoch check
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-23 22:02:01 -05:00
Jacinta Ferrant
1384084dd1 Do not trigger DKG if we have an approved DKG key set in the contract
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-23 15:07:13 -05:00
Jacinta Ferrant
05518ad42b CRC: cleanup comments
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-23 13:49:33 -05:00
Jacinta Ferrant
6edec125ab CRC: cleanup parse_function_args
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-23 13:33:11 -05:00
Jacinta Ferrant
e24f223a98 Fix signer vote calculations into a struct
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-23 13:12:50 -05:00
Jacinta Ferrant
1de817b2f1 Fix fee calculation and always broadcast Sign errors as block rejections
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-23 10:25:39 -05:00
Jacinta Ferrant
69d25fb0dd CRC: cleanup var names and add comment to SignerMessages
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 22:02:12 -05:00
Jacinta Ferrant
66c6862ecc Move get_signer_weights function to signer_set.rs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
0bc6442200 Fix test_make_miners_stackerdb_config by adding missing miners contract to peer config
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
838f06fda2 Fix test simple signer test by fixing contract id
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00