Doichain / dapp

Doichan dApp - a Meteor.js implementation of the "Doichain Atomic Double-Opt-In" Protocol
https://www.doichain.org
MIT License
6 stars 6 forks source link

name_doi throws "Error there is already a registration for this doi name [doichain.update.exception]" #42

Closed silkroadnomad closed 6 years ago

silkroadnomad commented 6 years ago

When a double-opt-in gets confirmed before the first confirmation. name_doi throws an Error since the blockchain has this nameId already in the mempool. Executing another "name_doi" throws this error:

Also during the update process the send-dApp gets informed about the confirmation before name_doi got stored in the blockchain. (it should be the other way around /imports/modules/server/doichain/update.js

Thoughts to resolve this issue: 1) Don't throw an error from doichain node in this case 2) Catch this error and don't make so much noise about it.

At the moment I prefer this solution 2)