1427 Commits

Author SHA1 Message Date
Jude Nelson
2f256c8dcc chore: plumb through config.node.always_use_affirmation_maps to ChainsCoordinator::run() 2022-07-26 14:19:36 -04:00
Jude Nelson
41602b3f0a feat: add [node].always_use_affirmation_maps (default false) 2022-07-26 14:19:21 -04:00
Jude Nelson
5f633af111 Merge branch 'next' into fix/1805 2022-07-22 14:00:42 -04:00
Jude Nelson
4e0f149edf Merge branch 'next' into feat/parser-v2 2022-07-11 15:56:42 +00:00
Jude Nelson
e8c85f817a chore: test coverage for both paying to contracts and standard principals 2022-06-28 14:01:02 -04:00
Jude Nelson
00838aa7d3 chore: support both standard and contract principals when building coinbases 2022-06-28 14:00:46 -04:00
Jude Nelson
608eabff8d chore: it's now [miner].block_reward_recipient 2022-06-28 14:00:30 -04:00
Brice Dobry
9a69f6e0c6 feat: add new parser with fixes and improvements
Use of the new parser is gated on epoch 2.1 and the old parser is used
prior to then.

Resolves: #3124, #3123, #3128
2022-06-13 12:44:40 -04:00
Jude Nelson
90a9f68b99 Merge branch 'next' into feat/coinbase-pay-to-contract 2022-06-07 22:00:35 -04:00
Jude Nelson
3c9a5bd8e6 feat: add integration test to verify that the miner will build pay-to-contract blocks after epoch 2.1 starts, if configured to do so 2022-06-07 21:52:22 -04:00
Jude Nelson
f404a13822 chore: use new coinbase variant 2022-06-07 21:52:04 -04:00
Jude Nelson
fc41895ff0 chore: use new coinbase variant 2022-06-07 21:51:52 -04:00
Jude Nelson
50dc6aef8c chore: use new coinbase variant 2022-06-07 21:51:42 -04:00
Jude Nelson
aea2412017 feat: generate a pay-to-contract coinbase if a contract address is in the config file, and the current epoch is 2.1 2022-06-07 21:51:14 -04:00
Jude Nelson
ab05aa6c04 feat: add pay_to_contract field under [miner] to make the miner pay to a particular smart contract 2022-06-07 21:50:37 -04:00
Jude Nelson
114f64f85a Merge branch 'next' into feat/btc-stx-exchange-rate 2022-06-07 11:14:43 -04:00
Jude Nelson
cbd03eae05 fix: now that the miner maturity window lives in stacks-common, we need to expect it to apply in integration tests (i.e. miners' rewards mature earlier) 2022-05-20 15:36:50 -04:00
Jude Nelson
4ee0f6c60c chore: better comments about what's happening with the new burnchain consideration window in our tests 2022-05-11 21:16:46 -04:00
Jude Nelson
065f5cf64e fix: merge artifact: PoxConstants has a new constructor 2022-05-10 11:46:08 -04:00
Jude Nelson
ea4deb52e6 Merge branch 'next' into feat/bitcoin-wire-format-rigidity 2022-05-10 02:41:20 +00:00
Jude Nelson
e7f3c5557b Merge branch 'next' into chore/merge-2.05.0.2.0-to-next 2022-05-09 18:58:34 +00:00
Jude Nelson
5cb33c4149 fix: bye-bye PoX sunset! 2022-05-05 16:42:18 -04:00
Jude Nelson
102e1f366c chore: expose get_balance() 2022-05-05 12:59:16 -04:00
Jude Nelson
d4fcc0b3c2 chore: add an integration test to verify that on-burnchain operations can be mined and processed in Stacks blocks even if the burnchain block that contains them does not have a sortition with a stacks block 2022-05-05 12:58:48 -04:00
Jude Nelson
dd4929b980 Merge branch 'master' into chore/merge-2.05.0.2.0-to-next 2022-05-05 09:52:41 -04:00
Jude Nelson
18e4e753fc Merge branch 'next' into fix/1805 2022-04-29 09:51:19 -04:00
Aaron Blankstein
3f3ff1280c fix: duplicate event broadcasts in mocknet node 2022-04-28 15:14:37 -05:00
Jude Nelson
4538fc1555 Merge branch 'next' into feat/height 2022-04-28 14:37:29 -04:00
Jude Nelson
2747901560 Merge branch 'next' into feat/chain-id 2022-04-27 17:55:36 +00:00
Jude Nelson
433d54691c feat: add integration test for get-burn-block-info? 2022-04-27 13:36:54 -04:00
Jude Nelson
4c8204d393 Merge branch 'develop' into feat/chain-id 2022-04-27 12:30:00 -04:00
Jude Nelson
1d72179670 Merge branch 'fix/utxo-chaining' into feat/height 2022-04-26 20:51:25 -04:00
Jude Nelson
e9f7949eba fix: typo and wrong non-test return value for fault injection 2022-04-26 14:46:27 -04:00
Jude Nelson
a02a9842ba refactor: put transaction delay fault injection into its own function, and log operation signer disposal 2022-04-26 14:21:52 -04:00
Jude Nelson
a244fbc534 Merge branch 'chore/merge-develop-to-next' into feat/height. In addition, factor the BurnStateDB interface to return only the sortition ID given a consensus hash, since it's intractible to move BlockSnapshot into stacks_common 2022-04-25 15:38:27 -04:00
Jude Nelson
8f472cf8c1 fix: if the chainstate DBs exist already, then they must be migrated to the latest schema before header sync 2022-04-22 11:38:14 -04:00
Jude Nelson
889bc9bd6c fix: update the public key of an always-allowed peer on boot-up, as well as the allowed column 2022-04-22 11:37:03 -04:00
Jude Nelson
69920aa80b chore: add #[cfg(not(test))] no-op implementations of some functions that must be present to build for production 2022-04-21 15:27:28 -04:00
Jude Nelson
a8149684eb feat: add integration test to verify (a) that epoch 2.1 transitions, and (b) that UTXO chaining is fixed in epoch 2.1 even though there are missed block-commits 2022-04-21 14:53:32 -04:00
Jude Nelson
f2ebed7b8f chore: remove some warnings and expose get_contract_src() to the module for testing 2022-04-21 14:50:58 -04:00
Jude Nelson
f0aa5e7863 chore: mvoe some common test methods to mod.rs 2022-04-21 14:50:30 -04:00
Jude Nelson
96048fb83e chore: move some common test methods to mod.rs 2022-04-21 14:50:06 -04:00
Jude Nelson
a4a1244876 feat: add fault injection for forcing a block-commit to be late. To use it, set the STX_TEST_LATE_BLOCK_COMMIT environ to the height at which a block-commit should be bumped by one Bitcoin block. When one Bitcoin block has passed, broadcast it late. Note that RBF must be disabled to do this, so we can query 0-conf UTXOs in order to send concurrent block-commits that are not late. 2022-04-21 14:48:30 -04:00
Jude Nelson
8c15ede341 refactor: separate tx construction from broadcast, and add a test-only flag for enabling/disabling RBF. If RBF is disabled, then query "unsafe" UTXOs (i.e. those with 0 confirmations) so we can have the test miner send multiple txs per block 2022-04-21 14:47:05 -04:00
Jude Nelson
95b955345d chore: when building integration tests, activate testing features in stacks, clarity, and stacks_common 2022-04-21 14:46:20 -04:00
Jude Nelson
21cf7a8024 Merge branch 'chore/merge-develop-to-next' into fix/1805 2022-04-19 19:09:41 -04:00
Jude Nelson
f25a54284e Merge branch 'develop' into chore/merge-develop-to-next 2022-04-19 19:09:00 -04:00
Jude Nelson
dd58e24691 Merge branch 'chore/merge-develop-to-next' into fix/1805 2022-04-19 13:37:48 -04:00
Jude Nelson
f40729945e fix: set the default subsequent-attempt time to 30s, based on new benchmarks from the MARF performance improvements 2022-04-18 13:49:10 -04:00
Jude Nelson
ab5b76e326 Merge branch 'develop' into chore/merge-develop-to-next 2022-04-14 14:18:26 -04:00