Commit Graph

17065 Commits

Author SHA1 Message Date
Jude Nelson
e4d7e304e7 fix: fix broken unit test compile error 2022-10-18 20:09:37 -04:00
Jude Nelson
4cd13c15ad feat: surpress warnings, and add ability to create a distribution of transactions with different runtime sizes 2022-10-18 17:00:26 -04:00
Jude Nelson
1c8cb4c919 fix: surpress warnings 2022-10-18 17:00:11 -04:00
Jude Nelson
cd1990974c fix: surpress warnings 2022-10-18 17:00:00 -04:00
Jude Nelson
becf0bcbc7 fix: surpress warnings 2022-10-18 16:59:49 -04:00
Jude Nelson
7f4dc0bb0b fix: surpress warnings 2022-10-18 16:59:34 -04:00
Jude Nelson
0bde57822c fix: surpress warnings 2022-10-18 16:59:25 -04:00
Jude Nelson
c00b12aa46 fix: surpress warnings 2022-10-18 16:59:04 -04:00
Jude Nelson
c10d052ff2 Merge branch 'feat/interruptable-miner' of https://github.com/stacks-network/stacks-blockchain into feat/interruptable-miner 2022-10-18 14:14:06 -04:00
Jude Nelson
ecb33a94ad Merge branch 'develop' into feat/interruptable-miner 2022-10-18 14:13:51 -04:00
Jude Nelson
93015f1047 Merge pull request #3348 from stacks-network/chore/unittests-2.05.0.3.0
Chore/unittests 2.05.0.3.0
2022-10-18 18:01:20 +00:00
Jude Nelson
5123caa19b chore: backport unit tests from 2.05.0.3.0 2022-10-18 10:47:22 -04:00
Jude Nelson
b1b3b2ddaa chore: backport unit tests from 2.05.0.3.0 2022-10-18 10:47:05 -04:00
Jude Nelson
f5518396a1 chore: backport unit tests from 2.05.0.3.0 2022-10-18 10:46:53 -04:00
Jude Nelson
4c56218e0a chore: backport unit tests from 2.05.0.3.0 2022-10-18 10:46:39 -04:00
Jude Nelson
9e57f248c8 chore: backport unit tests from 2.05.0.3.0 2022-10-18 10:46:24 -04:00
Jude Nelson
ea81b42ecf chore: backport unit tests from 2.05.0.3.0 2022-10-18 10:46:11 -04:00
Jude Nelson
620b72efe9 chore: backport unit tests from 2.05.0.3.0 2022-10-18 10:45:51 -04:00
Jude Nelson
ef1ecb71f3 fix: backport unit tests from 2.05.0.3.0 2022-10-18 10:45:34 -04:00
Jude Nelson
32694115f0 chore: run new integration tests 2022-10-18 10:45:19 -04:00
Jude Nelson
031a5febf3 Merge branch 'develop' into feat/interruptable-miner 2022-10-15 16:12:05 +00:00
Jude Nelson
0a265b7dcd Merge pull request #3338 from stacks-network/pow-corner-cases
docs: add details for corner cases of `pow`
2022-10-15 15:54:22 +00:00
Brice Dobry
022b75373f docs: add details for corner cases of pow
Fixes: #3295
2022-10-12 17:49:20 -04:00
Jude Nelson
365215284b fix: shorter microblock deadline for microblocks_event_test 2022-10-12 13:50:57 -04:00
Jude Nelson
2ac20824f5 fix: mine a microblock before mining another stacks block when we win sortition 2022-10-12 13:50:37 -04:00
Jude Nelson
6fe44078f6 fix: fix failing unit tests by *not* returning a microblock who has a sibling in a fork whereby it shares a parent with another microblock 2022-10-12 13:49:47 -04:00
Jude Nelson
e5e39b1b04 fix: fix compile-time issue with unit tests 2022-10-11 11:01:38 -04:00
Jude Nelson
19e94931d0 Merge branch 'develop' into feat/interruptable-miner 2022-10-11 10:58:06 -04:00
Jude Nelson
50d375784a Merge pull request #3327 from stacks-network/merge/master-develop-oct2022
chore: Merge `master` into `develop`
2022-10-11 14:52:49 +00:00
Jude Nelson
b7b68790c5 feat: document the structure of the Stacks node 2022-10-10 20:38:14 -04:00
Jude Nelson
c3148e790c fix: avoid gratuitous call to pick_higher_tip 2022-10-10 15:45:16 -04:00
Jude Nelson
c3656a379d feat: add integration tests for chain quality when there are multiple miners 2022-10-10 15:40:18 -04:00
Jude Nelson
b3b6525713 fix: wait for one inv and download pass before running tenure, and when we win tenure, broadcast the block _before_ processing it. Also, because blocks can get mined out-of-order relative to burnchain blocks, advance the miner tip only if the tip is higher in the stacks chain 2022-10-10 15:38:24 -04:00
Jude Nelson
c19ad0f70b feat: add wait_time_for_blocks config option similar to wait_time_for_microblocks to have the node wait for a block to arrive before starting tenure 2022-10-10 15:37:46 -04:00
Jude Nelson
d08cd0acfc feat: log when we store a block 2022-10-10 15:37:32 -04:00
Jude Nelson
b5e7ee553c feat: add Error::ChannelClosed() variant to detect thread hangups 2022-10-10 15:36:57 -04:00
Greg Coppola
18e4b20a97 Merge branch 'master' into merge/master-develop-oct2022 2022-10-06 13:51:45 -05:00
Jude Nelson
dc58cfc7b4 feat: add a poison-microblock integration test to verify that stream forks are detected and the offending miner gets punished, and also start working out multi-miner tests for verifying that the chain continues to work well under load. 2022-10-05 23:21:45 -04:00
Jude Nelson
8da076e7c7 docs: document that this is only for helium 2022-10-05 23:21:27 -04:00
Jude Nelson
69ce0ff43d feat: make it so the neon runloop sets up structured global thread state, and blocks/unblocks the miner in response to new burnchain data arriving. This prevents the miner from stalling the node in the event of a slow mempool walk. 2022-10-05 23:20:45 -04:00
Jude Nelson
c1d2132281 fix: send a copy of the exit at block height 2022-10-05 23:20:31 -04:00
Jude Nelson
361a3f29fb feat: untangle and restructure the hairball that was neon_node. Now, all the state for all the threads is clearly identified and encapsulated in structs, as is thread-shared global state. Also, everything is now documented. Neon node should be much more approachable now. 2022-10-05 23:19:37 -04:00
Jude Nelson
9d60275519 fix: accommodate poison-microblock transaction evaluation results 2022-10-05 23:17:43 -04:00
Jude Nelson
567303dd48 chre: make it so the test framework can avoid the need for a downloader pass to unblock mining (since tests tend to only have one node, and thus no downloader passes complete) 2022-10-05 23:17:06 -04:00
Jude Nelson
46a76c6852 feat: make it possible to create a burnchain tx submission client from ongoing commit state (so another thread can be used to send the burnchain commit) 2022-10-05 23:16:24 -04:00
Jude Nelson
a27d9f4269 chore: exit_at_block_height is now a bare Option<u64> instead of a borrowed Option<&'a u64> 2022-10-05 23:16:00 -04:00
Jude Nelson
d2c1c59bf8 feat: use new NetworkResult contructor 2022-10-05 23:15:50 -04:00
Jude Nelson
6b0befd79f feat: NetworkResult now reports the p2p thread's burn height 2022-10-05 23:15:36 -04:00
Jude Nelson
0ea6586c79 feat: add a miner-driven mempool submission function so that the miner can add its own transactions while bypassing the usual checks that would prevent them (such as fees or nonce conflicts). Used to submit poison-microblock transactions 2022-10-05 23:14:52 -04:00
Jude Nelson
ab0d95a95a chore: add MinerAborted error variant 2022-10-05 23:14:38 -04:00