Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tron-explore
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张建华@五瓣科技
tron-explore
Commits
90225ca1
Commit
90225ca1
authored
Nov 18, 2020
by
jianhua.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
块抓取微调
parent
a54d2be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
LastBlockServiceImpl.java
...wuban/tron/explore/service/impl/LastBlockServiceImpl.java
+2
-1
No files found.
src/main/java/com/wuban/tron/explore/service/impl/LastBlockServiceImpl.java
View file @
90225ca1
...
...
@@ -112,7 +112,8 @@ public class LastBlockServiceImpl implements LastBlockService {
bg
=
BigDecimalUtil
.
getAdd
(
new
BigDecimal
(
lastBlock
.
getCurBlockNum
()),
new
BigDecimal
(
Constant
.
FIFTY_THOUSAND
));
}
else
{
startNum
=
Long
.
parseLong
(
redisBlockNum
);
if
(
startNum
-
Constant
.
THRESHOLD
>
0
)
{
long
size
=
this
.
stringRedisTemplate
.
opsForList
().
size
(
Constant
.
BLOCK_NUM_LIST_KEY
);
if
(
size
-
Constant
.
THRESHOLD
>
0
)
{
return
;
}
bg
=
BigDecimalUtil
.
getAdd
(
new
BigDecimal
(
redisBlockNum
),
new
BigDecimal
(
Constant
.
FIFTY_THOUSAND
));
...
...
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