Commit Graph

119 Commits

Author SHA1 Message Date
Aaron Blankstein
e4770f6241 test: update tests 2024-06-18 11:01:46 -05:00
wileyj
3906688766 Revert "Fix/signer slot count" 2024-06-04 09:40:04 -07:00
Jude Nelson
c13e521c4c fix: disable relevant unit tests that assume 14 stacker signer slots 2024-06-03 18:07:19 -04:00
Jacinta Ferrant
69fa6effbc CRC: fix whitespace
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 13:53:00 -07:00
Jacinta Ferrant
65859b7f75 CRC: fix documentation on define_u8_enum types in messages.rs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 12:53:19 -07:00
Jacinta Ferrant
7af348d710 CRC: create a trait to enforce multiple traits for signer event types
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 12:35:37 -07:00
Jacinta Ferrant
0c3631bd42 CRC: remove use of hardcoded u8s in codec functions
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 11:35:15 -07:00
Jacinta Ferrant
c9219e556e Do not enable empty MinerMessage event
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 11:00:09 -07:00
Jacinta Ferrant
7d4075333c Remove unused serialization of HashSet in messages.rs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 10:14:47 -07:00
Jacinta Ferrant
b80d71ef68 Replace custom NakamotoBlockHeaders throughout signer with empty()
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 09:41:03 -07:00
Jacinta Ferrant
8d6a3a56f7 Skip some mutants
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 09:34:54 -07:00
Jacinta Ferrant
382cdfd33a Change ecdsa::Signature to MessageSignature
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-13 14:02:19 -07:00
Jacinta Ferrant
d8475f1567 WIP: make libsigner event processing and signer trait generic
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-13 12:45:22 -07:00
Jacinta Ferrant
b77ba2472c WIP: move messages.rs to individual v0 and v1 subdirs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-13 11:15:11 -07:00
Jacinta Ferrant
75a28ed6f1 WIP: move signer event processing into a trait and create v0 and v1 submodules
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-10 14:03:46 -07:00
Hank Stoever
a5bda55833 feat: signer monitoring server 2024-04-29 14:57:23 -07:00
Jacinta Ferrant
799b55d45e Merge branch 'develop' of https://github.com/stacks-network/stacks-core into chore/remove-block-proposal-message 2024-04-25 07:33:03 -07:00
Hank Stoever
af98b6e9d5 Merge branch 'develop' into feat/signer-stackerdb-max-read-len 2024-04-22 07:30:25 -07:00
Jacinta Ferrant
167ed42cc4 Remove redundant block proposal message and fix tests
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-18 10:48:34 -07:00
Mårten Blankfors
23a06a3fab feat: extend margin 2024-04-16 09:18:27 +02:00
Mårten Blankfors
54dcbb7d52 fix: match SignerMessage::EncryptedSignerState as a tuple variant and not a struct 2024-04-16 09:09:35 +02:00
Mårten Blankfors
7420df8522 feat: Use a bounded reader to read the encrypted signer state from SignerDB 2024-04-12 10:59:38 +02:00
Mårten Blankfors
63c15f1dae fix: mutants as dev-dependency 2024-04-12 10:47:46 +02:00
Hank Stoever
894dd6751f crc: better cast from chunk size limit to usize 2024-04-11 11:40:13 -07:00
Hank Stoever
ba68f02e42 fix: move signers stackerdb read limit to libsigner 2024-04-09 20:55:04 -07:00
Hank Stoever
d700c85eec feat: limit length of chunks when signer reads from stackerdb 2024-04-09 19:39:49 -07:00
Mårten Blankfors
35d39170e2 fix: Skip unviable mutants 2024-04-09 13:31:02 +02:00
Mårten Blankfors
952275aba6 feat: (Signer) Persist encrypted dkg shares in StackerDB 2024-04-08 22:10:04 +02:00
Aaron Blankstein
0f91591ece chore: oops, forgot to delete defunct funcs 2024-03-20 10:29:07 -05:00
Aaron Blankstein
c50a93088d refactor: address PR review comments 2024-03-19 20:33:52 -05:00
Aaron Blankstein
2bde48c42b chore: fix rustc warns, cleanup events logs on /new_blocks event, invert unconditional mine check in neon_node 2024-03-19 09:49:18 -05:00
Aaron Blankstein
605d94bb9c Merge branch 'next' into feat/miner-coordinator 2024-03-19 09:26:09 -05:00
Aaron Blankstein
9297a7010a refactor: signer set parsing 2024-03-18 11:58:31 -05:00
Jacinta Ferrant
349befa3d3 CRC: move temp structure to inside function
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-18 11:57:43 -04:00
Aaron Blankstein
ac0c0873b2 cleanup sortdb invocations, remove unused structs, comments 2024-03-17 22:38:06 -05:00
Jacinta Ferrant
7c308a5b6e Refresh and initialize signers according to the current burn block height
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-15 22:35:44 -04:00
Jacinta Ferrant
e89d1af4c9 Subscribe signer to new Burn block events
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-03-15 21:56:19 -04:00
Aaron Blankstein
207cb690fe feat: naka miner acts as signer set coordinator during block signing
* Replaces msg_id u32 with an enum for message identification
* Adds an additional slot for miner messages
* Adds a sync channel for listening to StackerDB events
* Adds a StackerDBs method for pushing a chunk locally and emitting event
* Uses a new message type to store DKG results, to be read by miners to instantiate coordinator
* Uses a test signing channel for nakamoto integration tests
* Currently builds with a branch of wsts
2024-03-14 09:41:49 -05:00
Brice Dobry
b04c240476 Merge branch 'next' into dream-team-fixes 2024-03-13 15:52:28 -04:00
wileyj
067633d7b1 Merge pull request #4460 from stacks-network/ci/dry_x64_builds
[CI] Dry x86-64-v3 builds/default images to use glibc
2024-03-11 19:23:05 +00:00
Brice Dobry
17656a3863 chore: ensure all http/1.1 requests are properly structured 2024-03-11 13:15:58 -04:00
Brice Dobry
f077e08d11 fix: use http/1.1, not http/1.0 2024-03-10 15:35:50 -04:00
Aaron Blankstein
b61b2be0d4 logs: signer block responses to info. display formatting for block response 2024-03-08 21:58:00 -06:00
Aaron Blankstein
d56895a600 feat: use block proposal struct for miner -> signers comms. check claimed reward-cycle 2024-03-08 18:50:57 -06:00
Aaron Blankstein
aef7918253 chore: add more logging to the event receiver 2024-03-08 15:31:12 -05:00
Mårten Blankfors
6d59036f5e feat: Relax trait bound requirements of creating and spawning signers 2024-03-06 13:44:25 +01:00
Mårten Blankfors
fdba3e9694 fix: Get rid of some unnecessary trait bounds
Note: It's often tempting to put trait bounds on structs but in most
scenarios the general rule of thumb should be to use trait bounds
in impl blocks but let structs just declare data structures and
not behavior.

For further reading: https://stackoverflow.com/questions/49229332/should-trait-bounds-be-duplicated-in-struct-and-impl
2024-03-06 13:44:18 +01:00
wileyj
e7d165874f Merge branch 'next' into ci/dry_x64_builds 2024-03-05 13:29:48 -08:00
Matthew Little
1a0775f98b Merge branch 'next' into ci/dry_x64_builds 2024-03-05 18:48:01 +01:00
Matthew Little
92a7fc7560 Merge branch 'next' into chore/remove-self-signer 2024-03-05 16:01:16 +01:00