Commit Graph

2618 Commits

Author SHA1 Message Date
Jacinta Ferrant
f6aa7e3514 Make filtering of signer transactions global and use in miner
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-01 09:31:08 -05:00
Hank Stoever
04d2f7002b feat: validate amount with signer key authorizations 2024-02-29 14:42:50 -08:00
wileyj
e00243f81f conditionally exclude some crates when target os is windows or macos 2024-02-29 11:42:26 -08: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
Marzi
4ebc6358c4 Remove StackerSet event type 2024-02-28 21:01:07 -05:00
Marzi
18761f278d Remove announce_reward_set from BlockEventDispatcher trait 2024-02-28 19:57:07 -05:00
Hank Stoever
bad95704a1 fix: comment language 2024-02-28 10:51:51 -08:00
Hank Stoever
b3f0b46c78 Merge remote-tracking branch 'origin/next' into feat/vote-for-key-burnop 2024-02-28 10:49:06 -08:00
Hank Stoever
460d80ba4e feat: test that aggregate key was properly set 2024-02-28 10:29:35 -08:00
Jeff Bencin
3c8d656b44 chore: Remove imports already included by std::prelude 2024-02-28 11:05:56 -05:00
Marzi
6266b0086d Include rewardSet data in block events. Update integ tests to assert based on block events 2024-02-27 22:26:45 -05:00
ASuciuX
ff7ec086f5 Merge branch 'next' into mutants/add-skip-attribute-to-timeout-functions 2024-02-27 17:50:23 +02:00
Marzi
f502020bea Delete UserBurnSupportOp definition and usage 2024-02-27 10:02:37 -05:00
ASuciuX
2ff19e8c07 Merge branch 'next' into mutants/add-skip-attribute-to-timeout-functions 2024-02-27 15:07:52 +02:00
Marzi
bd9663677e Initial changes for including rewardSet in new block event 2024-02-26 20:55:28 -05: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
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
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
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
1c8d6118c4 Fix reward cycle filter bad transactions test
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
51809a009b Fix get_current_reward_cycle in stacks client
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
e99d6d8ce2 Cleanup reward cycle transitions test
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
5149d6fcd3 Always refresh configs, temp set consenus has to 0 in coordinator calculation, retrieve NEXT signers transactions in signer
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
b0d4a34a1a Retreive the transactions from the NEXT signers in the miner
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
c0a0d74a26 Fix reward set boundary calculation
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
33a8a80787 Increase wait_for_signers timeout
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
74ec4bca4f Fix prepare phase reward set calculation
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
867198119d CRC: cleanup logging
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
9cce191a5b WIP: add test for post epoch 3 reward cycle transition
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
62e2109259 CRC: use signer weights when calculating block rejection thresholds
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
14a15a682d CRC: cleanup comments
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
48a4e08691 Fix missing transactions test and add TODOs for cleaning up logic
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
5ad797514e Fix transaction logic and fix block proposal test
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
e49764f33c Fix nonce retrieval and pox consensus tests
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
406c44244c Update contract calls and update signer state when a nonce request is stashed
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
7784cafdee Update coordinator id only once per run loop
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
784a0f35fc CRC: add mainnet var and check transaction is on the correct network when filtering signer transactions
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
a57e431867 Cleanup reward cycle config into signer config
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
89541b25cd Fix dkg and sign test
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:58:00 -05:00
Jacinta Ferrant
a10044ea20 Fix epoch 3 reward set calculation block height
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00
Jacinta Ferrant
c8c19bb75c Fix nakamoto integration stacking in advance to epoch 3 reward set
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00
Aaron Blankstein
4dc153deb6 fix: test nakamoto nodes should use the right .signers stackerdbs 2024-02-22 21:57:59 -05:00
Jacinta Ferrant
089be91018 WIP: Get miners to retrieve transactions from stackerdb
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00
Jacinta Ferrant
454ab73eb5 Check the front of commands not the back before adding another DKG command to the front
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00
Jacinta Ferrant
2d412b8e64 Cleanup
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00
Jacinta Ferrant
b9eef9478e Fix cast aggregate public key vote transaction
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00
Jacinta Ferrant
2d92d54426 Rely on signers to run DKG
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00
Jacinta Ferrant
f3c444efb7 CRC: rename Config to GlobalConfig and StacksNodeInfo to RewardCycleConfig
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-02-22 21:57:59 -05:00