Merge pull request #442 from KeefeL/diff_accouts

ignore empty tx in GetDiffAccountsWithScope
This commit is contained in:
KeefeL 2021-10-11 11:56:16 +08:00 committed by GitHub
commit 59d3b537a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1185,7 +1185,10 @@ func (s *PublicBlockChainAPI) GetDiffAccountsWithScope(ctx context.Context, bloc
delete(diffTx.Accounts, account)
}
}
result.Transactions = append(result.Transactions, diffTx)
if len(diffTx.Accounts) != 0 {
result.Transactions = append(result.Transactions, diffTx)
}
}
}