Skip to content

Commit 77a4a47

Browse files
authored
Patched the finalization schema (#740) (#741)
* Patched the finalization schema (#740) * Patched the finalization schema * update openAPI * Updated change log
1 parent 957e428 commit 77a4a47

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
44

55
The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [0.22.1] - 10-Dec-2020
8+
9+
**Milestone**: Catapult-server finality(0.10.0.4)
10+
Package | Version | Link
11+
---|---|---
12+
SDK Core| v0.22.1 | [symbol-sdk](https://www.npmjs.com/package/symbol-sdk)
13+
Catbuffer | v0.0.24 | [catbuffer-typescript](https://www.npmjs.com/package/catbuffer-typescript)
14+
Client Library | v0.10.5-1 | [symbol-openapi-typescript-fetch-client](https://www.npmjs.com/package/symbol-openapi-typescript-fetch-client)
15+
16+
- Fixed finalization proof schema version compatibility issue.
17+
718
## [0.22.0] - 8-Dec-2020
819

920
**Milestone**: Catapult-server finality(0.10.0.4)

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"ripemd160": "^2.0.2",
114114
"rxjs": "^6.6.3",
115115
"rxjs-compat": "^6.6.3",
116-
"symbol-openapi-typescript-fetch-client": "0.10.4",
116+
"symbol-openapi-typescript-fetch-client": "0.10.5-1",
117117
"tweetnacl": "^1.0.3",
118118
"ws": "^7.3.1"
119119
},

src/infrastructure/FinalizationHttp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export class FinalizationHttp extends Http implements FinalizationRepository {
9191
new BmTreeSignature(
9292
new ParentPublicKeySignaturePair(s.root.parentPublicKey, s.root.signature),
9393
new ParentPublicKeySignaturePair(s.bottom.parentPublicKey, s.bottom.signature),
94+
s.top ? new ParentPublicKeySignaturePair(s.top.parentPublicKey, s.top.signature) : undefined,
9495
),
9596
),
9697
mg.signatureSchema,

src/model/finalization/BmTreeSignature.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ export class BmTreeSignature {
2929
* Bottom.
3030
*/
3131
public readonly bottom: ParentPublicKeySignaturePair,
32+
/**
33+
* top (for testnet/3 V1 schema only).
34+
*/
35+
public readonly top?: ParentPublicKeySignaturePair,
3236
) {}
3337
}

test/infrastructure/FinalizationHttp.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('FinalizationHttp', () => {
5555
const tree = {} as BmTreeSignature;
5656
tree.bottom = ps;
5757
tree.root = ps;
58+
tree.top = undefined;
5859

5960
mg.signatures = [tree];
6061
dto.messageGroups = [mg];

0 commit comments

Comments
 (0)