Commit Graph

19213 Commits

Author SHA1 Message Date
Aaron Blankstein
d4a8d3e7f4 feat: use to_b58() and from_b58() for human readable peg_wallet_address field 2023-01-19 16:43:15 -06:00
Aaron Blankstein
3dd41c7357 chore: lower case function names 2023-01-19 14:40:28 -06:00
Aaron Blankstein
22a7263efd Merge: fix merge artifacts from git auto-merge 2023-01-19 13:04:36 -06:00
Aaron Blankstein
5fc96c1a77 Merge remote-tracking branch 'origin/3481-sbtc-peg-in-wire-formats' into feat/sbtc-burn-ops-rpc 2023-01-19 13:03:34 -06:00
Aaron Blankstein
e74416625d test: add RPC call to PegIn integration test, document new RPC endpoint 2023-01-19 11:01:55 -06:00
Aaron Blankstein
4d58a52762 feat: add GET /v2/burn_ops/ 2023-01-19 08:08:28 -06:00
Mårten Blankfors
2d6dfe4de1 fix: Typo 2023-01-19 15:00:59 +01:00
Mårten Blankfors
16268d7115 test: Peg-in test in chainstate::coordinator::tests 2023-01-19 14:21:02 +01:00
Mårten Blankfors
91b1bf4de7 feat: Support contract principal for peg-in recipient 2023-01-18 18:14:17 +01:00
Mårten Blankfors
21df54752b refactor: Rename "address" to "recipient" in peg-in operation + SQL comment in sortdb 2023-01-18 14:11:51 +01:00
Mårten Blankfors
51d662777a feat: Peg-in wire format 2023-01-17 11:06:51 +01:00
Jude Nelson
e21347232f Merge pull request #3446 from stacks-network/feat/check-pox-2-params
Complete testing and bugfixes for PoX reorg handling
2023-01-04 22:17:29 +00:00
Jude Nelson
6f61982df9 fix: better debugging output 2023-01-04 15:12:28 -05:00
Jude Nelson
ade55b4540 fix: don't require IBD to process leader key registers anymore 2023-01-04 15:12:05 -05:00
Jude Nelson
f86cccbdaa fix: debug output 2023-01-04 15:11:47 -05:00
Jude Nelson
07c1636dfb fix: clear announcement flags on consumtion, and debug spinlock waits 2023-01-04 12:12:07 -05:00
Jude Nelson
aa66dedae8 fix: combine coordinator block announcements into a bitvector so we can handle both announcements of new burn and stacks blocks in one coordinator pass (which is required for handling the case where we need to rewind sortitions, process stacks blocks, and then replay sortitions) 2023-01-04 10:34:58 -05:00
Jude Nelson
371b226cd3 fix: first target block height might be lower than 1 reward cycle 2023-01-03 23:27:42 -05:00
Jude Nelson
de8e211a6d Merge branch 'feat/check-pox-2-params' of https://github.com/stacks-network/stacks-blockchain into feat/check-pox-2-params 2023-01-03 17:14:10 -05:00
Jude Nelson
02573b228a fix: make sure we download _only_ one reward cycle at a time when booting up 2023-01-03 17:13:40 -05:00
Jude Nelson
cfe093d6ce fix: don't wait for sortitions that can't come 2023-01-03 17:09:21 -05:00
Jude Nelson
27ea828183 fix: hint for stacks block processing while waiting for sortiitons, in case we're waiting for many sortitions 2023-01-03 15:30:06 -05:00
Jude Nelson
5300d5cdfb Merge pull request #3462 from stacks-network/test/long-contract-name
test: add test passing long contract name
2023-01-03 01:59:06 +00:00
Jude Nelson
e57e8ac2b5 fix: now that we drive burnchain processing, be more permissive for follower stacks nodes that get ahead 2023-01-02 18:23:14 -05:00
Jude Nelson
55f127786f fix: drive burnchain processing while waiting for sortitions 2023-01-02 18:23:00 -05:00
Brice Dobry
57ae8c3096 test: add test passing long contract name
This test verifies that the existing behavior where a contract name that
is longer than 40 characters, but less than 128 characters, can
successfully be passed to a contract call.

See: #3133
2023-01-02 17:20:13 -05:00
Jude Nelson
c78fe27ace fix: disable affirmation maps on pre-2.1 integration tests that fail due to timeouts 2023-01-02 15:52:48 -05:00
Jude Nelson
6b06d8653a fix: on devnet, use the sortition tip to generate VRF and microblock private key data (not the last-sortitioned block) 2023-01-02 15:52:27 -05:00
Jude Nelson
126f837366 fix: backport #3457 to fix failing integration test due to off-by-one error 2023-01-02 13:48:20 -05:00
Jude Nelson
1086ee9d4b fix: fix failing PoX integration test by ensuring that affirmation maps are disabled prior to 2.1 2023-01-02 12:52:32 -05:00
Jude Nelson
732f5e8166 feat: always use affirmation maps by default 2023-01-02 12:52:21 -05:00
Jude Nelson
4d65ade440 fix: bump stacks block version 2023-01-02 12:52:10 -05:00
Jude Nelson
62695c5350 fix: epoch-gate affirmation map reorg, but turn it on if the node is configured to use it before 2.1 2023-01-02 12:51:48 -05:00
Jude Nelson
1bdb0ef3e2 fix: add some more indexes on block_commit_metadata to improve performance 2023-01-02 12:51:05 -05:00
Jude Nelson
18ac9c2606 Merge branch 'feat/check-pox-2-params' of https://github.com/stacks-network/stacks-blockchain into feat/check-pox-2-params 2022-12-31 03:17:57 +00:00
Jude Nelson
1bf2b2130b fix: if the sortition and canonical AMs are the same length, and the
sortition AM doesn't conflict with the heaviest AM but it does with the
canonical AM, then it means that there is a downloaded but not processed
anchor block and we need to unwind the sortition history back to that
point.
2022-12-31 03:16:53 +00:00
Jude Nelson
59c9c3a30d fix: start chain-liveness thread before waiting for sortitions 2022-12-31 03:16:38 +00:00
Jude Nelson
6ab2a13610 fix: start chain-liveness thread before waiting for sortitions 2022-12-29 12:30:04 -05:00
Jude Nelson
270c5e04dd fix: fix order of debug output args 2022-12-28 21:33:37 -05:00
Jude Nelson
9b8c1668c1 feat: decode_microblocks subcommand to blockstack-cli 2022-12-28 21:33:23 -05:00
Jude Nelson
b1635b81f8 fix: a contract name can decode with up to 128 characters in the name part 2022-12-28 21:32:30 -05:00
Jude Nelson
721811d83d fix: burnchain sync in reward cycle intervals only 2022-12-26 23:15:49 -05:00
Jude Nelson
d92786ef90 fix: only wait for sortitions if we are given a target height, and don't wait for more than the highest sortition height's height (avoids a livelock) 2022-12-26 23:15:02 -05:00
Jude Nelson
8faaef9c55 chore: log start/end sync heights 2022-12-26 23:14:44 -05:00
Jude Nelson
d48717f822 fix: consider canonical stacks tips with 0 affirmation weight 2022-12-23 15:52:41 -05:00
Jude Nelson
6a0e8edf57 chore: cargo fmt 2022-12-23 15:22:21 -05:00
Jude Nelson
1a1556c196 chore: new default testnet start height and block, and also, pick a v1 unlock height default that won't panic 2022-12-23 15:21:31 -05:00
Jude Nelson
5fb047efda fix: make Txid serialize to text, and make the chain-liveness thread sleep for 1 second in-between wake-ups 2022-12-23 15:03:04 -05:00
Jude Nelson
2c7917e6d5 fix: order fork quality by height then weight, and minimum max arrival index is now 1 2022-12-22 17:41:31 -05:00
Jude Nelson
1719a1f2a8 fix: max arrival index is 1 if there are none (so sortition invalidations don't trigger a panic) 2022-12-22 13:57:02 -05:00