09fa919686
-The block sync will now remove orphaned block data from the txes collecton, address balances/sent/received data as well as addresstx data and now stores limited info in a new orphans collection -Added a new optional page for viewing orphaned block data -The coinbase address now updates sent totals from POS rewards and other transactions that have vout but no vin addresses -Block and transaction pages now display a warning when viewing an orphaned block or tx -Added a couple new fields to the coinstats collection for tracking orphaned blocks -Added new locale strings for the orphaned block feature
23 lines
903 B
JavaScript
23 lines
903 B
JavaScript
var mongoose = require('mongoose'),
|
|
Schema = mongoose.Schema;
|
|
|
|
var StatsSchema = new Schema({
|
|
coin: { type: String },
|
|
count: { type: Number, default: 1 },
|
|
last: { type: Number, default: 1 },
|
|
supply: { type: Number, default: 0 },
|
|
txes: { type: Number, default: 0 },
|
|
connections: { type: Number, default: 0 },
|
|
last_price: { type: Number, default: 0 },
|
|
last_usd_price: { type: Number, default: 0 },
|
|
blockchain_last_updated: { type: Number, default: 0 },
|
|
reward_last_updated: { type: Number, default: 0 },
|
|
masternodes_last_updated: { type: Number, default: 0 },
|
|
network_last_updated: { type: Number, default: 0 },
|
|
richlist_last_updated: { type: Number, default: 0 },
|
|
markets_last_updated: { type: Number, default: 0 },
|
|
orphan_index: { type: Number, default: 0 },
|
|
orphan_current: { type: Number, default: 0 }
|
|
});
|
|
|
|
module.exports = mongoose.model('coinstats', StatsSchema); |