Skip to content

Commit

Permalink
FIX: CSM Queue (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays authored Dec 18, 2024
1 parent b921133 commit 42c96f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions launcher/src/backend/web3/CSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,4 @@ async function checkSigningKeys(keysArray, monitoring) {
}
}

export default {
checkSigningKeys,
getSigningKeysWithQueueInfo,
};
export { checkSigningKeys, getSigningKeysWithQueueInfo };
4 changes: 2 additions & 2 deletions launcher/src/composables/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ export async function useUpdateValidatorStats() {
return;
}
// Get queue keys
const keysInQueue = await ControlService.getCSMQueue(stakingStore.keys.map((key) => key.key));
const keysInQueue = await ControlService.getSigningKeysWithQueueInfo();
stakingStore.keys.forEach((key) => {
let info = data.find((k) => k.pubkey === key.key);

// Check if the key is in queue here
let inQueue = false;
if (Array.isArray(keysInQueue)) inQueue = keysInQueue.includes(key.key);
if (Array.isArray(keysInQueue)) inQueue = keysInQueue.some((k) => k.key === key.key && k.queuePosition != 0);

if (info) {
let dateActive = new Date();
Expand Down
2 changes: 0 additions & 2 deletions launcher/src/storageservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class StorageService {
async writeConfig(config) {
try {
this.store.set("config-v2", config);
log.info("Config written:", config);
} catch (error) {
log.error("Error writing config:", error);
}
Expand All @@ -19,7 +18,6 @@ export class StorageService {
async readConfig() {
try {
const config = this.store.get("config-v2");
log.info("Config read:", config);
return new Promise((resolve) => resolve(config));
} catch (error) {
log.error("Error reading config:", error);
Expand Down

0 comments on commit 42c96f9

Please sign in to comment.