Skip to content

Remove unneeded accountName param from nextAddress#2537

Open
jholdstock wants to merge 1 commit intodecred:masterfrom
jholdstock:rmaccnm
Open

Remove unneeded accountName param from nextAddress#2537
jholdstock wants to merge 1 commit intodecred:masterfrom
jholdstock:rmaccnm

Conversation

@jholdstock
Copy link
Copy Markdown
Member

@jholdstock jholdstock commented Sep 12, 2025

To ensure nextAddress is returning valid and helpful information, retrieve the real account name from the database rather than just blindly returning whatever account name was passed as a param (this was often a fake/placeholder value anyway).

@jholdstock jholdstock force-pushed the rmaccnm branch 2 times, most recently from 7e65e0e to 03c590c Compare September 14, 2025 15:58
@jholdstock jholdstock force-pushed the rmaccnm branch 2 times, most recently from ae8933c to b562abf Compare October 27, 2025 10:20
@jrick
Copy link
Copy Markdown
Member

jrick commented Oct 29, 2025

Unsure about this after a quick glance. AccountName() will open a db view, but we might already be in a db update.

@jholdstock
Copy link
Copy Markdown
Member Author

I've opened #2561 as an alternative to this PR. Personally I prefer that solution and think this one should be closed, but open to discussion if you have different ideas.

@jholdstock
Copy link
Copy Markdown
Member Author

Now making use of the DB txn if it exists.

To ensure nextAddress is returning valid and helpful information,
retrieve the real account name from the database rather than just
blindly returning whatever account name was passed as a param (this
was often a fake/placeholder value anyway).
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