-
Notifications
You must be signed in to change notification settings - Fork 696
Fix/1805 #2707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Fix/1805 #2707
Changes from all commits
Commits
Show all changes
135 commits
Select commit
Hold shift + click to select a range
0552a15
feat: add to_bitcoin_hash() method for BurnchainHeaderHash, which fli…
jcnelson 5e45a94
refactoring: move reward cycle and block height converstion methods t…
jcnelson a25f1d0
fix: while testing, log the PoX bit vector and ancestor consensus has…
jcnelson 411ab27
refactor: wrap PoxConstants methods for block height and reward cycle…
jcnelson 0eb76b3
refactor: make write_block_headers() public
jcnelson 7b6652c
feat: implement BurnchainHeaderReader trait for the BitcoinIndexer, s…
jcnelson 8701eb7
feat: introduce the AffirmationMap data structure, which identifies a…
jcnelson 3be408c
feat: expand the metadata we track for block-commit transactions to i…
jcnelson 5d8b06b
feat: add a few more methods to the sortition DB to allow the chains …
jcnelson b1bfabd
refactoring: use ..BlockSnapshot::initial() to populate BlockSnapshot…
jcnelson 365e10c
feat: make it so that previously-orphaned stacks block data can be fo…
jcnelson f5da764
feat: fix #1805 by implementing Nakamoto consensus on the history of …
jcnelson ae24b88
feat: add tests to cover the emergence of multiple anchor block histo…
jcnelson 38c5039
feat: add unit_test_2_1() to StacksEpoch for instantiating a list of …
jcnelson f3f163d
refactor: synchronize burnchain API with main.rs
jcnelson f4c82f0
refactor: synchronize network tests with burnchain
jcnelson 58eef6a
refactor: use a native sortition DB method for finding the parent sor…
jcnelson 1ce9870
feat: add has_prefix() method to PoxId to see if a PoxId is a prefix …
jcnelson 3a32889
feat: FromRow<bool> implementation
jcnelson 186f1f7
refactor: synchronize Bitcoin sync logic in the Stacks node with the …
jcnelson 64e20a7
refactor: sync neon integration tests with new burnchain API
jcnelson b104a74
Merge branch 'next' into fix/1805
jcnelson c77c3a6
fix: create the burnchain DB and its parent directory if they don't e…
jcnelson bfbf56e
fix: test coverage for forget_orphaned_epoch_data(); clarify behavior…
jcnelson 0e2c6c8
fix: remove dead code, and comment on the behavior of affirmation map…
jcnelson bf8de60
fix: remove commented-out code, and document expected behavior for ha…
jcnelson cb47f44
fix: remove now-covered TODO
jcnelson 993c124
fix: revert to original invalid block-processing code, since this new…
jcnelson 5bc69e5
refactor/fix: put all burnchain tests into their own test directory, …
jcnelson 3c8a9eb
refactor: implement get_burnchain_header() as a trait method for Burn…
jcnelson f7e52d9
refactor: Stacks epochs are comparable, so for changes that are meant…
jcnelson fb4d7f9
refactor: anchor block and anchor block descendant fields may be NULL
jcnelson 1a6611e
refactor: helper method to convert Option<u64> into Option<i64> for d…
jcnelson a3718af
Merge branch 'next' into fix/1805
jcnelson 3990b12
fix: use IS NULL instead of != NULL when appropriate -- don't just bl…
jcnelson ce59cce
fix: update test APIs from next merger
jcnelson 9ff6f37
fix: cargo fmt update
jcnelson 1a5db40
fix: tests: instantiate spv headers so unit tests continue to pass
jcnelson f80f240
cargo fmt
jcnelson bf3ca85
fix: more cargo fmt insanity
jcnelson 9518d50
fix: more documentation
jcnelson 711ab33
fix: more documentation
jcnelson ba937b7
fix: more test documentation
jcnelson 458099b
refactor: remove dead code
jcnelson cd4d56d
fix: more documentation
jcnelson a4025e7
fix: remove dead documentation
jcnelson eb69fc9
Merge branch 'next' into fix/1805
jcnelson d325d01
fix: remove unused code paths (turn them into errors)
jcnelson 2c7bbb7
fix: remove unused code
jcnelson 05dc2a3
refactor: api sync
jcnelson cf20f1a
fix: add test coverage for getting, setting, and querying anchor bloc…
jcnelson 066870c
feat: expose the means by which we create mocked SPV headers, so we c…
jcnelson 79241f4
feat: optionally disable strict SPV header validation in testing -- n…
jcnelson d7972da
refactor: expose the means by which we process each reward cycle's af…
jcnelson 0f0f5af
refactor: more debug output
jcnelson 47a8e82
fix: when creating mocked sortitions, make it so the BlockSnapshot's …
jcnelson 18f082b
fix: use the burnchain hash as the stubbed sortition ID when instanti…
jcnelson 223fd43
refactor: debug the initial block the sortdb starts at
jcnelson 78c64cd
fix: start all pox-based tests on the first bitcoin regtest block hash
jcnelson 7dacc54
fix: start all pox tests on the first bitcoin regtest block
jcnelson 3ae302c
fix: first regtest bitcoin block hash was wrong
jcnelson 24a0216
fix: when generating block snapshots in network tests, use the SPV he…
jcnelson d6ebc65
fix: better debug log in expect() if there's a missing parent commit
jcnelson b083046
fix: make it so all SPV headers -- and by extension, all sortitions -…
jcnelson c26c90f
fix: calculate ibd status for the p2p state-machine when processing b…
jcnelson 1716cdf
fix: remove now-unneeded test
jcnelson f94d0a8
fix: use expect() instead of unwrap() for panicking test failure
jcnelson 0f058f6
fix: fix failing test due to changes in the way we handle mocked SPV …
jcnelson 1e210dc
refactor: add way to directly query a test's directory
jcnelson 362d126
fix: documentation -- we use burnchain header hashes in preambles
jcnelson bc5e2ac
Merge branch 'next' of https://github.com/blockstack/stacks-blockchai…
jcnelson e07afa4
Merge branch 'next' into fix/1805
jcnelson 5abe1b1
refactor: put static_block_height_to_reward_cycle into PoxConstants w…
jcnelson 4d81768
refactor: use the right static_block_height_to_reward_cycle
jcnelson 895a753
refactor: remove compiler warning about ()
jcnelson 7105b9a
fix: broken tests arising from not using the bitcoin regtest genesis …
jcnelson dd58e24
Merge branch 'chore/merge-develop-to-next' into fix/1805
jcnelson ba856ca
chore: cargo fmt
jcnelson b3f1e15
fix: add a .reader() trait method for BurnchainIndexer, which for the…
jcnelson c25b08e
fix: all block-commits in test framework have epoch marker for 2.1
jcnelson 3ef4308
fix: use original unit_tests_2_05() function for generating mocked ep…
jcnelson 333222c
chore: add epoch 2.1 boundary marker
jcnelson 21cf7a8
Merge branch 'chore/merge-develop-to-next' into fix/1805
jcnelson d31dcc4
Merge branch 'chore/merge-develop-to-next' into fix/1805
jcnelson 4832efe
Merge branch 'next' into fix/1805
jcnelson 18e4e75
Merge branch 'next' into fix/1805
jcnelson 5878313
chore: cargo fmt
jcnelson a122d38
Merge branch 'next' into fix/1805
jcnelson 5f633af
Merge branch 'next' into fix/1805
jcnelson 0cb8e4d
chore: cargo fmt
jcnelson c98ebb5
fix: tests need to use a genesis block hash for their first burnchain…
jcnelson 2d78424
feat: make it so that the node operator can start using affirmation m…
jcnelson 41602b3
feat: add [node].always_use_affirmation_maps (default false)
jcnelson 2f256c8
chore: plumb through config.node.always_use_affirmation_maps to Chain…
jcnelson cc8714f
fix: add config field to test chainscoordinator instantiation
jcnelson f883aef
fix: retry burnchain block processing periodically if we're missing a…
jcnelson 1e3408e
fix: explicitly set CARGO_MANIFEST_DIR in a bid to fix CI
jcnelson 462dc63
feat: add a 100-block download test that enables a node to build up a…
jcnelson 856da0b
fix: make it possible to make microblocks with an anchored block
jcnelson 3a82813
fix: repair node download test so it produces chainstate that our dow…
jcnelson 47c61f2
fix: update network test framework so we can mine with a missing PoX …
jcnelson 28b14e9
chore: debug messages for bitcoind fork
jcnelson 1813aba
Merge branch 'next' into fix/1805 and address PR feedback
jcnelson 8a0e58d
chore: add affirmation map rustdocs and remove elided lifetime parame…
jcnelson afc5eaa
fix: add missing variable
jcnelson 76b2c31
fix: consolidate static pox constant checks and have burnchain wrap them
jcnelson 95e1ad7
fix: address PR feedback and remove merge artifact
jcnelson dd2163c
fix: use static_is_in_prepare_phase
jcnelson 6131150
fix: use PoxAddress
jcnelson 0443585
fix: address PR feedback
jcnelson 12bc29e
fix: derive Clone for some structs that we need to be clonable
jcnelson 1612728
fix: remove unneeded `mut`s
jcnelson 7fa4ba2
fix: cargo fmt
jcnelson 253de7c
fix: typo
jcnelson ebb3737
chore: cargo fmt
jcnelson 4ed089e
fix: unit tests must use the regtest bitcoin genesis header hash, not…
jcnelson 3c1a8f3
fix: correct nonce and rewards in bitcoind forking test
jcnelson 14a10c8
Merge branch 'next' into fix/1805
jcnelson cced949
Merge branch 'next' into fix/1805
jcnelson 1619fe9
docs: wordsmith some comments
jcnelson 199d4c8
fix: failing unit tests brought on by the new way we instantiate burn…
jcnelson 2bc1be4
Merge branch 'next' into fix/1805
jcnelson fd2819d
Merge branch 'next' into fix/1805
jcnelson 0978eff
fix: set chains-coordinator thread stack size to the same as the mine…
jcnelson be0e3ff
Merge branch 'next' into fix/1805
jcnelson 8f7983e
fix: multiple imports merge artifact
jcnelson f434ae6
Merge branch 'next' into fix/1805
jcnelson f4d10bc
refactor: put tests in the right place
jcnelson e887818
fix: use the right function name
jcnelson 766627a
chore: API sync
jcnelson d9728bf
chore: API sync
jcnelson 6752361
chore: choose consistent name for this function
jcnelson 32d3799
fix: only instantiate indexes if we need to
jcnelson 3b93a75
fix: new in 2.1: a reward cycle can be home to at most one anchor blo…
jcnelson 69294d5
fix: burnchain regtest must now start with regtest header
jcnelson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.