Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
claim-monitor
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
Odysseus
claim-monitor
Commits
48ce608b
Commit
48ce608b
authored
May 13, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dfbf224a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
config.toml
config.toml
+1
-1
readme.md
readme.md
+3
-0
sync.go
synchronize/sync.go
+1
-1
No files found.
config.toml
View file @
48ce608b
debug
=
true
debug
=
true
# 单次获取数据量
# 单次获取数据量
batch_size
=
9
9
batch_size
=
9
[server]
[server]
# api服务监听
# api服务监听
...
...
readme.md
View file @
48ce608b
# claim-monitor
# claim-monitor
监控链上claim agc事件,记录领取余额,提供领取金额,领取日志api
### build
### build
...
...
synchronize/sync.go
View file @
48ce608b
...
@@ -71,7 +71,7 @@ func (s *Sync) Start() {
...
@@ -71,7 +71,7 @@ func (s *Sync) Start() {
return
return
}
}
if
(
latestHeight
-
s
.
c
.
BatchSize
)
-
beginHeight
<
s
.
c
.
BatchSize
+
1
{
if
(
latestHeight
-
s
.
c
.
BatchSize
)
-
beginHeight
<
s
.
c
.
BatchSize
+
1
{
time
.
Sleep
(
2
0
*
time
.
Second
)
time
.
Sleep
(
1
0
*
time
.
Second
)
continue
continue
}
}
s
.
SyncClaimed
(
beginHeight
-
s
.
c
.
BatchSize
,
endHeight
-
s
.
c
.
BatchSize
)
s
.
SyncClaimed
(
beginHeight
-
s
.
c
.
BatchSize
,
endHeight
-
s
.
c
.
BatchSize
)
...
...
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