Skip to content

Commit

Permalink
Port transaction record
Browse files Browse the repository at this point in the history
  • Loading branch information
timemarkovqtum committed Apr 19, 2024
1 parent 0ab2541 commit 86d0551
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_RC, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2023)
define(_COPYRIGHT_YEAR, 2024)
define(_COPYRIGHT_HOLDERS,[The %s Developers])
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Qtum Core]])
AC_INIT([Qtum Core],m4_join([.], _CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MINOR, _CLIENT_VERSION_BUILD)m4_if(_CLIENT_VERSION_RC, [0], [], [rc]_CLIENT_VERSION_RC),[https://github.com/qtumproject/qtum/issues],[qtum],[https://qtum.org/])
Expand Down
14 changes: 13 additions & 1 deletion src/qt/transactionrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,19 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
}
}

if (fAllFromMe || !any_from_me) {

if(nNet < 0 && wtx.has_create_or_call && (fAllFromMe || !any_from_me)) {
TransactionRecord sub(hash, nTime);
sub.idx = 0;
sub.credit = nNet;
sub.type = TransactionRecord::ContractSend;

// Use the same destination address as in the contract RPCs
sub.address = toStringHash160(wtx.tx_sender_key);

parts.append(sub);
}
else if (fAllFromMe || !any_from_me) {
for (const isminetype mine : wtx.txout_is_mine)
{
if(mine & ISMINE_WATCH_ONLY) involvesWatchAddress = true;
Expand Down

0 comments on commit 86d0551

Please sign in to comment.