Skip to content

Change registered_scripts from Vec to HashSet#18

Merged
febyeji merged 2 commits intofebyeji:add-cbf-chain-sourcefrom
randomlogin:cbf-scripts-hashmap
May 8, 2026
Merged

Change registered_scripts from Vec to HashSet#18
febyeji merged 2 commits intofebyeji:add-cbf-chain-sourcefrom
randomlogin:cbf-scripts-hashmap

Conversation

@randomlogin
Copy link
Copy Markdown

This is done mostly for the de-duplication purpose, because each time channel_monitor reloads (e.g. on restart) it would populate it again, which means we could have thousands of same entries if the node restarts often.

This PR lives ontop of #17

Previously we could miss our address e.g. when we restore the wallet
from the same seed.
@febyeji febyeji merged commit 43d908f into febyeji:add-cbf-chain-source May 8, 2026
14 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants