handleHandshakeMsg check we're part of a new state before adding it

This commit is contained in:
NicolasCantu 2025-03-26 14:40:41 +01:00
parent f2e2aeaa9a
commit a0888f8c90

View File

@ -1284,8 +1284,10 @@ export default class Services {
for (const state of process.states) {
if (!state.state_id || state.state_id === EMPTY32BYTES) { continue; }
if (!this.lookForStateId(existing, state.state_id)) {
new_states.push(state.state_id);
roles.push(state.roles);
if (this.rolesContainsUs(state.roles)) {
new_states.push(state.state_id);
roles.push(state.roles);
}
}
}