Would you be open to including nodes with trust weight 0 in the return value of TrustNet.prototype.getAllTrusted and other methods?
For my particular use-case, changing
|
return Object.entries(this.rankings).filter((e) => e[1] > 0).map((e) => e[0]).concat(this.rootid) |
to
return Object.entries(this.rankings).filter((e) => e[1] > 0 || this.trustThreshold === 0).map((e) => e[0]).concat(this.rootid) returned the results I wanted. I'm not sure what other changes would need to made for consistency.
Would you be open to including nodes with trust weight 0 in the return value of TrustNet.prototype.getAllTrusted and other methods?
For my particular use-case, changing
trustnet/trustnet.js
Line 67 in 7dbb970
return Object.entries(this.rankings).filter((e) => e[1] > 0 || this.trustThreshold === 0).map((e) => e[0]).concat(this.rootid)returned the results I wanted. I'm not sure what other changes would need to made for consistency.