Commit Graph

488 Commits

Author SHA1 Message Date
BowTiedDevOps
3637094f2e move changelog and release-process docs from libsigner to stacks-signer 2024-08-13 08:42:29 -07:00
Aaron Blankstein
3ae098e244 perf: improvements in clarity analysis
* cow/arcing tuple types and refactoring some checks in analyzer
2024-06-25 14:46:50 -05:00
Aaron Blankstein
e4770f6241 test: update tests 2024-06-18 11:01:46 -05:00
Jude Nelson
0ece14b0a0 Merge branch 'release/2.5.0.0.4' into fix/signer-slot-count 2024-06-04 18:44:43 +00:00
Jude Nelson
0f8b661069 chore: disable stackerdb encrypted state to make dkg and adjacent CI tests pass 2024-06-04 14:41:33 -04: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
ASuciuX
4b40a4c725 remove extra misleading output signer registration 2024-05-15 22:52:39 +03:00
ASuciuX
c712caf482 Merge branch 'develop' into feat/signer-message-updates 2024-05-15 19:58:19 +03:00
ASuciuX
07adabe53f remove extra dependency 2024-05-15 19:58:02 +03:00
ASuciuX
9fab39f340 update to general signer message for users
- it gets both cases:
1. reward set not determined
2. signer not registered
without having to modify a lot of the current implementation only to parse an extra separation between them.
2024-05-15 19:55:01 +03: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
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
6c5f04219b Merge branch 'chore/signer-traits' of https://github.com/stacks-network/stacks-core into chore/block-signature-message-type 2024-05-14 10:41:22 -07:00
Jacinta Ferrant
5d0dc11adb CRC: move traits to lib.rs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-14 10:37:19 -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
764de0b48b Add spawned signer struct to v1 mod.rs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-13 13:33:54 -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
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
jferrant
4afa9ef716 Merge pull request #4772 from stacks-network/chore/remove-dead-cli-commands
Remove dead CLI commands including Sign, DKG, and generate Files comm…
2024-05-10 16:23:43 +00:00
Jacinta Ferrant
844d5b3aa7 Undo var rename
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-09 14:58:02 -07:00
Jacinta Ferrant
a2e4a1d6ca cargo fmt
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-09 14:35:11 -07:00
Jacinta Ferrant
57b345807b Implement this error for MonitoringError and fix clippy warnings
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-09 14:32:39 -07:00
Jacinta Ferrant
8a2f4f1105 Remove dead CLI commands including Sign, DKG, and generate Files commands
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-05-09 14:22:23 -07:00
ASuciuX
6d5b66853f signer-messages 2024-05-08 20:29:42 +03:00
Hank Stoever
8ce2446444 Merge branch 'develop' into feat/signer-metrics 2024-05-06 07:08:21 -07:00
Hank Stoever
1f180d7855 feat: add no-op metrics timer when feature disabled 2024-05-06 07:07:33 -07:00
Hank Stoever
b1e09ddfc9 fix: fixed config_to_log_string test 2024-05-02 06:48:35 -07:00
Brice Dobry
430d9873d9 fix: only retry the /v2/pox endpoint if it returns an older cycle
It's okay if it returns a higher cycle than expected.
2024-05-01 16:36:07 -04:00
Brice Dobry
2082113a9b chore: add more info to error message 2024-05-01 16:13:48 -04:00
Brice Dobry
3e52aa0a85 fix: correct is_in_next_prepare_phase 2024-05-01 13:10:11 -04:00
Brice Dobry
40b1603b1f fix: build transient error correctly 2024-05-01 11:09:12 -04:00
Brice Dobry
af235d0bb7 fix: only attempt to refresh the signer during the next prepare phase
This handles the case where for the first block in a cycle (height %
cycle_length == 0), it will report that it is in cycle N, but it will
also report that it is in the prepare phase. This was resulting in
refreshing the signer config too early. For example, with a cycle length
of 20, at block 160, we would see a log:

```
Received a new burnchain block height (160) in the prepare phase of the
next reward cycle (9). Checking for signer registration...
```

This is incorrect, because block 160 is not in the prepare phase for
cycle 9.
2024-05-01 10:07:52 -04:00
Brice Dobry
b41019722e fix: handle a race condition between the signer and the /v2/pox endpoint
When the signer is processing a new burn block, it may hit the /v2/pox
endpoint before it has been updated with the latest block. This change
will check for this case and retry until it receives the expected cycle.
2024-05-01 10:01:42 -04:00
Hank Stoever
ae5b716734 fix: config_to_string test with metrics endpoint 2024-04-30 06:59:59 -07:00
Hank Stoever
24a0e973e7 feat: add heartbeat check to signer monitor 2024-04-29 16:56:01 -07:00
Hank Stoever
7318f5fd74 fix: typo spelling "gauge" 2024-04-29 16:44:27 -07:00
Hank Stoever
9154bb7935 feat: histogram for signer -> node RPC latency 2024-04-29 16:41:53 -07:00
Hank Stoever
544fcf63cc crc: 404 for unknown monitoring request, only increment dkg after submission 2024-04-29 14:57:25 -07:00
Hank Stoever
a5bda55833 feat: signer monitoring server 2024-04-29 14:57:23 -07:00
Jacinta Ferrant
588b5b727d Merge branch 'develop' of https://github.com/stacks-network/stacks-core into feat/signers-read-stackerdb 2024-04-25 08:59:52 -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
Jacinta Ferrant
286ea1d737 Move reading of stackerdb to refresh dkg call to make logic easier to follow
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-18 09:33:09 -07:00
Jacinta Ferrant
d0c887125b Fix test
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-18 08:37:53 -07:00
Jacinta Ferrant
8f6af15ee3 Merge branch 'develop' of https://github.com/stacks-network/stacks-core into feat/signers-read-stackerdb 2024-04-17 12:47:15 -07:00
Mårten Blankfors
53cf49d9ad Merge branch 'develop' into 4595-nakamoto-stacks-signer-should-store-its-dkg-shares-in-stackerdb-to-enable-disaster-recovery 2024-04-17 09:08:26 +02:00
Brice Dobry
df5431e379 Merge branch 'develop' into debug/dkg-results 2024-04-16 12:04:39 -04:00
Marzi
8874fd29a2 Hex encode chunk output before writing to terminal. Remove output sanitization 2024-04-16 11:07:59 -04:00
Marzi
aaec5634f3 Remove empty test 2024-04-16 11:07:59 -04:00
Marzi
70f287c27f Sanitize signer chunk data before writing to terminal 2024-04-16 11:07:59 -04:00