Commit Graph

23035 Commits

Author SHA1 Message Date
Brice Dobry
7763df2782 fix: set clarity version when building boot contracts' docs 2024-05-05 20:05:12 -04:00
Brice Dobry
2a63b46290 fix: test_load_store_update_nakamoto_blocks update 2024-05-04 15:01:14 -04:00
Brice Dobry
f8ca7f0c50 chore: update supports_epoch 2024-05-04 13:41:44 -04:00
Brice Dobry
6953194de6 fix: update tests for Clarity 3 2024-05-04 11:23:55 -04:00
Brice Dobry
a251637c4d feat: add tenure_height to nakamoto_block_headers table 2024-05-04 09:19:11 -04:00
Brice Dobry
4b1895a35c fix: update CHAINSTATE_VERSION 2024-05-04 00:35:19 -04:00
Brice Dobry
3eeabe9123 docs: fix changelog entry 2024-05-03 23:39:22 -04:00
Brice Dobry
a51579a1b2 Merge branch 'develop' into feat/stacks-block-height 2024-05-03 23:28:03 -04:00
Brice Dobry
9f523d6811 fix: update tests to handle Clarity 3 2024-05-03 23:26:24 -04:00
Brice Dobry
c339fe0efb docs: add changelog entry 2024-05-03 22:55:59 -04:00
Brice Dobry
27ef917050 test: add tests for block height keywords 2024-05-03 22:52:44 -04:00
Brice Dobry
23e704a94d fix: fix tests after recent changes 2024-05-03 21:30:15 -04:00
Brice Dobry
02ec34a761 feat: better way to store/retrieve tenure height 2024-05-03 16:43:40 -04:00
Brice Dobry
18860131c7 Merge pull request #4743 from ASuciuX/feat/mock-mining-hot-swap
Feat/mock mining hot swap
2024-05-03 17:09:18 +00:00
Brice Dobry
54ae12566a Merge pull request #4738 from stacks-network/fix/signer-cycle-transition
fix: handle a race condition between the signer and the /v2/pox endpoint
2024-05-03 17:08:21 +00:00
Brice Dobry
a9c14f9b01 Merge pull request #4698 from stacks-network/test/pox-4-unit
PoX-4 unit testing
2024-05-03 15:58:17 +00:00
Brice Dobry
9bce63865b fix: revert changes in contrib/core-contract-tests/
The removal of package-lock.json causes `npm ci` to fail and it should
not be removed by this PR any way.
2024-05-03 11:21:39 -04:00
Aaron Blankstein
ac2bd50486 Merge pull request #4739 from stacks-network/chore/changelog
Changelog
2024-05-03 15:10:14 +00:00
Brice Dobry
134afd3696 feat: add tenure height to block_headers table
Handle the `tenure-height` keyword in Clarity3, and using the same logic
for `block-height` in Clarity 1 or 2.
2024-05-02 23:23:19 -04:00
ASuciuX
ea9c8c8d03 Update testnet/stacks-node/src/burnchains/bitcoin_regtest_controller.rs
Co-authored-by: Brice Dobry <brice@obycode.com>
2024-05-02 19:41:39 +03:00
ASuciuX
4245554ae0 hot swappable mock_mining
redid it on top of develop
2024-05-02 15:24:21 +03:00
Brice Dobry
32111d20ab feat: add Clarity3 consensus serialize/deserialize 2024-05-01 22:35:50 -04:00
Brice Dobry
430d9873d9 fix: only retry the /v2/pox endpoint if it returns an older cycle
It's okay if it returns a higher cycle than expected.
2024-05-01 16:36:07 -04:00
Brice Dobry
2082113a9b chore: add more info to error message 2024-05-01 16:13:48 -04:00
Brice Dobry
3e52aa0a85 fix: correct is_in_next_prepare_phase 2024-05-01 13:10:11 -04:00
Brice Dobry
40b1603b1f fix: build transient error correctly 2024-05-01 11:09:12 -04:00
Brice Dobry
f82279d286 chore: add changelog message for #4697
Downgraded log messages about transactions from warning to info.
2024-05-01 10:23:46 -04:00
Brice Dobry
af235d0bb7 fix: only attempt to refresh the signer during the next prepare phase
This handles the case where for the first block in a cycle (height %
cycle_length == 0), it will report that it is in cycle N, but it will
also report that it is in the prepare phase. This was resulting in
refreshing the signer config too early. For example, with a cycle length
of 20, at block 160, we would see a log:

```
Received a new burnchain block height (160) in the prepare phase of the
next reward cycle (9). Checking for signer registration...
```

This is incorrect, because block 160 is not in the prepare phase for
cycle 9.
2024-05-01 10:07:52 -04:00
Brice Dobry
b41019722e fix: handle a race condition between the signer and the /v2/pox endpoint
When the signer is processing a new burn block, it may hit the /v2/pox
endpoint before it has been updated with the latest block. This change
will check for this case and retry until it receives the expected cycle.
2024-05-01 10:01:42 -04:00
Brice Dobry
5a91bdc13b feat: block-height -> stacks-block-height
`block-height` can no longer be used in Clarity 3 and above and will
cause an analysis error. In its place is `stacks-block-height`.
2024-04-30 14:42:47 -04:00
Nikos Baxevanis
10d954c104 Merge pull request #4725 from stacks-network/feat/pox-4-stateful-solo-scenarios
Solo Stacking stateful property-based tests
2024-04-30 16:14:02 +00:00
Friedger
dd9f8596e3 Merge branch 'develop' into feat/pox-4-stateful-solo-scenarios 2024-04-30 15:13:16 +02:00
Hank Stoever
08e04d9fd9 Merge pull request #4728 from stacks-network/fix/agg-increase-event
fix: add signer-key to synthetic `stack-aggregation-increase` event
2024-04-30 00:00:19 +00:00
Hank Stoever
837f4a4813 Merge branch 'develop' into fix/agg-increase-event 2024-04-29 14:26:41 -07:00
Nikos Baxevanis
482c195b0d refactor(pox-4-tests): Move PoX-4 stateful property-based tests
- Relocate PoX-4 stateful property-based tests from
  ../core-contract-tests/tests/pox-4/ to
  boot-contracts-stateful-prop-tests/tests/pox-4.
- Implement a minimalistic vitest and Clarinet project setup.
- Adjust configurations for optimal test isolation.
- Ensure Clarinet config is as minimalistic as possible.
- For more details, see: https://github.com/stacks-network/stacks-core/pull/4725#issuecomment-2082701083
2024-04-29 18:31:11 +02:00
Hank Stoever
cbd2037089 fix: add signer-key to synthetic stack-aggregation-increase event 2024-04-29 08:40:44 -07:00
Brice Dobry
41e57efb1d Merge pull request #4723 from stacks-network/chore/master-to-develop
Merge master to develop
2024-04-29 15:24:51 +00:00
Hugo Caillard
be1afc8c0a refactor: remove changes from core-contract-test package.json 2024-04-29 15:39:47 +02:00
Hugo Caillard
0067106ff1 chore ugprade clarinet-sdk to v2.6.0 2024-04-29 15:38:09 +02:00
obycode
4e9e47fd66 Merge branch 'master' into develop 2024-04-26 17:16:42 -04:00
jferrant
927e824f64 Merge pull request #4658 from stacks-network/feat/signers-read-stackerdb
Feat/signers read stackerdb
2024-04-26 16:32:08 +00:00
BowTiedRadone
aaaca7781a Update numRuns and verbose for CI 2024-04-26 18:01:03 +03:00
BowTiedRadone
d72629e78a Add StackIncreaseSigCommand 2024-04-26 14:53:16 +03:00
BowTiedRadone
4aa7732766 Fix StackExtendCommands period calculation inside check 2024-04-26 14:49:26 +03:00
BowTiedRadone
609b8d7fcf Log period after successful stack-stx calls 2024-04-26 14:48:39 +03:00
BowTiedRadone
a3aaeb6e38 Update StackIncreaseAuth to issue authorization using correct period 2024-04-26 14:45:34 +03:00
wileyj
9775102297 Merge pull request #4668 from stacks-network/release/2.5.0.0.0
Release PR: 2.5.0.0.0
2024-04-25 14:39:59 -07:00
Brice Dobry
878e17d3de Merge branch 'develop' into test/pox-4-unit 2024-04-25 17:07:53 -04:00
Brice Dobry
90a6e74fa0 test: add unit tests for get-partial-stacked-by-cycle 2024-04-25 16:58:38 -04:00
Brice Dobry
abe0a0ad79 Merge pull request #4715 from stacks-network/chore/master-to-2.5.0.0.0
Merge master into release/2.5.0.0.0
2024-04-25 16:50:13 -04:00