1
0
Fork 0
forked from lthn/blockchain

gui: fixed a transactions' incorrect pagination when a wallet mines PoS and sends rewards to another address

This commit is contained in:
sowle 2020-09-25 17:47:37 +03:00
parent 6f7d07d282
commit 11850a1e05
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
3 changed files with 3 additions and 3 deletions

View file

@ -1037,7 +1037,7 @@ var Wallet = /** @class */ (function () {
};
Wallet.prototype.prepareHistory = function (items) {
for (var i = 0; i < items.length; i++) {
if ((items[i].tx_type === 7 && items[i].is_income) || (items[i].tx_type === 11 && items[i].is_income) || (items[i].amount.eq(0) && items[i].fee.eq(0))) {
if ((items[i].tx_type === 7 && items[i].is_income) || (items[i].tx_type === 11 && items[i].is_income) || (items[i].amount.eq(0) && items[i].fee.eq(0) && !items[i].is_mining)) {
var exists = false;
for (var j = 0; j < this.excluded_history.length; j++) {
if (this.excluded_history[j].tx_hash === items[i].tx_hash) {

File diff suppressed because one or more lines are too long

View file

@ -102,7 +102,7 @@ export class Wallet {
prepareHistory(items: Transaction[]): void {
for (let i = 0; i < items.length; i++) {
if ((items[i].tx_type === 7 && items[i].is_income) || (items[i].tx_type === 11 && items[i].is_income) || (items[i].amount.eq(0) && items[i].fee.eq(0))) {
if ((items[i].tx_type === 7 && items[i].is_income) || (items[i].tx_type === 11 && items[i].is_income) || (items[i].amount.eq(0) && items[i].fee.eq(0) && !items[i].is_mining)) {
let exists = false;
for (let j = 0; j < this.excluded_history.length; j++) {
if (this.excluded_history[j].tx_hash === items[i].tx_hash) {