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
12 lines
430 B
JavaScript
12 lines
430 B
JavaScript
var mongoose = require('mongoose'),
|
|
Schema = mongoose.Schema;
|
|
|
|
var OrphanSchema = new Schema({
|
|
blockindex: {type: Number, default: 0, index: true},
|
|
orphan_blockhash: {type: String, unique: true, index: true},
|
|
good_blockhash: {type: String, index: true},
|
|
prev_blockhash: {type: String, index: true},
|
|
next_blockhash: {type: String, index: true}
|
|
}, {id: false});
|
|
|
|
module.exports = mongoose.model('Orphan', OrphanSchema); |