Jude Nelson
032c4861cd
chore: check to see if the *network* is connecting to a given neighbor, not that the stackerdb sync state machine is
2024-05-08 22:28:31 -04:00
Jude Nelson
e036ef03ba
fix: pub, not pub(crate), to remove warning about visibility
2024-05-08 14:51:39 -04:00
Jude Nelson
464a335ea3
fix: determine that a neighbor is connecting by either its event ID or its neighbor key
2024-05-08 14:33:34 -04:00
Jude Nelson
e81d6e95ba
chore: verify that we don't try to connect more often than we connect
2024-05-07 21:28:16 -04:00
Jude Nelson
d5e0a7f9a1
fix: don't attempt to connect to a neighbor if we're already trying to do so
2024-05-07 21:27:58 -04:00
Jude Nelson
9da1120489
chore: don't track dead or broken neighbors (don't disconnect from them; just don't talk to them). instead, track connections and connection attempts
2024-05-07 21:27:20 -04:00
Jude Nelson
51ef7d4723
chore: add test to see if a connection to a neighbor is pending
2024-05-07 21:27:02 -04:00
Jude Nelson
28ee6dc32a
Merge pull request #4733 from stacks-network/feat/bitcoin-mev
...
Feat/Bitcoin MEV
2024-05-07 20:05:53 +00:00
Jude Nelson
48a9d88b75
Merge branch 'develop' into feat/bitcoin-mev
2024-05-07 17:25:58 +00:00
Jude Nelson
a29b1628e0
chore: fix comment typo
2024-05-07 13:35:24 -04:00
Jude Nelson
6ab2fd2828
Merge pull request #4750 from stacks-network/fix/4734
...
Fix/4734
2024-05-07 16:56:31 +00:00
Hank Stoever
738c4c8210
Merge pull request #4719 from stacks-network/feat/signer-metrics
...
feat: signer monitoring server
2024-05-07 15:36:03 +00:00
Jude Nelson
e72ca43501
Merge branch 'feat/bitcoin-mev' of https://github.com/stacks-network/stacks-blockchain into feat/bitcoin-mev
2024-05-06 22:05:05 -04:00
Jude Nelson
95163e291e
fix: more PR feedback -- better, more-complete AtcRational tests and better abstraction over the inner u256
2024-05-06 22:03:54 -04:00
Jude Nelson
fa66891c78
chore: address PR feedback and add more test coverage
2024-05-06 16:08:11 -04: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
Jude Nelson
f98bcbffad
Merge branch 'develop' into fix/4734
2024-05-06 15:55:04 +00:00
Jude Nelson
07c6ac84d1
chore: add unit test
2024-05-06 12:04:41 -04: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
Jude Nelson
de17b4b414
Merge pull request #4749 from stacks-network/fix/4735
...
Fix/4735
2024-05-06 13:47:45 +00:00
Jude Nelson
d6f5ce6c70
chore: get all unit tests to pass
2024-05-03 17:04:35 -04:00
Jude Nelson
1f6e1290eb
chore: API sync
2024-05-03 17:04:29 -04:00
Jude Nelson
30ff6d8583
chore: add a mode of generating burnchain blocks in TestPeer that ensures that a block's hash will depend on the (number of) opts it contains
2024-05-03 17:04:05 -04:00
Jude Nelson
7318babacf
fix: don't start from reward cycle 0 when doing an inv sync; start from connection_opts.inv_reward_cycles
2024-05-03 17:03:43 -04:00
Jude Nelson
56f754ed4b
chore: expose set_initial_peer
2024-05-03 16:58:58 -04: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
Brice Dobry
18860131c7
Merge pull request #4743 from ASuciuX/feat/mock-mining-hot-swap
...
Feat/mock mining hot swap
2024-05-03 17:09:18 +00:00
Brice Dobry
54ae12566a
Merge pull request #4738 from stacks-network/fix/signer-cycle-transition
...
fix: handle a race condition between the signer and the /v2/pox endpoint
2024-05-03 17:08:21 +00:00
Brice Dobry
a9c14f9b01
Merge pull request #4698 from stacks-network/test/pox-4-unit
...
PoX-4 unit testing
2024-05-03 15:58:17 +00:00
Jude Nelson
77efe75c02
Merge branch 'develop' into feat/bitcoin-mev
2024-05-03 15:41:12 +00:00
Brice Dobry
9bce63865b
fix: revert changes in contrib/core-contract-tests/
...
The removal of package-lock.json causes `npm ci` to fail and it should
not be removed by this PR any way.
2024-05-03 11:21:39 -04:00
Aaron Blankstein
ac2bd50486
Merge pull request #4739 from stacks-network/chore/changelog
...
Changelog
2024-05-03 15:10:14 +00:00
Jude Nelson
d45faf9a08
fix: typos
2024-05-02 22:26:41 -04:00
Jude Nelson
754cd6043f
chore: index block-commits by apparent sender, so we can get the last commit by sender
2024-05-02 22:26:11 -04:00
Jude Nelson
09454b7025
fix: generate the expected block commit input so that mining works in nakamoto
2024-05-02 22:25:51 -04:00
Jude Nelson
2c6cddafe0
fix: disable windowing when we transition to epoch 3.0 for the duration of one window length
2024-05-02 22:25:15 -04: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
Hank Stoever
b1e09ddfc9
fix: fixed config_to_log_string test
2024-05-02 06:48:35 -07:00
ASuciuX
4245554ae0
hot swappable mock_mining
...
redid it on top of develop
2024-05-02 15:24:21 +03: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
Jude Nelson
9f79afcb26
fix: test the ATC lookup table generation, and cargo-fmt
2024-05-01 13:27:40 -04:00
Jude Nelson
73a2735e46
fix: address PR feedback, and make it so that the test framework generates the correct UTXO linkage data (so the new MEV algorithm won't disqualify Nakamoto miners using TestPeer)
2024-05-01 13:24:01 -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
f82279d286
chore: add changelog message for #4697
...
Downgraded log messages about transactions from warning to info.
2024-05-01 10:23:46 -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