Commit 755cbc42 authored by Otto Zaiser's avatar Otto Zaiser

Wait 2 blocks

parent d45995ed
This source diff could not be displayed because it is too large. You can view the blob instead.
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')
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment