Skip to content
Snippets Groups Projects
Commit 755cbc42 authored by Otto Zaiser's avatar Otto Zaiser
Browse files

Wait 2 blocks

parent d45995ed
No related branches found
No related tags found
No related merge requests found
source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
......@@ -159,11 +159,12 @@ export default {
} else {
//self.$emit('failed-verify')
self.uploadedFiles[i].verified = false;
// console.error('Verify '+res.data.stamped)
self.checkVerify()
}
}).catch((e) => {
//self.$emit('failed-verify')
//console.error(e)
console.error(e)
self.uploadedFiles[i].verified = false;
self.checkVerify()
}).finally( () => self.loading = false )
......@@ -202,13 +203,15 @@ export default {
axios.post(stampUrl, {
hashes: self.allHashes
}).then(
axios.get(`${this.apiurl}/wait1block`)
.then(() => {
//self.$emit('stamp', self.uploadedFiles[0].hash);
this.verify();
})
axios.get(`${this.apiurl}/wait1block`).then(
axios.get(`${this.apiurl}/wait1block`).then(() => {
//console.log('Verificar:'+ self.allHashes)
//self.$emit('stamp', self.uploadedFiles[0].hash);
this.verify();
})
)
).catch((e) => {
//console.error(e)
console.error(e)
self.$emit('failed-stamp')
})
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment