Commit b5d5f811 authored by Cédric Moreau's avatar Cédric Moreau

Add generate-newcomers-auto command

parent c4cb098a
......@@ -119,9 +119,9 @@ KeySchema.statics.getMembers = function(done){
Key.find({ member: true }, done);
};
KeySchema.statics.findWhereSignatory = function(signatory, done){
KeySchema.statics.findMembersWhereSignatory = function(signatory, done){
var Key = this.model('Key');
Key.find({ signatories: new RegExp(signatory.substring(24) + '$') }, done);
Key.find({ member: true, signatories: new RegExp(signatory.substring(24) + '$') }, done);
};
KeySchema.statics.addMember = function(fingerprint, done){
......
This diff is collapsed.
......@@ -303,6 +303,11 @@ program
.description('Tries to generate a newcomers (#2+) keyblock, containing only newcomers changes')
.action(service(DO_NOT_LISTEN_HTTP, ucoin.createWOTServer, generateAndSend("generateNewcomers")));
program
.command('gen-newcomers-auto [host] [port] [difficulty]')
.description('Tries to generate a newcomers (#2+) keyblock, containing only newcomers changes')
.action(service(DO_NOT_LISTEN_HTTP, ucoin.createWOTServer, generateAndSend("generateNewcomersAuto")));
program
.command('compute-distances')
.description('Recompute distance between each member and the whole WoT and mark outdistanced ones as kicked')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment