Commit 1951cc5
authored
Mining stopped because of endorsement and other fixes (#4031)
* Can't append a microblock after a microblock with conflict endorsement
* New test: first microblock is invalid, next is valid and accepted
* New test: more than max endorsements
* New test: reject a second conflict endorsement
* OneNodeFinalizationTestSuite stabilization
* max-endorsements renamed to max-valid-endorsers
* Finalization height must be positive
* Max valid endorsers limit durign mining
* Additional tests
* Fixed warning
* New tests
* Updated tests
* Cleanup: Blockchain.isMiningAllowed contains checks commitments, removed isCommitted
* New test: not enough balance for finalization because of conflicting vote
* Cleanup: simpler finalization calculation, new tests
* Fixed invalid total block signature when reached, lost and reached again finalization
* Fix
* New test
* Additional BLS tests
* New BLS private key generation
* Additional BLS tests
* Debug logs
* Debug logs (2)
* Cleanup
* New keyblock triggers finalization calculations
* Fixing tests
* Fixed wrong finalization height in sending endorsement, fixed tests
* Docker tests fixes
* Updated tests
* finalizedBlockAt: 404 instead of null
* Cleanup
* Better logs
* New test and logs
* Fixed compilation issue, added compilePR sbt task to check compilation warnings
* Routes fixes
* Rescheduling miner after microblock, fixed bug with wrong balance during appending
* GeneratorBalances renamed to GeneratorSet
* min-micro-block-age: setting applied only on local node
* minimal-block-generation-offset based on previous block timestamp
* Challenging by a generator not from generator set
* Anyone can challenge a bock
* ChallengingAfterFinalizationSuite: the finalization header is empty in a challenging block
* Fixed not starting mining because of minimal-block-generation-offset
* Mining error without a stack trace
* Don't broadcast an endorsement if not enough generating balance
* Fixed no ports Docker issue after restart
* Do not accept endorsements from poor endorsers
* - Fixed sorting of endorsements
- Additional filter (not required, but nice to have)
* Fixed limit of max valid endorsements
* Remove sbt-docker, build via external process
* TwoNodesFinalizationTestSuite stabilization
* TwoNodesFinalizationTestSuite stabilization (2)
* Stabilization of tests relying on minimal-block-generation-offset
* Temporarily disabled Qase (preventing jobs)
* Right finalization height in endorsements1 parent e36304d commit 1951cc5
File tree
93 files changed
+2843
-1035
lines changed- .github/workflows
- benchmark/src/test/scala/com/wavesplatform
- state
- node-it
- src/test/scala/com/wavesplatform
- it
- async
- sync/finalization
- test
- node
- src/main
- resources
- scala/com/wavesplatform
- api
- common
- http
- consensus
- crypto/bls
- database
- history
- mining
- microblocks
- settings
- state
- appender
- transaction
- utils/generator
- testkit/src/main/scala/com/wavesplatform
- db
- history
- state
- test
- transaction
- tests/src/test/scala/com/wavesplatform
- consensus
- crypto/bls
- db
- finalization
- conflict
- history
- http
- mining
- state
- appender
- diffs
- ci
- snapshot
- transaction
- utils
- utx
- project
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
93 files changed
+2843
-1035
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
| 250 | + | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
254 | 273 | | |
255 | 274 | | |
256 | 275 | | |
| |||
259 | 278 | | |
260 | 279 | | |
261 | 280 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | 281 | | |
266 | 282 | | |
267 | 283 | | |
| |||
270 | 286 | | |
271 | 287 | | |
272 | 288 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
277 | 293 | | |
278 | 294 | | |
279 | 295 | | |
280 | | - | |
281 | | - | |
282 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
283 | 303 | | |
284 | 304 | | |
285 | 305 | | |
| |||
347 | 367 | | |
348 | 368 | | |
349 | 369 | | |
350 | | - | |
| 370 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
11 | 24 | | |
12 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
13 | 29 | | |
14 | 30 | | |
15 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
507 | 515 | | |
508 | 516 | | |
509 | 517 | | |
| |||
573 | 581 | | |
574 | 582 | | |
575 | 583 | | |
576 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
577 | 597 | | |
578 | 598 | | |
579 | 599 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
68 | 81 | | |
69 | 82 | | |
70 | 83 | | |
| |||
98 | 111 | | |
99 | 112 | | |
100 | 113 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 114 | + | |
107 | 115 | | |
108 | 116 | | |
109 | | - | |
110 | | - | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | | - | |
| 120 | + | |
113 | 121 | | |
114 | | - | |
| 122 | + | |
115 | 123 | | |
116 | 124 | | |
117 | 125 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
0 commit comments