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

Testing guide #2357

Merged
merged 4 commits into from
Aug 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clarify
  • Loading branch information
raphjaph committed Aug 27, 2023
commit f628cc86a6630758add209931ca6dcdcdc32c5b0
25 changes: 21 additions & 4 deletions docs/src/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Get a regtest receive address with:
```
ord -r wallet receive
```
Mine 101 blocks with:
Mine 101 blocks (to unlock the coinbase) with:
```
bitcoin-cli generatetoaddress 101 <receive address>
```
Expand All @@ -51,6 +51,23 @@ Testing Recursion
-----------------

When testing out [recursion](../inscriptions/recursion.md), inscribe the
dependencies first. The blocks don't need to be mined yet. The new regtest
`inscriptionId` can then be used to test the recursion. Multiple blocks might
need to be mined depending on how many files are being inscribed.
dependencies first (example with [p5.js](https://p5js.org):
```
ord -r wallet inscribe --fee-rate 1 p5.js
```
This should return a `inscription_id` which you can then reference in your
recursive inscription.

ATTENTION: These ids will be different when inscribing on
mainnet or signet, so be sure to change those in your recursive inscription for
each chain.

Then you can inscribe your recursive inscription with:
```
ord -r wallet inscribe --fee-rate 1 recursive-inscription.html
```
Finally you will have to mine some blocks and start the server:
```
bitcoin-cli generatetoaddress 6 <receive address>
ord -r server
```