Commit 693484d
authored
OpenAPI and improvements (#4034)
* OpenAPI:
- /transactions/sign: added an info about new fields to description
- New components: BlsPublicKey, BlsSignature, GeneratorIndex, BlockEndorsement, FinalizationVoting
- Added finalizationVoting to block headers
* Better logs and more filters for endorsements (exclusion of miner endorsements)
* OpenAPI: Added CommitToGenerationTransaction
* OpenAPI: added /addresses/bls/{address}
* OpenAPI, added:
- GET /blocks/height/finalized
- GET /blocks/headers/finalized
- GET /blocks/finalized/at/{height}
* OpenAPI: New fields "nextCommittedGeneratorsHash" and "committedGeneratorBalancesHash" in `/debug/stateHash/last` and `/debug/stateHash/{height}` after finality feature activation
* OpenAPI: new endpoint `/generators/at/{height}`
* OpenAPI: new field nextCommittedGenerators in TransactionSnapshot
* OpenAPI: only few transaction types has `feeAssetId`: InvokeExpressionTransaction, InvokeScriptTransaction, TransferTransaction, UpdateAssetInfoTransaction
* Updated tests
* Forced rollback fix
* Updated Swagger UI to 5.31.1
* Swagger UI: enable "Try it" mode always, hide "Try it out" button
* Swagger UI: Disable "Explore" functionality
* Swagger UI: Disable choosing other server
* OpenAPI: transaction schema changes to help Swagger UI show precise types instead of "object"
* OpenAPI:
- Added WavesOrAssetId and DebugStateHashes schemas
- Eliminate deprecated "nullable"
- Right types for assetId-like fields
- Chores
* OpenAPI: Added AssetPair
* DB Keys: ported finalizedHeight parsing
* Open API: Fixes
* Removed obsolete code
* New balance tests, common error format WIP
* New balance tests, common error format WIP (2)
* HTTP API: TransactionId and BlockId matchers blocked route fallback
by throwing
* CommitToGenerationTransaction: precise balance validation
* Fixed a keyblock validation against the latest removed microblock
* New test for appending after removing the last microblock
* Added comments
* Fixed tests, backported MiningFailuresSuite
* Additional test
* Miner forges after right liquid block
* Additional test in LastMicroBlockSuite
* Do not try to apply same block twice
* Fixed order of logs
* Fixed liquid block forging
* Finalization height and voting from right liquid block, NgState refactor
* Refactor NgState (2): VectorMap instead of Vector+List for micro blocks
* Refactor NgState (3): cleanup
* Refactor NgState (4): cleanup
* Refactor NgState (5): minor fixes
* Refactor NgState (6): linter fixes
* Fixes in BLS validation, new tests
* Fixes in Importer
* BLS related code improvements
* BlockAppenderAfterFinalizationSpec: finalization checks
* MinerWithFinalitySuite: additional checks
* New tests
* New tests, cleanup
* Disable endorsing of challenging block
* CommitToGenerationTransactionDiffTest
* CommitToGenerationTransactionDiff: additional tests
* Tests added and updated
* Always endorse with the latest finalized block
* Cleanup
* Cleanup, additional check in test
* GET /generators/at/$height shows generators those committed on next period
* Exporter fixes
* Swagger UI: change the document title to info.title of OpenAPI spec
* Tests: createBlock has a default value for block version argument, formatting
* Cleanup
* PBTransactions: fixed CreateAliasTransaction creation in createVanillaUnsafe1 parent 5c34710 commit 693484d
File tree
122 files changed
+3438
-2431
lines changed- grpc-server/src/test/scala/com/wavesplatform
- api/grpc/test
- events
- node-it/src/test
- resources
- scala/com/wavesplatform
- it
- sync
- finalization
- test
- node
- src/main
- resources/swagger-ui
- scala/com/wavesplatform
- api
- common
- http
- leasing
- block
- consensus
- crypto/bls
- database
- mining
- protobuf/transaction
- state
- appender
- diffs
- transaction
- utils/generator
- testkit/src/main/scala/com/wavesplatform
- db
- history
- tests/src/test/scala/com/wavesplatform
- consensus
- crypto/bls
- features
- finalization
- conflict
- history
- http
- mining
- state
- appender
- diffs
- ci
- sync
- smart/predef
- reader
- transaction
- smart
- utx
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
122 files changed
+3438
-2431
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
209 | | - | |
210 | | - | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
| |||
323 | 322 | | |
324 | 323 | | |
325 | 324 | | |
326 | | - | |
327 | 325 | | |
328 | 326 | | |
329 | 327 | | |
| |||
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | | - | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
232 | | - | |
233 | 238 | | |
234 | 239 | | |
235 | 240 | | |
| |||
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
59 | | - | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
828 | 835 | | |
829 | 836 | | |
830 | 837 | | |
831 | | - | |
832 | 838 | | |
833 | 839 | | |
834 | 840 | | |
| |||
1100 | 1106 | | |
1101 | 1107 | | |
1102 | 1108 | | |
1103 | | - | |
| 1109 | + | |
1104 | 1110 | | |
1105 | 1111 | | |
1106 | 1112 | | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
| 1113 | + | |
1110 | 1114 | | |
1111 | 1115 | | |
1112 | 1116 | | |
1113 | 1117 | | |
1114 | 1118 | | |
1115 | 1119 | | |
1116 | 1120 | | |
1117 | | - | |
1118 | 1121 | | |
1119 | 1122 | | |
1120 | | - | |
| 1123 | + | |
1121 | 1124 | | |
1122 | 1125 | | |
1123 | | - | |
1124 | 1126 | | |
1125 | 1127 | | |
1126 | 1128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
0 commit comments