Add support for newer Dash masternode format

-Automatically detect if using newer or older Dash masternode format and display applicable columns and data
-Added new fields 'ip_address' and 'last_paid_block' to the Masternode collection
This commit is contained in:
joeuhren
2021-05-03 12:28:08 -06:00
parent 269e51cc2d
commit f8c008ecd4
5 changed files with 110 additions and 42 deletions
+3
View File
@@ -57,6 +57,9 @@ db.connect(dbString, function() {
// Add new field(s) to tx collection if missing
db.check_txes(function(exists) {});
// Add new field(s) to masternode collection if missing
db.check_masternodes(function(exists) {});
db.check_richlist(settings.coin.name, function(exists) {
if (exists == false) {
console.log('no richlist entry found, creating now..');