1831 Commits

Author SHA1 Message Date
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
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
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
Don
48dc9c98dc unused module 2022-10-04 10:25:14 -07:00
Don
7cc1b13f54 unpacking tuples into (_unused, used) 2022-10-04 10:25:14 -07:00
Don
7645beaafe remove unused fields instead of _name 2022-10-04 10:25:14 -07:00
Don
6195c79b43 prefer _name over dead_code 2022-10-04 10:25:14 -07:00
Don
d3c1ffa166 fields are set but not read. allowing dead_code to mute warning 2022-10-04 10:25:14 -07:00
Don
11c3684625 designate unused vars with _name. leaving the fields in the struct for completeness when compared to matching bitcoin struct 2022-10-04 10:25:14 -07:00
Don
b90c40ac2e unused crates and unused variables 2022-10-04 10:25:14 -07:00
Igor
a53a5754dc rustfmt 2022-10-01 17:56:30 -07:00
Igor
befeb4b855 move stacks-events to testnet/stacks-node/src 2022-10-01 17:52:44 -07:00
Jude Nelson
875e96e823 fix: test for nearly-complete and partial SPV difficulty intervals 2022-09-12 14:01:30 -04:00
Jude Nelson
306a06b7c3 fix: fix failing integration test by remembering an old chain tip across tenures 2022-09-10 15:19:36 -04:00
Jude Nelson
eaf990ed79 fix: use txid from payload instead of deterministically-generated one to ensure that the devnet node can recognize the transactions it sends 2022-09-09 10:43:07 -04:00
Jude Nelson
423c54856f Merge branch 'feat/native-segwit' of https://github.com/stacks-network/stacks-blockchain into feat/native-segwit 2022-09-08 15:56:54 -04:00
Jude Nelson
7f144cdb84 fix: fix compile-time bugs in non-test variants of a couple functions 2022-09-08 15:56:10 -04:00
Jude Nelson
541f5984cc Merge branch 'next' into feat/native-segwit 2022-09-08 19:13:24 +00:00
Jude Nelson
a13c5bcfde chore: API sync 2022-09-08 15:04:12 -04:00
Jude Nelson
8f00f61586 feat: test that we can stack to segwit addresses and query them with get-burn-block-info pox-addrs, and also verify that we can *mine* using a native p2wpkh UTXO 2022-09-08 15:03:41 -04:00
Jude Nelson
22b580a52a chore: API sync 2022-09-08 15:03:22 -04:00
Jude Nelson
39ff1a457e feat: determine if a node is a miner by also checking its segwit address, if the config file permits it 2022-09-08 15:03:00 -04:00
Jude Nelson
7fbcf02bb3 refactor: track key registration with txid, not BurnchainSigner 2022-09-08 15:02:39 -04:00
Jude Nelson
2d1885c5e0 refactor: track pending leader key register txs by txid and block height, not BurnchainSigner (which is useless for this now) 2022-09-08 15:02:12 -04:00
Jude Nelson
8ad2168543 feat: scrub the use of BurnchainSigner to represent address information (as it was never supposed to be used this way) 2022-09-08 15:01:34 -04:00
Jude Nelson
8c3514190b chore: miner.segwit is now a supported field -- if true, the node will try to use segwit p2wpkh to mine if it's available 2022-09-08 15:01:06 -04:00
Jude Nelson
53070ceb0a feat: submit_operation() returns the txid 2022-09-08 15:00:50 -04:00
Jude Nelson
e6bdf83fdf chore: API sync 2022-09-08 15:00:36 -04:00
Jude Nelson
b81a70e048 feat: implement epoch-gated mining using a segwit p2wpkh input and output. If a miner has both legacy and segwit UTXOs, and epoch 2.1 rolls around, start using the segwit UTXOs 2022-09-08 14:59:49 -04:00
Matthew Little
ad30e130dd fix: ensure epoch2.1 block height configuration is specified before possible pox_2_activation height 2022-09-06 23:12:36 +02:00
Matthew Little
712099a46f chore: PR feedback 2022-09-04 07:46:33 +02:00
Matthew Little
352de9f768 chore: lint 2022-09-03 18:29:41 +02:00
Matthew Little
e7c400777c fix: use pox_2_activation configuration in a few more areas 2022-09-03 12:52:42 +02:00
Jude Nelson
1a34c11508 feat: release 2.05.0.3.0 2022-08-31 13:41:12 -04:00
Aaron Blankstein
b187870212 feat: add pox_2_activation configuration to burnchain config 2022-08-26 10:57:57 -05:00
Igor
a679c0ea12 rustfmt 2022-08-23 15:26:24 -05:00
Igor
6784208643 updates 2022-08-23 13:40:21 -05:00
Igor
718ab70a6a updates 2022-08-23 13:32:56 -05:00