Skip to content

wallet: keep a receive address until it receives - #148

Open
octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:upstream-reuse-address
Open

wallet: keep a receive address until it receives#148
octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:upstream-reuse-address

Conversation

@octobocto

@octobocto octobocto commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

get_new_address derives and stores a new address on every call, and build_block_template calls it on every poll.

A node that ran eleven days held 121 204 addresses for two coins, filled its 10MB wallet map, and then failed every write with MDB_MAP_FULL. get_new_address now answers with the current address, and derives the next one only after that address receives.

@octobocto
octobocto force-pushed the upstream-reuse-address branch from 13c5af2 to eaa85d3 Compare September 5, 2026 06:17
@octobocto octobocto changed the title wallet: reuse the receive address until it receives wallet: keep a receive address until it receives Sep 5, 2026
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.

1 participant