Commit Graph

20377 Commits

Author SHA1 Message Date
Jude Nelson
3b373321eb chore: make fmt 2023-11-01 12:58:27 -04:00
Jude Nelson
167a8a7b20 Merge branch 'develop' into feat/http-rpc-refactor 2023-11-01 12:57:52 -04:00
Joey Yandle
e640990ec3 Merge pull request #3988 from stacks-network/feature/retrieve-set-dkg
Trigger DKG on coordinator startup and put all stacks node communications on an exponential backoff
2023-10-30 11:50:46 -04:00
Jacinta Ferrant
2ba5647d36 Address bug in parse_aggregate_public_key by verifying data len is 32
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-27 09:44:54 -04:00
Jacinta Ferrant
2be0b039ee CRC: make backoff values into const vars and add github issues for TODOs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-26 15:40:17 -04:00
Jude Nelson
5ff0b218d5 fix: use 100 signers and 4000 keys. This test runs only on release CI anyway, so it's fine if it takes a while. 2023-10-26 12:15:36 -04:00
Jude Nelson
6d22cc6ad6 chore: add InvalidState error variant instead of unreachable!() 2023-10-26 00:45:38 -04:00
Jude Nelson
dcfba381b2 chore: address PR feedback 2023-10-26 00:45:26 -04:00
Jude Nelson
a3f6cca6f0 fix: forward stackerdb chunks to relayer 2023-10-26 00:45:09 -04:00
Jude Nelson
eaa8de9e7e chore: run DKG test as part of integration test 2023-10-26 00:44:24 -04:00
Jude Nelson
f34606797d chore: replace .len() == 0 with .is_empty() 2023-10-21 07:11:03 -04:00
Jude Nelson
33114c1e52 fix: revert localized cargo.toml changes 2023-10-21 07:07:12 -04:00
Jude Nelson
915ac5615e fix: use .request_path() 2023-10-21 06:57:24 -04:00
Jude Nelson
a6af3783a1 Merge branch 'develop' into feat/http-rpc-refactor 2023-10-21 06:37:51 -04:00
Jacinta Ferrant
0014d1e996 Clippy cleanup of signer.rs
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-18 14:45:46 -07:00
Jacinta Ferrant
cee0eeae21 Cleanup unnecessary errors, functions, and add retry backoff to aggregate public key check
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-18 14:02:33 -07:00
Jacinta Ferrant
1ebb4170ed WIP: cleanup and add cast_vote helper fn
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
365c5a9eb2 WIP: no longer hanging, needs cleanup
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
260473d76c WIP: Still unable to run should_run_dkg without hanging
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
96e8dcca07 WIP: Need to fix state for contacting node
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
aea9eb8af5 Add pox contract ID option to config to overwrite node result
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
d9fb56d97a Fix broken parsing due to trailing quotes in pox contract
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
1c5fcca9ed WIP: broken integration tests due to getting aggregate public key. Add retry logic to all http requests
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
8d62f80533 Need to add get_nonce and simulate its response in ignored transaction tests
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
7d0f6532dd Add another error case to reward cycle tests
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
fa9948d30f Cleanup some functions
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
c286e476e4 Add cast aggregate vote and get current reward cycle from pox
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
d3930027b6 WIP: Broken commit. Adding scaffolding for cast_aggregate_public_key_vote
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
545f0a1361 WIP: Broken commit. Issues with converting pox contract id into a QualifiedContractID
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
e367cabf25 Fix parsing of bitcoin wallet to be a full Point rather than an xonly public key
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
cf3619fe97 Fix rebase issues
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
f8ddb2f779 Parse aggregate public key from clarity contract and add test
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
0185a3de5d Add call to get pox contract id from stacks node
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
a85b84f04f WIP: add todo functions for interacting with a contract to trigger DKG
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
Jacinta Ferrant
7c6ecbf736 Add tests to call read only function and fix relative url
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-17 14:48:37 -07:00
soju-drinker
4cb14bd4f7 make 2023-10-17 14:48:37 -07:00
soju-drinker
dba2277580 wip: dkg contract interactions 2023-10-17 14:48:37 -07:00
Joey Yandle
5ac03fca4e Merge pull request #3982 from stacks-network/chore/test-dkg-stacker-db
Bugfixes for signer when testing CLI through mainnet develop node
2023-10-16 19:05:19 -04:00
Jacinta Ferrant
ea374a0c65 Fix rebase issues
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 14:49:49 -07:00
Jacinta Ferrant
e01a834a25 Add comment to explain weird use of alloc::vec
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 16:13:24 -04:00
Joey Yandle
5645a0b0f8 work around clap being very very dumb 2023-10-16 16:13:24 -04:00
Jacinta Ferrant
2b3a9ff6d9 Decode provided data as b58
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 16:13:24 -04:00
Jacinta Ferrant
8ed235e9cd CRC: remove busy loop and implement join handle function for libsigner runloop
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 16:13:24 -04:00
Jacinta Ferrant
7bf0c48ad7 Add mocknet option to network for clarity/completeness
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 16:13:24 -04:00
Jacinta Ferrant
4ee0698a0f Fix CLI data to be just a String as clap does not like Vec's and interprets it incorrectly
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 16:13:24 -04:00
Jacinta Ferrant
6f5954617a Do not unwrap the result as it should be a none
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 16:13:24 -04:00
Jacinta Ferrant
b848aa5307 Fix bug in spawn_running_signer which was incorrectly using node rather than endpoint
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 16:13:24 -04:00
Joey Yandle
959a6e67f0 Merge pull request #3950 from stacks-network/chore/pox-locking-fix-clippy
Address clippy complaints in pox-locking repo
2023-10-16 16:08:59 -04:00
Joey Yandle
e5d529c947 reclaim disk space before full genesis integration test 2023-10-16 14:33:56 -04:00
Jacinta Ferrant
5be4534eaf CRC: revert needless return changes for clarity
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2023-10-16 14:33:56 -04:00