1831 Commits

Author SHA1 Message Date
Greg Coppola
0626bef188 add epochs 2021-11-30 15:55:08 +00:00
Greg Coppola
9be3e8c992 use clarityversion in tests 2021-11-30 15:48:50 +00:00
Greg Coppola
3b9b6b82b7 moved epochs 2021-11-30 15:45:44 +00:00
Greg Coppola
6836bb2998 no sortdb 2021-11-30 15:41:22 +00:00
Greg Coppola
a278916663 don't add block limit 2021-11-30 15:36:07 +00:00
Greg Coppola
e4333cc3a6 Merge remote-tracking branch 'origin/next-costs' into merge/nc 2021-11-29 09:29:50 -05:00
Jude Nelson
05f0cd3e8a fix: compare epoch resource consumption in the confirmed microblock streams in epochs 2.0 and 2.05, and moreover, make the test robust by continuously trying to confirm a microblock stream in epoch 2.05 until we have one 2021-11-24 20:34:30 -05:00
Jude Nelson
907889705d fix: get bigger-microblocks-in-2.05 test runtime down to about 10 minutes, so it won't time out in CI 2021-11-23 03:18:07 -05:00
Jude Nelson
02a4ecf1a2 fix: document wait_for_microblocks() 2021-11-23 03:17:51 -05:00
Jude Nelson
9a386b4372 fix: clear the microblock count when the microblock epoch gets reset 2021-11-23 03:17:23 -05:00
Jude Nelson
4e940b0bbb feat: fix #2912 by adding an integration test to verify that the system can mine a lot of large transactions after the 2.05 transition, whereas it could not before 2021-11-22 15:26:52 -05:00
Jude Nelson
16d5ac9482 refactor: make wait_for_microblocks() public 2021-11-22 15:26:15 -05:00
Jude Nelson
677c6ccd36 fix: use indexer's get_stacks_epochs() 2021-11-18 17:20:47 -05:00
Jude Nelson
5b2384bfd1 feat: check the chainstate database versions (if they exist), and abort the node if the versions are incompatible with the current epoch 2021-11-17 14:53:04 -05:00
Jude Nelson
ee153345bc feat: require a burnchain controller to be able to determine the sequence of stacks epochs it supports 2021-11-17 14:52:25 -05:00
Jude Nelson
2a432916b8 feat: add get_stacks_epochs trait implementation 2021-11-17 14:52:09 -05:00
Jude Nelson
02cd864dae feat: add get_stacks_epochs() trait implementation 2021-11-17 14:51:51 -05:00
Aaron Blankstein
97285d4bc4 fix: move connect_dbs to *after* initial burnchain sync 2021-11-17 08:52:57 -06:00
pavitthrap
946c8da5ab Merge branch 'develop' into fix/rpc-tip 2021-11-17 14:45:55 +05:30
Aaron Blankstein
f6743d4f2b fix: invoke connect early to avoid race-to-connect 2021-11-16 13:47:36 -06:00
Gregory Coppola
30fd6bb353 Stacks 2.05: Add Epoch to Cost Estimate Key (#2923)
* added bunch of things

* moving the stuff

* test compiles

* added a test

* fixed typo

* added two tests

* updated code/tests in stacks-node

* replaced indexed conn with unindexed one
2021-11-16 11:39:57 -05:00
Jude Nelson
783158f4c1 Merge branch 'next-costs' into fix/2911 2021-11-15 21:11:21 -05:00
Aaron Blankstein
3d6cb3cf07 chore: cargo fmt 2021-11-15 13:58:53 -06:00
Aaron Blankstein
8322db7b94 Merge branch 'next-costs' into chore/2889-testnet-2.05 2021-11-15 14:54:42 -05:00
Aaron Blankstein
879ebff3f0 test: fix some test flakiness in epoch_205::exact 2021-11-15 13:43:15 -06:00
Jude Nelson
a750638052 Merge pull request #2920 from blockstack/fix/2904
2.05: make it so a block whose anchored parent is in a different epoch cannot confirm a microblock stream
2021-11-15 17:23:38 +00:00
Gregory Coppola
57c711ce23 Stacks 2.05: Allow epochs to be specified in Toml for Testnet (#2910)
* added debug and serialize to the burnchainconfig

* can  supply epochs in toml, only use if not mainnet

* add enough Debug to print ConfigFile

* revert src/main

* reduced some comments

* info to debug

* changed a few comments

* removed the serialize's

* fixed the doc

* removed some Debug's

* panicking earlier
2021-11-15 09:47:02 -05:00
Jude Nelson
62d38bc150 fix: add epoch_205 test to verify that the new code that tracks which blocks contained epoch transitions works end-to-end 2021-11-12 18:55:32 -05:00
Jude Nelson
5abd20b9d0 chore: cargo fmt 2021-11-12 18:08:17 -05:00
Jude Nelson
85a1de4f03 Merge branch 'next-costs' into fix/2911 2021-11-12 17:07:41 -05:00
Jude Nelson
e4c34dd964 refactor: add network epoch to stacks epoch 2021-11-12 17:07:18 -05:00
Jude Nelson
7afc24e9da refactor: add network_epoch to stacks epoch 2021-11-12 17:07:05 -05:00
Jude Nelson
c62516497f refactor: pass along epochs to peer network 2021-11-12 17:06:47 -05:00
Jude Nelson
f72cacf504 refactor: pass epochs along to peer network 2021-11-12 17:06:36 -05:00
Jude Nelson
ca1f6fc492 refactor: add network_epoch to stacks epoch 2021-11-12 17:06:14 -05:00
Aaron Blankstein
342a498194 test: fix the assertion in runtime_overflow_unconfirmed_microblocks_integration_test to match new expected behavior 2021-11-11 08:41:59 -06:00
Aaron Blankstein
b1291dac21 docs: add reference for the event dispatcher changes 2021-11-10 10:40:30 -06:00
Aaron Blankstein
9ee9101520 fix: issue raised in #2913 2021-11-10 10:30:18 -06:00
Aaron Blankstein
f688e8c1a9 test: start of testing for #2913. adds a mined_block event to the dispatcher 2021-11-09 17:30:08 -06:00
Aaron Blankstein
fcc717d1d5 Merge branch 'develop' into next-costs 2021-11-09 14:42:05 -06:00
Aaron Blankstein
3409855795 fix unit test errors, remove panics from net paths, use /v2/info to get current burn height in integration test 2021-11-03 11:44:43 -05:00
Aaron Blankstein
58fecc872f fix: some spot fixes for obtaining epoch and block limit from clarity connection, adding evaluated epoch to block receipt 2021-11-03 11:11:22 -05:00
Aaron Blankstein
503612867c test: fix neon_integrations tests that explicitly require MAINNET block limit 2021-11-03 10:27:36 -05:00
Aaron Blankstein
fc6b1d521e fix: use HELIUM block limit in regtest epochs 2021-11-03 09:31:52 -05:00
Gregory Coppola
8856c4fedc tightened up waiting times to 2 blocks, and now assert we wait exaclty 2021-11-02 17:22:53 -05:00
Gregory Coppola
8e15d5e1cd should have removed all the bad hard-codes 2021-11-02 12:32:53 -05:00
Gregory Coppola
829d613c8f added a bunch of new references 2021-11-02 12:10:09 -05:00
Gregory Coppola
d553cf2809 remove some reopen style methods 2021-11-01 16:25:18 -05:00
Gregory Coppola
56c7c68dc5 addressed comments: lazy_static and removed some reviewer questions 2021-11-01 15:15:59 -05:00
Gregory Coppola
7b5dcae565 removed some logs 2021-11-01 13:55:44 -05:00