Commit Graph

2576 Commits

Author SHA1 Message Date
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
Jude Nelson
48a9d88b75 Merge branch 'develop' into feat/bitcoin-mev 2024-05-07 17:25:58 +00:00
Jude Nelson
0a7af3addf Merge branch 'develop' into feat/bitcoin-mev 2024-05-06 19:59:14 +00:00
Hank Stoever
632ff518f3 Merge branch 'develop' into feat/signer-metrics 2024-05-06 10:55:56 -07:00
Hank Stoever
8ce2446444 Merge branch 'develop' into feat/signer-metrics 2024-05-06 07:08:21 -07:00
Jude Nelson
61b37c0b27 fix: optionally disable resolving bootstrap nodes, so the caller can avoid needless network I/O if it's not needed 2024-05-03 15:12:41 -04:00
Jude Nelson
9bd74ca80e Merge branch 'develop' into feat/bitcoin-mev 2024-05-03 18:57:40 +00:00
ASuciuX
ea9c8c8d03 Update testnet/stacks-node/src/burnchains/bitcoin_regtest_controller.rs
Co-authored-by: Brice Dobry <brice@obycode.com>
2024-05-02 19:41:39 +03:00
ASuciuX
4245554ae0 hot swappable mock_mining
redid it on top of develop
2024-05-02 15:24:21 +03:00
Jude Nelson
2b89463352 Merge branch 'feat/bitcoin-mev' of https://github.com/stacks-network/stacks-blockchain into feat/bitcoin-mev 2024-04-29 22:19:34 -04:00
Jude Nelson
1b1615c981 fix: api sync 2024-04-29 22:19:22 -04:00
Hank Stoever
a5bda55833 feat: signer monitoring server 2024-04-29 14:57:23 -07:00
obycode
4e9e47fd66 Merge branch 'master' into develop 2024-04-26 17:16:42 -04:00
Jacinta Ferrant
ff96f8c31e Do it right or don't do it at all. Use stackerdb to know when to trigger next steps
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-25 11:44:18 -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
80057807f5 Increase timeouts so test doesn't flake
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-25 08:08:53 -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
Jacinta Ferrant
573d2cf914 Merge branch 'develop' of https://github.com/stacks-network/stacks-core into feat/signers-read-stackerdb 2024-04-24 16:25:10 -07:00
Jacinta Ferrant
5be291ea09 Rduce wait on interim blocks
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
98aed376cc WIP: cannot seem to mine a second stacks blocks
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
2016d02084 Mine an extra block and tenure to ensure correct behaviour
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
7591cff581 Hide the shame! call get block_tenure_b AFTER wiaitng for block b
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
c6f128f078 Remove enforcing blocks to be build off of the stacks tips tenure
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
db52891cd7 Uncomment the fix for the forked_tenure_is_ignored test and add it to the yaml
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Aaron Blankstein
7768d0069d test: get Tenure C to correctly stall due to Tenure Bs unbroadcasted block 2024-04-24 16:17:33 -07:00
Brice Dobry
46ccb47415 test: improvements to forked_tenure_is_ignored test 2024-04-24 16:17:33 -07:00
Brice Dobry
b4ed5f361d test: next attempt at fixing forked_tenure_is_ignored 2024-04-24 16:17:33 -07:00
Jacinta Ferrant
542954dfd4 Still brokenness part 2
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
94ed10c767 Still brokenness
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
00006c62e8 Slightly less brokenness
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
6be9343a15 Brokenness part 2
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
855e9cb4bb Brokenness
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
d052cea89e WIP: do not submit the block commit to bitcoin network, but still create it and register that it was submitted in the globals
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
309e003263 WIP: add test to try to trigger NewParentDiscovered error
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
3fc7319651 WIP: add testing global mutexes to force correct scenario
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
eae6935784 Fix var name to be header rather than id
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
9ecfc9f3d6 Get the last block of the parent tenure when the new tenure is empty
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Jacinta Ferrant
64dca26168 Do not use canonical tip as a fork may have happened when getting parent info for a miner
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
2024-04-24 16:17:33 -07:00
Hank Stoever
75441e25a9 Merge branch 'develop' into feat/miner-bitvec 2024-04-23 06:58:46 -07:00
Jeff Bencin
d76fd81902 feat: Add nakamoto_attempt_time_ms to control Nakamoto miner 2024-04-22 11:01:31 -04:00
Hank Stoever
7d7b27019e crc: default to 0 bitvec length 2024-04-18 11:20:38 -07:00
Hank Stoever
72dd5a4443 feat: initialize BitVec with correct length and track next BitVec 2024-04-18 11:20:38 -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
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
54dcbb7d52 fix: match SignerMessage::EncryptedSignerState as a tuple variant and not a struct 2024-04-16 09:09:35 +02:00
Mårten Blankfors
ab84cbadce Merge branch 'develop' into 4595-nakamoto-stacks-signer-should-store-its-dkg-shares-in-stackerdb-to-enable-disaster-recovery 2024-04-16 08:51:24 +02:00
Brice Dobry
80f3e9a1d7 Merge branch 'next' into chore/next-to-develop 2024-04-15 12:44:52 -04:00