1
0
Fork 0
forked from lthn/blockchain

Improved filtration of PoS-related transactions

This commit is contained in:
cryptozoidberg 2022-06-13 21:46:32 +02:00
parent 59af914d8d
commit 6317a48bb9
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 14 additions and 1 deletions

View file

@ -3285,7 +3285,7 @@ bool wallet2::is_consolidating_transaction(const wallet_public::wallet_transfer_
for (uint64_t r : wti.td.rcv){income += r;}
uint64_t spend = 0;
for (uint64_t s : wti.td.spn) { spend += s; }
if (get_tx_fee(wti.tx) + spend == income)
if (get_tx_fee(wti.tx) + income == spend)
return true;
}
return false;

View file

@ -0,0 +1,13 @@
{
"jsonrpc": "2.0",
"id": 0,
"method": "get_recent_txs_and_info",
"params": {
"offset": 0,
"update_provision_info": true,
"exclude_mining_txs": true,
"count": 100,
"order": "FROM_BEGIN_TO_END",
"exclude_unconfirmed": true
}
}