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.
source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -159,11 +159,12 @@ export default { ...@@ -159,11 +159,12 @@ export default {
} else { } else {
//self.$emit('failed-verify') //self.$emit('failed-verify')
self.uploadedFiles[i].verified = false; self.uploadedFiles[i].verified = false;
// console.error('Verify '+res.data.stamped)
self.checkVerify() self.checkVerify()
} }
}).catch((e) => { }).catch((e) => {
//self.$emit('failed-verify') //self.$emit('failed-verify')
//console.error(e) console.error(e)
self.uploadedFiles[i].verified = false; self.uploadedFiles[i].verified = false;
self.checkVerify() self.checkVerify()
}).finally( () => self.loading = false ) }).finally( () => self.loading = false )
...@@ -202,13 +203,15 @@ export default { ...@@ -202,13 +203,15 @@ export default {
axios.post(stampUrl, { axios.post(stampUrl, {
hashes: self.allHashes hashes: self.allHashes
}).then( }).then(
axios.get(`${this.apiurl}/wait1block`) axios.get(`${this.apiurl}/wait1block`).then(
.then(() => { axios.get(`${this.apiurl}/wait1block`).then(() => {
//self.$emit('stamp', self.uploadedFiles[0].hash); //console.log('Verificar:'+ self.allHashes)
this.verify(); //self.$emit('stamp', self.uploadedFiles[0].hash);
}) this.verify();
})
)
).catch((e) => { ).catch((e) => {
//console.error(e) console.error(e)
self.$emit('failed-stamp') 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