decentralized-identity / sidetree-reference-impl

Sidetree Reference Implementation
Apache License 2.0
5 stars 7 forks source link

Should not log stack with value_time_lock_not_found if config is set to not use value time lock. #32

Open thehenrytsai opened 4 years ago

thehenrytsai commented 4 years ago

Currently the bitcoin service logs an non-critical event if value time lock is not configured as if something bad happened:

{ Error: {"code":"value_time_lock_not_found"} at BitcoinProcessor.getActiveValueTimeLockForThisNode (/datadrive/ion/node_modules/@decentralized-identity/sidetree/dist/lib/bitcoin/BitcoinProcessor.js:250:19) at Object. (/datadrive/ion/dist/src/bitcoin.js:105:106) at Generator.next () at /datadrive/ion/dist/src/bitcoin.js:7:71 at new Promise () at __awaiter (/datadrive/ion/dist/src/bitcoin.js:3:12) at requestHandler (/datadrive/ion/dist/src/bitcoin.js:105:34) at /datadrive/ion/dist/src/bitcoin.js:25:40 at Generator.next () at /datadrive/ion/dist/src/bitcoin.js:7:71 responseCode: 'not-found', code: 'value_time_lock_not_found' }