cosmetics

This commit is contained in:
Andre Staltz 2023-04-28 16:24:27 +03:00
parent d17f2ebc70
commit 2c4e1f7be1
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 8 additions and 6 deletions

View File

@ -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()

View File

@ -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]