Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wallet] Kill Accounts #1911

Merged
merged 1 commit into from
Oct 12, 2020
Merged

Conversation

Fuzzbawls
Copy link
Collaborator

This finally removes the last remnants of the account API, which was
deprecated in v4.2.0 in favor of a new label API.

Up until this commit, it was possible to still use the old account API
by starting the wallet with -deprecatedrpc=account, but this
functionality is now removed.

Closes #1706

@Fuzzbawls Fuzzbawls added this to the 5.0.0 milestone Oct 11, 2020
@Fuzzbawls Fuzzbawls self-assigned this Oct 11, 2020
" \"amount\": x.xxx, (numeric) The amount in PIV. This is negative for the 'send' category, and for the\n"
" 'move' category for moves outbound. It is positive for the 'receive' category,\n"
" and for the 'move' category for inbound funds.\n"
" \"category\":\"send|receive\", (string) The transaction category.\n"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are actually other possible categories (orphan, immature, generate).
We, also, probably want to remove the mention to the move category in the previous field (address), now that "accounting entries" are a thing of the past.

This finally removes the last remnants of the account API, which was
deprecated in v4.2.0 in favor of a new label API.

Up until this commit, it was possible to still use the old account API
by starting the wallet with `-deprecatedrpc=account`, but this
functionality is now removed.
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK c6634c0

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good cleanup ☕ , utACK c6634c0 .
Left a comment for a future PR.

if (involvesWatchonly || (::IsMine(*pwalletMain, r.destination) & ISMINE_WATCH_ONLY))
entry.pushKV("involvesWatchonly", true);
MaybePushAddress(entry, r.destination);
if (wtx.IsCoinBase()) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for this PR but this should be if (wtx.IsCoinBase() || wtx.IsCoinstake()) {

@furszy furszy merged commit c9f16d0 into PIVX-Project:master Oct 12, 2020
@Fuzzbawls Fuzzbawls added the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Dec 14, 2020
@random-zebra random-zebra removed the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Tracking] Remove wallet 'account' API
3 participants