4NK Application
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644
index 0000000..25ee7ff
--- /dev/null
+++ b/public/favicon.svg
@@ -0,0 +1,27 @@
+
diff --git a/src/services/service.ts b/src/services/service.ts
index d16b7ab..2e116e8 100755
--- a/src/services/service.ts
+++ b/src/services/service.ts
@@ -907,6 +907,22 @@ export default class Services {
}
}
+ // For quorum=1, try to force process synchronization
+ if (i === 2) {
+ try {
+ console.log(`🔄 Forcing process synchronization for quorum=1 test...`);
+ // Force the SDK to recognize this as a pairing process
+ const process = await this.getProcess(processId);
+ if (process) {
+ console.log(`🔄 Process found, attempting to sync with SDK...`);
+ // Try to trigger SDK synchronization
+ await this.sdkClient.get_pairing_process_id();
+ }
+ } catch (e) {
+ console.log(`⚠️ Process synchronization attempt failed: ${(e as Error).message}`);
+ }
+ }
+
// Check if the process exists in our processes list
try {
const process = await this.getProcess(processId);
@@ -940,6 +956,17 @@ export default class Services {
return;
}
+ // For quorum=1 test, if we have a process but no commitment yet,
+ // try to force synchronization by calling updateDevice more frequently
+ if (i < 5) {
+ try {
+ await this.updateDevice();
+ console.log(`🔄 Forced device update on attempt ${i + 1}`);
+ } catch (e) {
+ console.log(`⚠️ Forced device update failed: ${(e as Error).message}`);
+ }
+ }
+
console.log(`⏳ Still waiting for SDK synchronization... (${i + 1}/${maxRetries})`);
// Only try updateDevice every 5 attempts to avoid spam