Block-Explorer / ccbc-explorer

Block explorer for Bulwark Cryptocurrency
MIT License
0 stars 1 forks source link

Cron Coin Sync #4

Open Aviator-Coding opened 5 years ago

Aviator-Coding commented 5 years ago

Expected Behavior

Run Cron Updates the Coin Informationd

Actual Behavior

When the BurAddress has no Value this Script causes an Exception

nodejs ./cron/coin.js
TypeError: Cannot read property 'sum' of undefined
    at syncCoin (/home/explorer/explorer/cron/coin.js:59:59)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

It starts working normally as soon the wallet finds value in the Database

nodejs ./cron/coin.js
TypeError: Cannot read property 'sum' of undefined
    at syncCoin (/home/explorer/explorer/cron/coin.js:59:59)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

Steps to Reproduce the Problem

1.Run the Master Branch