-
Notifications
You must be signed in to change notification settings - Fork 49
book/architecture: add resource index #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Index of threads | ||
This is an index of all of the system threads Cuprate actively uses. | ||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, is this just @Boog900 are there any threads (ephemeral/persistent) spawned in any of your code? Or any code that we call out to? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are going to have a thread that listens to Stdin and handles commands. Also the |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Index of PATHs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we only save database files currently? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we also save a |
||
This is an index of all of the filesystem PATHs Cuprate actively uses. | ||
|
||
The [`cuprate_helper::fs`](https://doc.cuprate.org/cuprate_helper/fs/index.html) | ||
module defines the general locations used throughout Cuprate. | ||
|
||
[`dirs`](https://docs.rs/dirs) is used internally, which follows | ||
the PATH standards/conventions on each OS Cuprate supports, i.e.: | ||
- the [XDG base directory](https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html) and the [XDG user directory](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/) specifications on Linux | ||
- the [Known Folder](https://msdn.microsoft.com/en-us/library/windows/desktop/bb776911(v=vs.85).aspx) system on Windows | ||
- the [Standard Directories](https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW6) on macOS | ||
|
||
## Cache | ||
Cuprate's cache directory. | ||
|
||
| OS | PATH | | ||
|---------|-----------------------------------------| | ||
| Windows | `C:\Users\Alice\AppData\Local\Cuprate\` | | ||
| macOS | `/Users/Alice/Library/Caches/Cuprate/` | | ||
| Linux | `/home/alice/.cache/cuprate/` | | ||
|
||
## Config | ||
Cuprate's config directory. | ||
|
||
| OS | PATH | | ||
|---------|-----------------------------------------------------| | ||
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\` | | ||
| macOS | `/Users/Alice/Library/Application Support/Cuprate/` | | ||
| Linux | `/home/alice/.config/cuprate/` | | ||
|
||
## Data | ||
Cuprate's data directory. | ||
|
||
| OS | PATH | | ||
|---------|-----------------------------------------------------| | ||
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\` | | ||
| macOS | `/Users/Alice/Library/Application Support/Cuprate/` | | ||
| Linux | `/home/alice/.local/share/cuprate/` | | ||
|
||
## Blockchain | ||
Cuprate's blockchain directory. | ||
|
||
| OS | PATH | | ||
|---------|----------------------------------------------------------------| | ||
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\blockchain\` | | ||
| macOS | `/Users/Alice/Library/Application Support/Cuprate/blockchain/` | | ||
| Linux | `/home/alice/.local/share/cuprate/blockchain/` | | ||
|
||
## Transaction pool | ||
Cuprate's transaction pool directory. | ||
|
||
| OS | PATH | | ||
|---------|------------------------------------------------------------| | ||
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\txpool\` | | ||
| macOS | `/Users/Alice/Library/Application Support/Cuprate/txpool/` | | ||
| Linux | `/home/alice/.local/share/cuprate/txpool/` | | ||
|
||
## Database | ||
Cuprate's database location/filenames depend on: | ||
|
||
- Which database it is | ||
- Which backend is being used | ||
|
||
--- | ||
|
||
`cuprate_blockchain` files are in the above mentioned `blockchain` folder. | ||
|
||
`cuprate_txpool` files are in the above mentioned `txpool` folder. | ||
|
||
--- | ||
|
||
If the `heed` backend is being used, these files will be created: | ||
|
||
| Filename | Purpose | | ||
|------------|--------------------| | ||
| `data.mdb` | Main data file | | ||
| `lock.mdb` | Database lock file | | ||
|
||
For example: `/home/alice/.local/share/cuprate/blockchain/lock.mdb`. | ||
|
||
If the `redb` backend is being used, these files will be created: | ||
|
||
| Filename | Purpose | | ||
|-------------|--------------------| | ||
| `data.redb` | Main data file | | ||
|
||
For example: `/home/alice/.local/share/cuprate/txpool/data.redb`. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Resources |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Sockets |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Index of ports | ||
This is an index of all of the network sockets Cuprate actively uses. | ||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't think we open any right now, right? Maybe networking ones in the alpha binary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah not yet, we would need #176. For the initial alpha binary I would be ok with not accepting inbound connections |
Uh oh!
There was an error while loading. Please reload this page.