Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit 8f697bc5 authored by Moul's avatar Moul
Browse files

[enh] BMA: blockchain/parameters: add sigReplay and msPeriod

parent 413b1833
......@@ -44,8 +44,10 @@ export class ConfDAL extends AbstractCFS {
"sigWindow": parseInt(conf.sigWindow,10),
"sigValidity": parseInt(conf.sigValidity,10),
"sigQty": parseInt(conf.sigQty,10),
"sigReplay": parseInt(conf.sigReplay,10),
"idtyWindow": parseInt(conf.idtyWindow,10),
"msWindow": parseInt(conf.msWindow,10),
"msPeriod": parseInt(conf.msPeriod,10),
"xpercent": parseFloat(conf.xpercent),
"msValidity": parseInt(conf.msValidity,10),
"stepMax": parseInt(conf.stepMax,10),
......
......@@ -279,7 +279,7 @@ export class BlockDTO implements Cloneable {
udTime0: parseInt(sp[17]),
udReevalTime0: parseInt(sp[18]),
dtReeval: parseInt(sp[19]),
// New parameter, defaults to msWindow
// New parameters, defaults to msWindow
msPeriod: parseInt(sp[9]),
sigReplay: parseInt(sp[9]),
}
......@@ -292,4 +292,4 @@ export class BlockDTO implements Cloneable {
static getHash(block:any) {
return BlockDTO.fromJSONObject(block).getHash()
}
}
\ No newline at end of file
}
......@@ -88,8 +88,10 @@ export class BlockchainBinding extends AbstractController {
"sigWindow": params.sigWindow,
"sigValidity": params.sigValidity,
"sigQty": params.sigQty,
"sigReplay": params.sigReplay,
"idtyWindow": params.idtyWindow,
"msWindow": params.msWindow,
"msPeriod": params.msPeriod,
"xpercent": params.xpercent,
"msValidity": params.msValidity,
"stepMax": params.stepMax,
......
......@@ -40,9 +40,11 @@ export const Parameters = {
sigStock: Number,
sigWindow: Number,
sigValidity: Number,
sigReplay: Number,
sigQty: Number,
idtyWindow: Number,
msWindow: Number,
msPeriod: Number,
xpercent: Number,
msValidity: Number,
stepMax: Number,
......@@ -64,9 +66,11 @@ export interface HttpParameters {
sigStock: number
sigWindow: number
sigValidity: number
sigReplay: number
sigQty: number
idtyWindow: number
msWindow: number
msPeriod: number
xpercent: number
msValidity: number
stepMax: number
......
......@@ -668,9 +668,11 @@ The synchronization parameters.
sigStock: 45,
sigWindow: 604800,
sigValidity: 2629800,
sigReplay: 604800,
sigQty: 3,
idtyWindow: 604800,
msWindow: 604800,
msPeriod: 604800,
xpercent: 5,
msValidity: 2629800,
stepMax: 3,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment