Files
purple-explorer/models/masternode.js
T
joeuhren be1205d90a Add masternodes page/feature
-Added a new "Masternodes" page which displays the current list of masternodes on the network
-/api/getmasternodelist is no longer publicly accessible and has been replaced by /ext/getmasternodelist which returns the masternode list from local collection instead of directly from wallet
-Added new masternode sync options to sync.js and sync.sh
-Added new masternodes_last_updated field to the Stats collection
-Updated delete_database.sh and restore_backup.sh to include support for the new masternodes collection
-Network header menu icon changed to allow the new Masternodes menu item to use the old network icon
2020-12-30 18:22:02 -07:00

18 lines
666 B
JavaScript

var mongoose = require('mongoose')
, Schema = mongoose.Schema;
var MasternodeSchema = new Schema({
rank: { type: Number, default: 0 },
network: { type: String, default: "" },
txhash: { type: String, default: "" },
outidx : { type: Number, default: 0},
status : { type: String, default: "" },
addr: { type: String, unique: true, index: true },
version : { type: Number, default: 0},
lastseen: { type: Number, default: 0 },
activetime: { type: Number, default: 0 },
lastpaid: { type: Number, default: 0 },
claim_name: { type: String, default: '', index: true }
}, {id: false});
module.exports = mongoose.model('Masternode', MasternodeSchema);