Commit Graph

22199 Commits

Author SHA1 Message Date
Jude Nelson
079a9afbf5 chore: test that a peer with a stale view will not be acknowledged, but it will once its view converges 2024-03-15 13:10:33 -04:00
Jude Nelson
1c348d52ea feat: track neighbors with stale views 2024-03-15 13:10:32 -04:00
Jude Nelson
be777c0e82 feat: test neighbors with stale views 2024-03-15 13:10:31 -04:00
Jude Nelson
b1565995a8 fix: force an initial burnchain view load for the p2p network if it hasn't completed a full state-machine pass yet 2024-03-15 13:10:27 -04:00
Jude Nelson
6ee881b073 fix: fix comments on rc_consensus_hash 2024-03-15 13:06:09 -04:00
Jude Nelson
82b60b3825 fix: NACK getchunks and getchunksinv requests with NackErrorCodes::StaleView if the rc_consensus_hash doesn't match 2024-03-15 13:06:08 -04:00
Jude Nelson
844a8edde2 fix: a bad slot signature should be a distinct error 2024-03-15 13:06:05 -04:00
Jude Nelson
1e81fa54f5 fix: rc_consensus_hash in the burn view is the stacks tip consensus hash, not the reward cycle consensus hash 2024-03-15 13:03:04 -04:00
Jude Nelson
8589fbc31d Merge branch 'feat/nakamoto-block-download-api' into feat/nakamoto-block-downloader 2024-03-13 14:28:16 -04:00
Jude Nelson
410dc30d7c Merge branch 'next' into feat/nakamoto-block-download-api 2024-03-13 14:27:03 -04:00
Jude Nelson
dfb93a1611 chore: fix unit tests and add docs 2024-03-13 14:26:37 -04:00
Brice Dobry
e9404a5ff3 Merge pull request #4537 from stacks-network/fix/expected-size-debug
fix: correct deserialization size check
2024-03-13 17:32:38 +00:00
Brice Dobry
238a099ba9 fix: correct deserialization size check
This fixes the condition controlling a debug message related to value
sanitization.
2024-03-13 12:49:37 -04:00
ASuciuX
d458b74588 Merge pull request #4521 from ASuciuX/chore/rename-clarity-methods
Rename 'get'/'put' Methods in Clarity
2024-03-13 16:25:59 +00:00
Matthew Little
fec1cb57bc Merge pull request #4524 from stacks-network/feat/add-pox-threshold-event-data
feat: add `pox_stx_threshold` amount to `/new_block` event data
2024-03-13 14:31:49 +00:00
Hank Stoever
9058e22a4a Merge pull request #4376 from stacks-network/feat/vote-for-key-burnop
feat: burn op definition and storage for vote-for-agg-key
2024-03-13 13:34:51 +00:00
Matthew Little
d38a9e6764 Merge branch 'next' into feat/add-pox-threshold-event-data 2024-03-13 10:22:42 +01:00
wileyj
87c0c00f85 Merge pull request #4497 from BowTiedDevOps/feat/move-build-scripts-to-composite
Move the Creation of Source Binaries to Composite
2024-03-12 20:28:52 +00:00
Matthew Little
ebbfe1e87e chore: pr feedback pox_stx_threshold to pox_ustx_threshold 2024-03-12 18:34:05 +01:00
Matthew Little
27df25951f chore: simplify syntax 2024-03-12 18:24:26 +01:00
Matthew Little
5150acf3b1 Merge pull request #4522 from stacks-network/fix/stacked-amt-json-serialization
fix: `stacked_amt: u128` should serialize as string
2024-03-12 17:22:22 +00:00
Jude Nelson
c95e2dada2 Merge branch 'feat/nakamoto-block-download-api' into feat/nakamoto-block-downloader 2024-03-12 13:14:41 -04:00
Jude Nelson
a9c5a39951 Merge branch 'next' into feat/nakamoto-block-download-api 2024-03-12 13:11:41 -04:00
Matthew Little
a97117cd2e chore: fix tests 2024-03-12 17:59:46 +01:00
Hank Stoever
e3a76f7c3c feat: fix nakamoto integration test 2024-03-12 07:27:25 -07:00
BowTiedDevOps
a9768e8cfa Merge remote-tracking branch 'upstream/next' into feat/move-build-scripts-to-composite 2024-03-12 16:18:37 +02:00
wileyj
ae8a483fe4 Merge pull request #4470 from BowTiedRadone/feat/pox-4-property-tests
Add property tests for PoX-4 read-only functions
2024-03-12 14:03:17 +00:00
Matthew Little
abb47dd806 feat: add pox_stx_threshold amount to /new_block event data 2024-03-12 14:26:19 +01:00
Matthew Little
b7e2590539 fix: JSON serialization for stacked_amt u128 should use string 2024-03-12 14:14:57 +01:00
ASuciuX
c4af9027be Merge branch 'next' into chore/rename-clarity-methods 2024-03-12 13:56:39 +02:00
Jude Nelson
6dce4ea0ad Merge branch 'next' into feat/nakamoto-block-downloader 2024-03-11 22:22:30 -04:00
Jude Nelson
3e5862a31e chore: API sync 2024-03-11 22:22:02 -04:00
Jude Nelson
7b44ea9dc5 WIP: test coverage for booting a peer off of another peer 2024-03-11 22:21:44 -04:00
Jude Nelson
fa401855d3 fix: cache aggregate public keys for quick lookup in the downloader, as well as fixes to cached tenure data 2024-03-11 22:21:17 -04:00
Jude Nelson
595a0617b6 fix: rely on the p2p data URL dns resolution, instead of (incorrectly) assuming that the p2p addr was also the data addr 2024-03-11 22:20:43 -04:00
Jude Nelson
3ae3f64294 feat: make it possible to separately apply burnchain operations to a test peer, and do the sortition later (so we can simulate IBD) 2024-03-11 22:20:14 -04:00
Jude Nelson
6bb8821781 chore: fix off-by-one error in reward cycle calculation, and add some debug statements 2024-03-11 22:19:50 -04:00
Jude Nelson
e2831b3e33 chore: substantial across-the-board fixes to the download state machines to ensure that it actually works 2024-03-11 22:19:11 -04:00
Jude Nelson
cc2aeb53c6 feat: eagerly resolve the data URL hostname in a p2p conversation so it'll be available as needed by the nakamoto downloader 2024-03-11 22:18:41 -04:00
Jude Nelson
2ee222f85f fix: get_expected_burns() is now fallible 2024-03-11 22:18:23 -04:00
Jude Nelson
4059ae999b fix: return the block header even if it's an epoch2 block 2024-03-11 22:17:59 -04:00
Jude Nelson
df0a064c45 chore: use the test_signers for the parent tenure's sortition, not the penultimate sortition 2024-03-11 22:17:30 -04:00
Jude Nelson
b46f210a6a chore: test_debug log of the blocks we sign 2024-03-11 22:17:14 -04:00
Jude Nelson
f6d2c27da5 chore: helper to see if there are outstanding unprocessed nakamoto blocks 2024-03-11 22:16:57 -04:00
Jude Nelson
9943543af8 fix: don't validate the burnchain tokens spent until block-processing, since doing so at block-acceptance time would makee it impossible to validate blocks out-of-order (since we wouldn't be guaranteed to find the parent block) 2024-03-11 22:15:44 -04:00
Jude Nelson
78b42295a7 fix: don't panic on missing anchor block; just spin since it may be inflight 2024-03-11 18:30:33 -04:00
Jude Nelson
3d02ddd6a4 fix: use the canonical burnchain tip to determine which sortition to associate the canonical accepted stacks chain tip with 2024-03-11 18:29:51 -04:00
Jude Nelson
5b21637b54 chore: test method to get a burnchain block's ops 2024-03-11 18:28:43 -04:00
BowTiedRadone
ad0e26593b Merge branch 'next' into feat/pox-4-property-tests 2024-03-12 00:01:32 +02:00
Hank Stoever
40933538ee Merge branch 'next' into feat/vote-for-key-burnop 2024-03-11 12:56:46 -07:00