Commit a6391a8c authored by Nilanjan Daw's avatar Nilanjan Daw

Speculation Aggressiveness for explicit chains

 Support added for speculation aggressiveness parameter for explicit chains
parent c81d9dd5
......@@ -37,6 +37,6 @@
},
"speculative_deployment": true,
"JIT_deployment": true,
"aggressivity": 0.2,
"aggressivity": 0.8,
"id_size": 20
}
\ No newline at end of file
......@@ -434,11 +434,13 @@ async function speculative_deployment(chain_id, aliases, chainData) {
console.log("delay map", delayMap);
console.log("notifcation plan", plan);
}
let counter = 0, maxCount = plan.length * constants.aggressivity
for (const node of plan) {
if (counter > maxCount)
break
console.log("notification set for", node.functionName);
setTimeout(notify, node.invokeTime, node.runtime, node.id)
counter++
}
}
}
......
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