Commit 430c8ad
Crescendo hardfork transitioning (#633)
* deactivate tn11
* wip fork params
* wip fork params (2)
* we are not forking the timestamp deviation tolerance param
* min difficulty len can be defined only once
* forked param
* use only a single (crescendo) activation flag. fix tx related activation tests to calc storage mass correctly
* rename _len -> _size for consistency
* wip bps forking
* wip bps forking: filter non activated blocks from DAA window
* bps forking logic
* fix gated feature tests
* media time window should exclude non activated blocks as well
* unused
* ghostdag k forking logic
* coinbase reward forking logic
* parents and mergeset size limits forking logic
* merge depth and finality depth forking logic
* pruning point forking logic
* fix doc test
* various todos and leftovers
* mempool-related forking logic, more todos
* KIP-13 (part of crescendo) (#639)
* kip13
* inline tracking per mass unit
* various small fixes
* docs
* ghostdag: comments; extract var and reuse; handle origin edge case
* permanent -> persistent
* use bool -> option -> iter and remove code duplication
* coinbase misc
* header misc
* comments
* log the hardfork (initial)
* fix block depth origin case
* initial ascii art + human readable difficulty print
* countdown log
* utxo-related forking activation should be based on block daa score and not pov daa score
* todo
* handle edge cases related to trusted blocks being checked for activation
* Generalized KIP9--storage mass plurality (Crescendo) (#641)
* implement storage mass plurality
* move plurality calculation to mass module and add a useful trait for accessing it
* utxo cell
* consume outputs iterator only once, fix theoretic overflow
* add sanity check for plurality limits, align comments
* optimize input iterator consumption
* extended comment rewrite
* fix doc build
* inline the relaxed formula conditions
* test_storage_mass_pluralities
* Change expected pruning point to chain qualification check (Crescendo) (#642)
* change expected pruning point check from header validity to chain qualification
* adjust `pruning points valid chain` verification to the new rule change
* tx limits forking logic
* coinbase maturity forking logic
* finalize tx-related limit values
* delete todo
* post fork activation: log window sizes with frequency 100
* KIP-15 (#636)
* feat(consensus): implement kip-15
1. Accepted-ID-MR = Hash ( SP.Accepted-ID-MR, MR of Accepted-TXs )
* fix(consensus): after rebase ...
* fix: after review
* log activation of UTXO state processing rules
* comment
* Smooth transition of pruning points/samples (Crescendo) (#643)
* add a simpa activation test
* print
* wip (working w/o fork)
* wip
* working prototype (up to storage)
* inline
* print stats
* comments and asserts
* pruning samples database storage (todo: database upgrade; syncee import)
* fix tests
* syncee import
* database upgrade procedure
* minor
* logs
* database upgrade: populate past pruning points
* save to store during pruning points valid chain check
* next pruning points sanity checks
* reposition log call, add comments
* use headers store; more comments
* address most review comments
* adjust todo within daa_score timestamp estimate
* adjust todo for tx log aggregation
* next pruning points: keep the candidate valid also post v2 call
* add a test explicitly verifying the emission schedule (long; ignored)
* Add n-testnet-10.kaspa.ws DNS seeder (#644)
Co-authored-by: supertypo <suprtypo@pm.me>
* add assert
* use ghostdag data from ctx
* unrelated to crescendo: minor fix to `are_pruning_points_in_valid_chain` for the case where the syncer is sending a deep pruning point (e.g., a future archive)
* fix text of comments
* specialized info logs [CRND ]
* use a const for keyword
* set TN10 activation date and bump version to 0.17.0
* fix and extend subsidy tests
---------
Co-authored-by: Ro Ma <roman@igralabs.com>
Co-authored-by: supertypo <mthoring@gmail.com>
Co-authored-by: supertypo <suprtypo@pm.me>1 parent ea0b251 commit 430c8ad
File tree
91 files changed
+3442
-1417
lines changed- components/consensusmanager/src
- consensus
- client/src
- core/src
- api
- config
- errors
- hashing
- mass
- src
- consensus
- model/stores
- pipeline
- body_processor
- header_processor
- pruning_processor
- virtual_processor
- processes
- ghostdag
- pruning_proof
- sync
- transaction_validator
- core
- src/log
- crypto/merkle/src
- database/src
- kaspad/src
- mining
- errors/src
- src
- mempool
- model
- frontier
- testutils
- protocol/flows/src
- v5
- blockrelay
- ibd
- v6
- rothschild/src
- rpc
- grpc/server/src
- service/src
- converter
- simpa/src
- simulator
- testing/integration/src
- wallet/core/src
- tx
- generator
- utxo
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
91 files changed
+3442
-1417
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
| 195 | + | |
195 | 196 | | |
196 | | - | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
| 200 | + | |
200 | 201 | | |
201 | | - | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
445 | | - | |
446 | | - | |
| 446 | + | |
| 447 | + | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
357 | | - | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 96 | | |
102 | 97 | | |
103 | 98 | | |
104 | 99 | | |
105 | | - | |
| 100 | + | |
106 | 101 | | |
107 | | - | |
| 102 | + | |
108 | 103 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 104 | + | |
115 | 105 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
119 | 111 | | |
120 | 112 | | |
121 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
| 27 | + | |
32 | 28 | | |
33 | 29 | | |
34 | | - | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
39 | | - | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
| |||
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
59 | | - | |
60 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | | - | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
85 | 82 | | |
86 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
0 commit comments