Commit 2e93782d authored by chenqikuai's avatar chenqikuai

fix some bug

parent b83ac0f1
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
<div class="my-benifit"> <div class="my-benifit">
{{ $route.query.height | filterBlockReward }} {{ $route.query.height | filterBlockReward }}
</div> </div>
<div class="my-title">
{{ $route.query.height | filterVotePackReward }}
</div>
</div> </div>
<div class="right flex-shrink-0"> <div class="right flex-shrink-0">
<div class="my-title"> <div class="my-title">
......
...@@ -64,12 +64,13 @@ interface iRetTypeOfGetConItem { ...@@ -64,12 +64,13 @@ interface iRetTypeOfGetConItem {
export const getConsensusList = (txs: any[]): iRetTypeOfGetConItem[] => { export const getConsensusList = (txs: any[]): iRetTypeOfGetConItem[] => {
const logsList: any[] = []; const logsList: any[] = [];
txs.forEach((tx) => { txs.forEach((tx) => {
logsList.push(...tx.receipt.logs); tx && tx.receipt && tx.receipt.logs && logsList.push(...tx.receipt.logs);
}); });
return logsList return logsList
.filter((i) => i.ty === 8) .filter((i) => i.ty === 8)
.reduce<iRetTypeOfGetConItem[]>((pi, ci) => { .reduce<iRetTypeOfGetConItem[]>((pi, ci) => {
if (!ci.log.current || !ci.log.prev) return pi;
const reward = ci.log.current.balance - ci.log.prev.balance; const reward = ci.log.current.balance - ci.log.prev.balance;
if (reward > 0.25 * 1e8) { 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