Commit Graph

1385 Commits

Author SHA1 Message Date
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
Gregory Coppola
c6ecb9e677 removed some warn's 2021-11-01 13:54:49 -05:00
Gregory Coppola
444ab05d2e moved the test 2021-11-01 13:37:55 -05:00
Gregory Coppola
78fabac6ad remove map 2021-10-30 12:32:48 -05:00
Gregory Coppola
7243d27564 tests/itnegrations is passing 2021-10-29 16:57:14 -05:00
Gregory Coppola
d06fdfa662 cleaned up the test 2021-10-29 12:58:24 -05:00
Gregory Coppola
65f8891fd5 test is passing! 2021-10-29 12:50:04 -05:00
Gregory Coppola
41640a088c test_cost_limit_switch_version205 is failing (which it should) 2021-10-29 10:57:50 -05:00
Gregory Coppola
797f3a0cb3 removed onemore dns 2021-10-29 09:34:14 -05:00
Gregory Coppola
fd5755771f removed two easy dns 2021-10-29 09:30:07 -05:00
Gregory Coppola
3937baab9d moved block limit out of proporitional dot product 2021-10-29 08:57:13 -05:00
Gregory Coppola
8f9a839388 only the cost estimator cases left 2021-10-29 07:13:23 -05:00
Jude Nelson
0ae09f880b fix: windows-specific call to libc::write, because windows inexplicably uses a different ABI for write(2) 2021-10-26 23:46:28 -04:00
Aaron Blankstein
aedc2a2393 chore: move the block commit test to epoch_205 test module, use config to set a lower epoch transition height 2021-10-26 15:13:22 -05:00
Aaron Blankstein
12c4d79270 Merge remote-tracking branch 'origin/next-costs' into feat/2864-dynamic-db-costs 2021-10-26 15:07:49 -05:00
Jude Nelson
34f2cbfe76 fix: use proper libc types 2021-10-26 15:02:08 -04:00
Aaron Blankstein
283a8b79b4 test: e2e test for dynamic costs across epoch, test both epochs in all vm execute tests 2021-10-26 13:08:57 -05:00
Jude Nelson
0a46823d07 fix: crash and burn on SIGBUS, and use async-safe (but rust unsafe) libc methods for recording that a signal has been caught. 2021-10-26 13:57:00 -04:00
Aaron Blankstein
cb988b792b make epoch vector configurable 2021-10-26 09:54:37 -05:00
Jude Nelson
9943a4b4cc fix: don't panic if we set a signal handler multiple times when testing -- this is an inevitable consequence of having multiple runloops 2021-10-25 23:39:28 -04:00
Jude Nelson
4ef95f96a9 refactor: use deps/ctrlc now 2021-10-25 22:20:20 -04:00