Skip to content

chore(libbitcoinkernel-sys): note nonnull contract on btck_LogCallback#202

Closed
alexanderwiederin wants to merge 1 commit into
sedited:masterfrom
alexanderwiederin:docs-log_callback
Closed

chore(libbitcoinkernel-sys): note nonnull contract on btck_LogCallback#202
alexanderwiederin wants to merge 1 commit into
sedited:masterfrom
alexanderwiederin:docs-log_callback

Conversation

@alexanderwiederin

Copy link
Copy Markdown
Collaborator

No description provided.

@alexanderwiederin alexanderwiederin added the no-changelog This PR does not require a CHANGELOG entry (e.g. docs, tests, CI changes). label Jul 8, 2026
@sedited

sedited commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Why do we need to comment about this in the bindings? Did you run into a potential bug? I do wonder if there would be a better way to express a non-null pointer argument in general in the bindings.

@alexanderwiederin

Copy link
Copy Markdown
Collaborator Author

Why do we need to comment about this in the bindings? Did you run into a potential bug?

Didn't find a bug, but figured this would be worth pointing out to users of the raw bindings after looking at these more closely implementing the script tracer feature.

I do wonder if there would be a better way to express a non-null pointer argument in general in the bindings.

I agree. I think we can just remove the Option<...> for these non-null arguments.

@alexanderwiederin

Copy link
Copy Markdown
Collaborator Author

Addressed in #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR does not require a CHANGELOG entry (e.g. docs, tests, CI changes).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants