Skip to content

Commit

Permalink
Finality proof fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rg911 committed Dec 1, 2020
1 parent 4948e6a commit df02dc0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"ripemd160": "^2.0.2",
"rxjs": "^6.6.3",
"rxjs-compat": "^6.6.3",
"symbol-openapi-typescript-fetch-client": "0.10.1-SNAPSHOT.202011302130",
"symbol-openapi-typescript-fetch-client": "0.10.1-SNAPSHOT.202012011711",
"tweetnacl": "^1.0.3",
"ws": "^7.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/FinalizationHttp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ export class FinalizationHttp extends Http implements FinalizationRepository {
(s) =>
new BmTreeSignature(
new ParentPublicKeySignaturePair(s.root.parentPublicKey, s.root.signature),
new ParentPublicKeySignaturePair(s.top.parentPublicKey, s.top.signature),
new ParentPublicKeySignaturePair(s.bottom.parentPublicKey, s.bottom.signature),
),
),
mg.signatureSchema,
),
),
);
Expand Down
4 changes: 0 additions & 4 deletions src/model/finalization/BmTreeSignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export class BmTreeSignature {
* Root.
*/
public readonly root: ParentPublicKeySignaturePair,
/**
* Top.
*/
public readonly top: ParentPublicKeySignaturePair,
/**
* Bottom.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/model/finalization/MessageGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ export class MessageGroup {
* Signatures.
*/
public readonly signatures: BmTreeSignature[],
/**
* Signature schema (optional)
*/
public readonly signatureSchema?: number,
) {}
}
1 change: 0 additions & 1 deletion test/infrastructure/FinalizationHttp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe('FinalizationHttp', () => {

const tree = {} as BmTreeSignature;
tree.bottom = ps;
tree.top = ps;
tree.root = ps;

mg.signatures = [tree];
Expand Down

0 comments on commit df02dc0

Please sign in to comment.