Skip to content
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

Add more documentation for TBC and related RPC protocol #86

Merged
merged 39 commits into from
May 31, 2024
Merged

Conversation

marcopeereboom
Copy link
Contributor

Summary

Changes

@joshuasing joshuasing changed the title Add some more meat to the tbcd README Add more documentation for TBC and related RPC commands Apr 18, 2024
@joshuasing joshuasing marked this pull request as draft April 23, 2024 06:05
@joshuasing joshuasing added type: documentation This is an improvement or addition to documentation area: tbc This is a change to TBC (Tiny Bitcoin) labels Apr 26, 2024
api/protocol/README.md Outdated Show resolved Hide resolved
api/protocol/README.md Outdated Show resolved Hide resolved
api/protocol/README.md Outdated Show resolved Hide resolved
api/protocol/README.md Outdated Show resolved Hide resolved
api/protocol/README.md Outdated Show resolved Hide resolved
api/protocol/README.md Outdated Show resolved Hide resolved
api/protocol/README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
cmd/tbcd/README.md Outdated Show resolved Hide resolved
cmd/tbcd/README.md Outdated Show resolved Hide resolved
@joshuasing joshuasing changed the title Add more documentation for TBC and related RPC commands Add more documentation for TBC and related RPC protocol Apr 30, 2024
@joshuasing joshuasing marked this pull request as ready for review May 16, 2024 12:02
@joshuasing joshuasing requested a review from jsorkin24 May 16, 2024 13:15
Copy link
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

Bunch of minor comments.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
api/protocol/README.md Outdated Show resolved Hide resolved

On some linux systems you may need to increase the number of open files allowed (particularly with slower disks) and the maximum stack size. If you run into open file or OOM errors, in the shell you are going to run tbcd, run:
- **`testnet3`** requires approximately 40 GiB of disk space.
- **`mainnet`** requires over 300 GiB of disk space. <!-- XXX: add exact number here -->
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably should fill something in rather than having a XXX note in docs.

Copy link
Contributor

Choose a reason for hiding this comment

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

What do you mean by 'fill something in'? 🤔
I believe this was an estimation from when it was being run as a test for mainnet, so this amount is likely going to change quite a bit before we have a rough number.

Copy link
Contributor

Choose a reason for hiding this comment

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

I pretty much just meant pick a number and go with it since nothing we put in there will be correct for too long anyway

cmd/tbcd/README.md Outdated Show resolved Hide resolved
cmd/tbcd/README.md Show resolved Hide resolved
cmd/tbcd/README.md Show resolved Hide resolved
cmd/tbcd/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

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

Looks great now.

OK

@joshuasing
Copy link
Contributor

Waiting for reviews from @ClaytonNorthey92 and if possible @jsorkin24 before merging.

Copy link
Contributor

@jsorkin24 jsorkin24 left a comment

Choose a reason for hiding this comment

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

Looks great!

@jsorkin24 jsorkin24 merged commit 8015337 into main May 31, 2024
1 check passed
@jsorkin24 jsorkin24 deleted the marco/readme branch May 31, 2024 22:41
web3cryptoguy pushed a commit to web3cryptoguy/heminetwork that referenced this pull request Nov 1, 2024
* Add some more meat to the tbcd README

* Tidy up wording and sections in tbcd readme

* tbcd: add initial RPC docs

* Fix command table formatting

* Move RPC docs into separate files

* Add RPC commands link to tbcd readme

* Add docs for block-headers-by-height, add more details

* Add docs for balance-by-address

* Add docs for utxos-by-address

* Add docs for tx-by-id

* Add a link to tbcapi.go

* Add errors section

* Add table of contents

* Better describe block header merkle_root, timestamp and nonce

Co-authored-by: ClaytonNorthey92 <clayton.northey@gmail.com>

* Add TBC_ADDRESS example and move protocol comment to protocol section

* Add request/response examples for UTXOs by Address

* Update limits information in tbc readme

* Add example request/responses for tx-by-id

* readme-docs: protocol & tbc api, tbcd cmd, and hemi

* Issues Addressed (minor grammar changes)

* Changes Updated

* Remove Styling

* docs: reformat tbcapi readme

* docs: fix inconsistencies in tbcapi readme

* docs: update tbcapi docs and fix a few errors

* docs: fix error in tbcapi docs

* docs: tidy up protocol docs

* Add .DS_Store to gitignore

* docs: tidy up tbcd readme

* docs: clarify minimums for tbcd

* docs: tidy up readme, update parts and fix a few errors

* docs: fix formatting for notes in readme

* docs: feedback from Jane

* readme: specify Go v1.22.2 for building from source

* readme: use `shell` syntax instead of `bash`

* tbcd/readme: specify Go v1.22.2 for building from source

* tbcd/readme: use ./bin/tbcd for help example

* readme: reword services paragraph

* protocol: remove id note from readme

---------

Co-authored-by: Joshua Sing <joshua@bloq.com>
Co-authored-by: ClaytonNorthey92 <clayton.northey@gmail.com>
Co-authored-by: Jane <32560576+jsorkin24@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tbc This is a change to TBC (Tiny Bitcoin) type: documentation This is an improvement or addition to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants