Skip to content

Cron create exception if wallet not ready #8

Description

@Aviator-Coding

Expected Behavior

give a message wallet not ready

Actual Behavior

getinfo { code: -28, message: 'Rescanning...' }
Error: [object Object]
    at rpc.call (I:\ccbc-explorer\lib\rpc.js:51:18)
    at IncomingMessage.<anonymous> (I:\ccbc-explorer\node_modules\node-bitcoin-rpc\lib\index.js:74:9)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1094:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)
From previous event:
    at RPC.call (I:\ccbc-explorer\lib\rpc.js:47:12)
    at update (I:\ccbc-explorer\cron\block.js:112:28)
    at Object.<anonymous> (I:\ccbc-explorer\cron\block.js:157:1)
    at Module._compile (internal/modules/cjs/loader.js:707:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Module.load (internal/modules/cjs/loader.js:605:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
    at Function.Module._load (internal/modules/cjs/loader.js:536:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:760:12)
    at startup (internal/bootstrap/node.js:308:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:878:3)
{ Error: ENOENT: no such file or directory, unlink 'I:\ccbc-explorer\tmp\block.cron_lock'
    at Object.unlinkSync (fs.js:972:3)
    at Object.unlock (I:\ccbc-explorer\lib\locker.js:40:6)
    at update (I:\ccbc-explorer\cron\block.js:148:14)
  errno: -4058,
  syscall: 'unlink',
  code: 'ENOENT',
  path: 'I:\\ccbc-explorer\\tmp\\block.cron_lock' }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions