UNPKG

2.27 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const Context_1 = require("./Context");
4class InitialContext extends Context_1.Context {
5 cloneExpectedView({ expectedView }) {
6 return new InitialContext({
7 type: this.type,
8 previousHash: this.previousHash,
9 blockIndex: this.blockIndex,
10 viewNumber: this.viewNumber,
11 myIndex: this.myIndex,
12 primaryIndex: this.primaryIndex,
13 expectedView,
14 validators: this.validators,
15 blockReceivedTimeSeconds: this.blockReceivedTimeSeconds,
16 });
17 }
18}
19exports.InitialContext = InitialContext;
20
21//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkluaXRpYWxDb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsdUNBQW9DO0FBRXBDLE1BQWEsY0FBZSxTQUFRLGlCQUF1QjtJQUNsRCxpQkFBaUIsQ0FBQyxFQUFFLFlBQVksRUFBZ0Q7UUFDckYsT0FBTyxJQUFJLGNBQWMsQ0FBQztZQUN4QixJQUFJLEVBQUUsSUFBSSxDQUFDLElBQUk7WUFDZixZQUFZLEVBQUUsSUFBSSxDQUFDLFlBQVk7WUFDL0IsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVO1lBQzNCLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVTtZQUMzQixPQUFPLEVBQUUsSUFBSSxDQUFDLE9BQU87WUFDckIsWUFBWSxFQUFFLElBQUksQ0FBQyxZQUFZO1lBQy9CLFlBQVk7WUFDWixVQUFVLEVBQUUsSUFBSSxDQUFDLFVBQVU7WUFDM0Isd0JBQXdCLEVBQUUsSUFBSSxDQUFDLHdCQUF3QjtTQUN4RCxDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0Y7QUFkRCx3Q0FjQyIsImZpbGUiOiJuZW8tb25lLW5vZGUtY29uc2Vuc3VzL3NyYy9jb250ZXh0L0luaXRpYWxDb250ZXh0LmpzIiwic291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