]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - src/database.js
Make the network auto sufficient (eject bad pods with scores)
[github/Chocobozzz/PeerTube.git] / src / database.js
index 020bfd961202b623e0022a247c861753ac93bfff..740e89fa4a6bb46ab67ec1f855cb26d1437708f5 100644 (file)
@@ -24,7 +24,8 @@
   // ----------- Pods -----------
   var podsSchema = mongoose.Schema({
     url: String,
-    publicKey: String
+    publicKey: String,
+    score: { type: Number, max: global.FRIEND_BASE_SCORE }
   })
 
   var PodsDB = mongoose.model('pods', podsSchema)