Skip to content

Variable block confirmation for confirmed balances #1942

@matthiasdebernardini

Description

@matthiasdebernardini

Describe the enhancement

Allow wallet.balance().confirmed to be configurable based on how many blocks it should consider it to be confirmed, 1 by default then 3 or 6. Not sure what else could be useful.

Use case

Wallets designed for large balances should prefer to have this set to a high number, 6 for example.

Additional context

Got posted in bdk_wallet first, @evanlinjin noted that this can be achieved via wallet.local_chain().tip()
bitcoindevkit/bdk_wallet#210

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Type

No type

Projects

Status

Discussion

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions