Commit 2e93782d authored by chenqikuai's avatar chenqikuai

fix some bug

parent b83ac0f1
......@@ -29,9 +29,6 @@
<div class="my-benifit">
{{ $route.query.height | filterBlockReward }}
</div>
<div class="my-title">
{{ $route.query.height | filterVotePackReward }}
</div>
</div>
<div class="right flex-shrink-0">
<div class="my-title">
......
......@@ -64,12 +64,13 @@ interface iRetTypeOfGetConItem {
export const getConsensusList = (txs: any[]): iRetTypeOfGetConItem[] => {
const logsList: any[] = [];
txs.forEach((tx) => {
logsList.push(...tx.receipt.logs);
tx && tx.receipt && tx.receipt.logs && logsList.push(...tx.receipt.logs);
});
return logsList
.filter((i) => i.ty === 8)
.reduce<iRetTypeOfGetConItem[]>((pi, ci) => {
if (!ci.log.current || !ci.log.prev) return pi;
const reward = ci.log.current.balance - ci.log.prev.balance;
if (reward > 0.25 * 1e8) {
//筛选出打包地址
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment