Commit Graph

15977 Commits

Author SHA1 Message Date
Aaron Blankstein
c694612ccd Merge pull request #2930 from blockstack/fix/existing-state
Fix: insert epochs on migration in SortitionDB::connect
next-costs-2
2021-11-16 12:49:43 -05:00
Aaron Blankstein
e50bf4362d Merge remote-tracking branch 'origin/next-costs' into fix/existing-state 2021-11-16 11:09:29 -06:00
Aaron Blankstein
0b10997caa Merge pull request #2924 from blockstack/feat/costs-2-clar-2894
Instantiate `costs-2.clar` with latest results from benchmarking
2021-11-16 12:08:12 -05:00
Aaron Blankstein
4fdde14f50 add comment to validate_and_insert_epochs 2021-11-16 10:59:45 -06:00
Aaron Blankstein
393757070a address PR feedback 2021-11-16 10:56:02 -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
Aaron Blankstein
cf8cef9d05 smooth similar runtimes to same value, bump cost_principal_of to hash160(32) 2021-11-16 10:17:14 -06:00
Aaron Blankstein
5f93f2c42e fix: insert epochs on migration in SortitionDB::connect, error in SortitionDB::open 2021-11-16 08:42:57 -06:00
Gregory Coppola
f38fe32a13 fix typo (#2929) 2021-11-16 09:11:16 -05:00
Jude Nelson
3fc0833e8f Merge pull request #2925 from blockstack/fix/2911
Stacks 2.05: make p2p network reject connections from 2.0 peers after the epoch switch
2021-11-16 06:05:00 +00:00
Jude Nelson
4b5cea104c fix: add back in network_epoch 2021-11-15 23:50:12 -05:00
Jude Nelson
ce6f6c48aa fix: include network_epoch 2021-11-15 21:30:07 -05:00
Jude Nelson
783158f4c1 Merge branch 'next-costs' into fix/2911 2021-11-15 21:11:21 -05:00
Aaron Blankstein
2103e9f96b test: add some comments for test changes 2021-11-15 17:03:12 -06:00
Aaron Blankstein
a1d967bdd9 Merge remote-tracking branch 'origin/next-costs' into feat/costs-2-clar-2894 2021-11-15 15:43:57 -06:00
Aaron Blankstein
fd7fe74974 Merge pull request #2928 from blockstack/chore/2889-testnet-2.05
chore: select 2.05 xenon testnet start height, dead code elimination
2021-11-15 16:42:51 -05:00
Aaron Blankstein
01b1269fae fix: attempt #2 on testnet block height - 2104380 2021-11-15 14:55:35 -06:00
Aaron Blankstein
3d6cb3cf07 chore: cargo fmt 2021-11-15 13:58:53 -06:00
Aaron Blankstein
4972224e49 test: add assertion that the epoch switch is applied 2021-11-15 13:56:55 -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
Aaron Blankstein
4d2baa46fa chore: #2878 set 2.05 mainnet burn height 2021-11-15 12:54:52 -06:00
Aaron Blankstein
83191657ff fix: 2.0/1.0 epoch heights in testnet 2021-11-15 11:45:28 -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
next-costs-1
2021-11-15 17:23:38 +00:00
Aaron Blankstein
5117aaa113 chore: select 2.05 xenon testnet start height, dead code elimination 2021-11-15 11:19:28 -06:00
Aaron Blankstein
67f16bcbdc chore: split testnet and mainnet costs 2021-11-15 10:34:10 -06:00
Aaron Blankstein
0b3dd8ef53 Merge remote-tracking branch 'origin/next-costs' into feat/costs-2-clar-2894 2021-11-15 10:19:31 -06: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
Aaron Blankstein
af2922d1fb feat: match nft transfer/burn/mint/get-owner 2021-11-13 10:09:28 -06:00
Aaron Blankstein
f59de660f3 feat: update costs-2, fixing the matching between various paired methods 2021-11-13 09:53:37 -06: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
d8d25b8698 fix: log the right hashes 2021-11-12 18:55:19 -05:00
Jude Nelson
5abd20b9d0 chore: cargo fmt 2021-11-12 18:08:17 -05:00
Jude Nelson
307d62fb65 feat: e2e test to verify that nodes in different epochs can't talk to each other 2021-11-12 18:07:46 -05:00
Jude Nelson
610583a820 chore: test-debug output for rejecting peers based on their peer_version epoch 2021-11-12 18:07:22 -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
Jude Nelson
ef94f078ac refactor: add network_epoch to stacks epoch 2021-11-12 16:59:49 -05:00
Jude Nelson
d42b730025 refactor: add network_epoch to stacks epoch 2021-11-12 16:59:36 -05:00
Jude Nelson
25ce9585ce refactor: add network_epoch to stacks epoch 2021-11-12 16:59:24 -05:00
Jude Nelson
d2404a59e2 refactor: pass along epochs to peer network 2021-11-12 16:58:55 -05:00
Jude Nelson
7d54d294fd refactor: pass along epochs 2021-11-12 16:58:42 -05:00
Jude Nelson
b37c52a771 feat: require a preamble's peer_version's epoch marker to be at least as high as the local node's epoch marker, or if it isn't, require that it is at least as high as the current epoch's epoch marker 2021-11-12 16:57:43 -05:00
Jude Nelson
0f84eb7515 feat: require the last byte of peer_version to indicate the epoch of the node (0x05 now) 2021-11-12 16:55:12 -05:00
Jude Nelson
86cdde80fe chore: use network epoch in stacks epoch 2021-11-12 15:06:15 -05:00
Jude Nelson
541b49e06c chore: use network epoch in stacks epoch 2021-11-12 15:06:00 -05:00