Block-Explorer / ccbc-explorer

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

Market Information are Incorrect #3

Open Aviator-Coding opened 5 years ago

Aviator-Coding commented 5 years ago

Expected Behavior

Get the Accurate Market Reading: image

Actual Behavior

image

Steps to Reproduce the Problem

1.Run Current Master Branch

Aviator-Coding commented 5 years ago

Issue has to do with the UTX not getting removed as spend:

const results_q = UTXO.aggregate([
    { $group: { _id: 'supply', total: { $sum: '$value' } } }
  ]);

Returns:

./cron/coin.js
{ USD_Price: 0.0028884438009153,
  USD_Cap: 974827.7152671365,
  Suppply: 337492360.0584611,
  BTC_Price: '0.00000081',
  BTC_Volume: 273.3688116473535 }

Actual Supply from wallet:

"moneysupply" : 17188556.17122944,