Skip to content

Commit 7a8480d

Browse files
authored
Docs/pruner service documentation (#257)
1 parent d638f27 commit 7a8480d

33 files changed

+2316
-44
lines changed

docs/howto/locallyRunningServices.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Enable or disable components by setting the corresponding option to `1` or `0`.
176176
| Legacy | `-legacy=1` | Legacy API support |
177177
| P2P | `-p2p=1` | Peer-to-peer networking service |
178178
| Propagation | `-propagation=1` | Data propagation service |
179+
| Pruner | `-pruner=1` | UTXO data pruning service |
179180
| RPC | `-rpc=1` | RPC interface service |
180181
| Subtree Validation | `-subtreevalidation=1` | Subtree validation service |
181182
| UTXO Persister | `-utxopersister=1` | UTXO persistence service |

docs/references/projectStructure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ teranode/
4545
│ ├── legacy/ # Legacy services
4646
│ ├── p2p/ # Peer-to-peer networking service
4747
│ ├── propagation/ # Transaction propagation service
48+
│ ├── pruner/ # Pruner service
4849
│ ├── rpc/ # RPC service
4950
│ ├── subtreevalidation/ # Subtree validation service
5051
│ ├── utxopersister/ # UTXO persister service

docs/references/services/blockassembly_reference.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type BlockAssembler struct {
8686
stateChangeCh chan BestBlockInfo
8787

8888
// lastPersistedHeight tracks the last block height processed by block persister
89-
// This is updated via BlockPersisted notifications and used to coordinate with cleanup
89+
// This is updated via BlockPersisted notifications
9090
lastPersistedHeight atomic.Uint32
9191

9292
// currentChainMap maps block hashes to their heights
@@ -110,20 +110,9 @@ type BlockAssembler struct {
110110
// currentRunningState tracks the current operational state
111111
currentRunningState atomic.Value
112112

113-
// cleanupService manages background cleanup tasks
114-
cleanupService cleanup.Service
115-
116-
// cleanupServiceLoaded indicates if the cleanup service has been loaded
117-
cleanupServiceLoaded atomic.Bool
118-
119-
// cleanupQueueCh queues cleanup operations (parent preserve + DAH cleanup) to prevent flooding during catchup
120-
cleanupQueueCh chan uint32
121-
122-
// cleanupQueueWorkerStarted tracks if the cleanup queue worker is running
123-
cleanupQueueWorkerStarted atomic.Bool
124-
125-
// unminedCleanupTicker manages periodic cleanup of old unmined transactions
126-
unminedCleanupTicker *time.Ticker
113+
// Note: Cleanup-related fields (cleanupService, cleanupQueueCh, unminedCleanupTicker)
114+
// were removed in PR #114 when UTXO pruning was extracted to the standalone Pruner service.
115+
// See: docs/topics/services/pruner.md
127116

128117
// cachedCandidate stores the cached mining candidate
129118
cachedCandidate *CachedMiningCandidate

0 commit comments

Comments
 (0)