Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
ycc-website
Commits
2e93782d
Commit
2e93782d
authored
Feb 23, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some bug
parent
b83ac0f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
LeftBox.vue
...components/pc/BlockChainBrowser/BlockOverview/LeftBox.vue
+0
-3
consensus.ts
src/utils/consensus.ts
+2
-1
No files found.
src/components/pc/BlockChainBrowser/BlockOverview/LeftBox.vue
View file @
2e93782d
...
@@ -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"
>
...
...
src/utils/consensus.ts
View file @
2e93782d
...
@@ -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
*
1
e8
)
{
if
(
reward
>
0.25
*
1
e8
)
{
//筛选出打包地址
//筛选出打包地址
...
...
chenqikuai
@chenqikuai
mentioned in commit
748f7ae1
·
Mar 03, 2022
mentioned in commit
748f7ae1
mentioned in commit 748f7ae18ac2f8eb14ee7c2865eaea786342a520
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment