Skip to content

Commit 978e9da

Browse files
committed
Website/tx/coinbase: add links to actual files and methods
1 parent 0240512 commit 978e9da

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

website/docs/developers/transactions/coinbase.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transact
4949

5050
### First pass
5151

52-
During the first pass (`apply_transaction_first_pass`), the coinbase:
52+
During the first pass
53+
([`apply_transaction_first_pass`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs#L190)),
54+
the coinbase:
5355

5456
1. **Applies coinbase reward**
5557
- Adds coinbase amount to receiver's balance
@@ -62,7 +64,7 @@ During the first pass (`apply_transaction_first_pass`), the coinbase:
6264
- Creates fee transfer receiver account if needed
6365

6466
**Implementation:**
65-
`ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs`
67+
[`ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs)
6668

6769
### No fee payment
6870

@@ -286,7 +288,7 @@ and may change through protocol upgrades.
286288
## Testing
287289

288290
Comprehensive tests are available in
289-
`tests/test_transaction_logic_first_pass_coinbase.rs`:
291+
[`ledger/tests/test_transaction_logic_first_pass_coinbase.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/tests/test_transaction_logic_first_pass_coinbase.rs):
290292

291293
- `test_apply_coinbase_without_fee_transfer` - Basic coinbase reward
292294
- `test_apply_coinbase_with_fee_transfer` - Coinbase with SNARK work payment
@@ -296,10 +298,12 @@ Comprehensive tests are available in
296298

297299
## Related files
298300

299-
- `ledger/src/scan_state/transaction_logic/mod.rs` - Coinbase type definitions
300-
- `ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs` -
301+
- [`ledger/src/scan_state/transaction_logic/mod.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transaction_logic/mod.rs) -
302+
Coinbase type definitions
303+
- [`ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/src/scan_state/transaction_logic/transaction_partially_applied.rs) -
301304
Coinbase application logic
302-
- `tests/test_transaction_logic_first_pass_coinbase.rs` - Coinbase tests
305+
- [`ledger/tests/test_transaction_logic_first_pass_coinbase.rs`](https://github.com/o1-labs/mina-rust/blob/develop/ledger/tests/test_transaction_logic_first_pass_coinbase.rs) -
306+
Coinbase tests
303307

304308
## See also
305309

0 commit comments

Comments
 (0)