diff --git a/lib/index.js b/lib/index.js index 4758fe0..722bc9d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -170,6 +170,8 @@ module.exports = { } function _squeezePotential(subtype) { + // TODO: improve this so that the squeezePotential is the size of the + // tangle suffix built as a slice from the fieldRoots const rootHash = FeedV1.getFeedRootHash(myWho, fromSubtype(subtype)) const tangle = peer.db.getTangle(rootHash) const maxDepth = tangle.getMaxDepth() diff --git a/protospec.md b/protospec.md index 623e4ae..79a5b86 100644 --- a/protospec.md +++ b/protospec.md @@ -5,7 +5,7 @@ ```mermaid graph RL -R["(Feed root)"]:::feedroot +R["(Feed root)"] A[updates age] B[updates name] C[updates age] @@ -53,7 +53,7 @@ highlighted in blue. ```mermaid graph RL -R["(Feed root)"]:::feedroot +R["(Feed root)"] A[updates age]:::blue A-->R classDef default fill:#bbb,stroke:#fff0,color:#000 @@ -65,7 +65,7 @@ classDef blue fill:#6af,stroke:#fff0,color:#000 ```mermaid graph RL -R["(Feed root)"]:::feedroot +R["(Feed root)"] A[updates age]:::blue B[updates name]:::blue B-->A-->R @@ -79,7 +79,7 @@ classDef blue fill:#6af,stroke:#fff0,color:#000 ```mermaid graph RL -R["(Feed root)"]:::feedroot +R["(Feed root)"] A[updates age] B[updates name]:::blue C[updates age]:::blue @@ -98,7 +98,7 @@ classDef blue fill:#6af,stroke:#fff0,color:#000 ```mermaid graph RL -R["(Feed root)"]:::feedroot +R["(Feed root)"] A[updates age] B[updates name]:::blue C[updates age]:::blue @@ -118,7 +118,7 @@ classDef blue fill:#6af,stroke:#fff0,color:#000 ```mermaid graph RL -R["(Feed root)"]:::feedroot +R["(Feed root)"] A[updates age] B[updates name] C[updates age]