forked from lthn/blockchain
Improved filtration of PoS-related transactions
This commit is contained in:
parent
59af914d8d
commit
6317a48bb9
2 changed files with 14 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
13
utils/test_api_files/get_recent_txs_and_info.json
Normal file
13
utils/test_api_files/get_recent_txs_and_info.json
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue