New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clerkb-lumos-integrator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clerkb-lumos-integrator - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

7

lib/generator.js

@@ -34,3 +34,3 @@ "use strict";

const remaining = this.roundStartSubtime + BigInt(poaSetup.round_intervals) - medianTime;
if (remaining > 0) {
if (remaining > 0n) {
this.logger(`Aggregator in round, remaining time: ${remaining}`);

@@ -52,4 +52,5 @@ return "YesIfFull";

const nextStartTime = initialTime + BigInt(poaSetup.round_intervals) * BigInt(steps);
this.logger(`On chain index: ${poaData.aggregator_index}, steps: ${steps}, initial time: ${initialTime}, next start time: ${nextStartTime}`);
if (medianTime >= nextStartTime) {
const waitTime = nextStartTime - medianTime;
this.logger(`On chain index: ${poaData.aggregator_index}, steps: ${steps}, initial time: ${initialTime}, next start time: ${nextStartTime}, wait time: ${waitTime}`);
if (waitTime <= 0n) {
this.roundStartSubtime = medianTime;

@@ -56,0 +57,0 @@ return "Yes";

{
"name": "clerkb-lumos-integrator",
"version": "0.2.0",
"version": "0.2.1",
"description": "Integrator between clerkb and lumos",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -75,3 +75,3 @@ import { Reader } from "ckb-js-toolkit";

this.roundStartSubtime + BigInt(poaSetup.round_intervals) - medianTime;
if (remaining > 0) {
if (remaining > 0n) {
this.logger(`Aggregator in round, remaining time: ${remaining}`);

@@ -94,6 +94,7 @@ return "YesIfFull";

initialTime + BigInt(poaSetup.round_intervals) * BigInt(steps);
const waitTime = nextStartTime - medianTime;
this.logger(
`On chain index: ${poaData.aggregator_index}, steps: ${steps}, initial time: ${initialTime}, next start time: ${nextStartTime}`
`On chain index: ${poaData.aggregator_index}, steps: ${steps}, initial time: ${initialTime}, next start time: ${nextStartTime}, wait time: ${waitTime}`
);
if (medianTime >= nextStartTime) {
if (waitTime <= 0n) {
this.roundStartSubtime = medianTime;

@@ -100,0 +101,0 @@ return "Yes";

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc