Skip to content

Commit 3039aef

Browse files
committed
Reflect doc enhancements
1 parent a58c911 commit 3039aef

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

kernel/chainstate_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (cm *ChainstateManager) GetBlockTreeEntryByHash(blockHash BlockHashLike) *B
123123

124124
// ImportBlocks triggers a reindex and/or imports block files from the filesystem.
125125
//
126-
// This starts a reindex if the wipe_dbs option was previously set via ChainstateManagerOptions.
126+
// This starts a reindex if the wipe options were previously set via ChainstateManagerOptions.
127127
// It can also import existing block files from the specified filesystem paths.
128128
//
129129
// Parameters:

kernel/coin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (c *coinApi) GetOutput() *TransactionOutputView {
6262
return newTransactionOutputView(check(ptr))
6363
}
6464

65-
// ConfirmationHeight returns the block height at which this coin's prevout was created.
65+
// ConfirmationHeight returns the block height where the transaction that created this coin was included in.
6666
func (c *coinApi) ConfirmationHeight() uint32 {
6767
return uint32(C.btck_coin_confirmation_height(c.ptr))
6868
}

kernel/context_options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ func (contextOptionsCFuncs) destroy(ptr unsafe.Pointer) {
3636
// ContextOptions holds options for creating a new kernel context.
3737
//
3838
// Once a kernel Context has been created from these options, they may be destroyed.
39-
// The options hold the notification callbacks as well as the selected chain type
40-
// until they are passed to the context. If no options are configured, the context
41-
// will be instantiated with no callbacks and for mainnet.
39+
// The options hold the notification callbacks, validation interface callbacks, as well
40+
// as the selected chain type until they are passed to the context. If no options are
41+
// configured, the context will be instantiated with no callbacks and for mainnet.
4242
type ContextOptions struct {
4343
*uniqueHandle
4444
}

kernel/logging_connection.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,25 @@ func SetLoggingOptions(options LoggingOptions) {
8484

8585
// DisableLogging permanently disables the global internal logger.
8686
//
87-
// No log messages will be buffered internally after this is called, and the buffer
88-
// is cleared. This function should only be called once and is not thread-safe or
89-
// re-entry safe.
87+
// Log messages will be buffered until this function is called, or a logging connection
88+
// is created. This must not be called while a logging connection already exists.
89+
// This function should only be called once and is not thread-safe or re-entry safe.
9090
func DisableLogging() {
9191
C.btck_logging_disable()
9292
}
9393

9494
// AddLogLevelCategory sets the log level for a specific category.
9595
//
96-
// This changes a global setting and affects all existing LoggingConnection instances.
96+
// This does not enable the selected categories. Use EnableLogCategory to
97+
// start logging from a specific, or all categories. This changes a global
98+
// setting and will override settings for all existing LoggingConnection instances.
9799
//
98100
// Parameters:
99-
// - category: Log category to configure (or LogAll for all categories)
101+
// - category: If LogAll is chosen, sets both the global fallback log level
102+
// used by all categories that don't have a specific level set, and also
103+
// sets the log level for messages logged with the LogAll category itself.
104+
// For any other category, sets a category-specific log level that overrides
105+
// the global fallback for that category only.
100106
// - level: Minimum log level (Trace, Debug, or Info)
101107
//
102108
// Messages at the specified level and above will be logged for the category.

kernel/transaction_out_point.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (t *transactionOutPointApi) Copy() *TransactionOutPoint {
5151
return newTransactionOutPoint(t.ptr, false)
5252
}
5353

54-
// GetIndex returns the output position from the out point.
54+
// GetIndex returns the output position from the transaction out point.
5555
func (t *transactionOutPointApi) GetIndex() uint32 {
5656
return uint32(C.btck_transaction_out_point_get_index(t.ptr))
5757
}

0 commit comments

Comments
 (0)