forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(qt): identify masternode transactions in history #7595
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
Merged
PastaPastaPasta
merged 2 commits into
dashpay:develop
from
PastaPastaPasta:feat/qt-provider-transaction-history
Aug 15, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| GUI changes | ||
| ----------- | ||
|
|
||
| - Dash-Qt now labels masternode registration and update transactions in the | ||
| transaction history as **Masternode Registration** and **Masternode Update** | ||
| instead of generic "Payment to yourself" rows. A new **Masternode** filter | ||
| shows only these operations. The amount shown is the transaction's net effect | ||
| on your wallet (for example, the network fee on a self-funded registration). | ||
| (#7595) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| // Copyright (c) 2026 The Dash Core developers | ||
| // Distributed under the MIT software license, see the accompanying | ||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
|
||
| #ifndef BITCOIN_QT_TEST_PROVIDERTRANSACTIONTESTS_H | ||
| #define BITCOIN_QT_TEST_PROVIDERTRANSACTIONTESTS_H | ||
|
|
||
| #include <QObject> | ||
|
|
||
| namespace interfaces { | ||
| class Node; | ||
| } // namespace interfaces | ||
|
|
||
| class ProviderTransactionTests : public QObject | ||
| { | ||
| Q_OBJECT | ||
|
|
||
| public: | ||
| explicit ProviderTransactionTests(interfaces::Node& node) : | ||
| m_node(node) | ||
| { | ||
| } | ||
|
|
||
| private Q_SLOTS: | ||
| void transactionTypeSettingCompatibility_data(); | ||
| void transactionTypeSettingCompatibility(); | ||
| void providerTransactionHistory(); | ||
|
|
||
| private: | ||
| interfaces::Node& m_node; | ||
| }; | ||
|
|
||
| #endif // BITCOIN_QT_TEST_PROVIDERTRANSACTIONTESTS_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,6 +99,8 @@ TransactionView::TransactionView(QWidget* parent) : | |
| typeWidget->addItem(tr("Data Transaction"), TransactionFilterProxy::TYPE(TransactionRecord::DataTransaction)); | ||
| typeWidget->addItem(tr("Dust Receive"), TransactionFilterProxy::TYPE(TransactionRecord::DustReceive)); | ||
| typeWidget->addItem(tr("Other"), TransactionFilterProxy::TYPE(TransactionRecord::Other)); | ||
| typeWidget->addItem(tr("Masternode"), TransactionFilterProxy::TYPE(TransactionRecord::MasternodeRegistration) | | ||
| TransactionFilterProxy::TYPE(TransactionRecord::MasternodeUpdate)); | ||
|
Comment on lines
+102
to
+103
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see #7612 |
||
| typeWidget->setCurrentIndex(settings.value("transactionType").toInt()); | ||
|
|
||
| hlayout->addWidget(typeWidget); | ||
|
|
@@ -790,10 +792,14 @@ void TransactionView::updateCoinJoinVisibility() | |
| int idx = fEnabled ? 0 : 1; | ||
| chooseType(idx); | ||
| typeWidget->setCurrentIndex(idx); | ||
| // Hide all CoinJoin related filters | ||
| // Hide all CoinJoin related filters by value so this stays correct when entries are reordered. | ||
| QListView* typeList = qobject_cast<QListView*>(typeWidget->view()); | ||
| std::vector<int> vecRows{4, 5, 6, 7, 8}; | ||
| for (auto nRow : vecRows) { | ||
| typeList->setRowHidden(nRow, !fEnabled); | ||
| for (const quint32 type_filter : {TransactionFilterProxy::TYPE(TransactionRecord::CoinJoinSend), | ||
| TransactionFilterProxy::TYPE(TransactionRecord::CoinJoinMakeCollaterals), | ||
| TransactionFilterProxy::TYPE(TransactionRecord::CoinJoinCreateDenominations), | ||
| TransactionFilterProxy::TYPE(TransactionRecord::CoinJoinMixing), | ||
| TransactionFilterProxy::TYPE(TransactionRecord::CoinJoinCollateralPayment)}) { | ||
| const int row = typeWidget->findData(type_filter); | ||
| if (row >= 0) typeList->setRowHidden(row, !fEnabled); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.