Skip to content

Conversation

hinto-janai
Copy link
Contributor

What

Adds an index section for common resources in the Resources section, similar to the crates index we already have.

Setting this up now and gradually editing it is probably easier than doing it all at once.

@github-actions github-actions bot added A-docs Area: Related to documentation. A-books Area: Related to Cuprate's books. A-book-architecture Area: Related to the Architecture book. labels Sep 5, 2024
Comment on lines +1 to +2
# Index of threads
This is an index of all of the system threads Cuprate actively uses. No newline at end of file
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, is this just global rayon + global tokio + blockchain + txpool?

@Boog900 are there any threads (ephemeral/persistent) spawned in any of your code? Or any code that we call out to?

Copy link
Member

Choose a reason for hiding this comment

The 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 blockchain + txpool will use the same threadpool

Comment on lines +1 to +2
# Index of ports
This is an index of all of the network sockets Cuprate actively uses. No newline at end of file
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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?

Copy link
Member

Choose a reason for hiding this comment

The 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

@@ -0,0 +1,87 @@
# Index of PATHs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we only save database files currently?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also save a p2p_state file, which I should add to helper

@hinto-janai hinto-janai marked this pull request as ready for review September 5, 2024 00:51
@hinto-janai hinto-janai requested a review from Boog900 September 5, 2024 00:51
@Boog900 Boog900 merged commit 0162553 into Cuprate:main Sep 8, 2024
7 checks passed
@hinto-janai hinto-janai deleted the fs-book branch September 8, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-book-architecture Area: Related to the Architecture book. A-books Area: Related to Cuprate's books. A-docs Area: Related to documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants