This commit is contained in:
Tim Olson
2023-12-28 00:55:10 -04:00
parent aa746a0163
commit afc0502e96
2 changed files with 7 additions and 6 deletions

View File

@@ -162,8 +162,12 @@ export function ensureVault2(chainId, owner, num) {
} }
async function doEnsureVault(chainId, owner, num) { async function doEnsureVault(chainId, owner, num) {
socket.emit('ensureVault', chainId, owner, num) await _discoverVaults(owner)
await sleep() if( !useStore().vaults[num] ) {
console.log(`requesting vault ${owner} ${num}`)
socket.emit('ensureVault', chainId, owner, num)
}
await sleep(5)
} }
const ensureVaultRoutine = new SingletonCoroutine(doEnsureVault, 100, false) const ensureVaultRoutine = new SingletonCoroutine(doEnsureVault, 100, false)

View File

@@ -116,10 +116,7 @@ function checkVault() {
} }
// todo remove automatic vault creation for Alpha 2 // todo remove automatic vault creation for Alpha 2
s.$subscribe((mutation, state)=>{ s.$subscribe((mutation, state)=>{checkVault()})
console.log('test')
checkVault()
})
</script> </script>