Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nft-event
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
duanjinfei
nft-event
Commits
9969b10e
Commit
9969b10e
authored
Jun 01, 2023
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change contract address and start scan block
parent
0c9a5e64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app.conf
conf/app.conf
+2
-2
sync.go
sync/sync.go
+2
-0
No files found.
conf/app.conf
View file @
9969b10e
...
@@ -3,13 +3,13 @@ httpport = 9000
...
@@ -3,13 +3,13 @@ httpport = 9000
runmode
=
dev
runmode
=
dev
mysql
=
debian
-
sys
-
maint
:
H4khSGKhjhMJogpE
@
tcp
(
127
.
0
.
0
.
1
:
3306
)/
nftEvent
?
charset
=
utf8
mysql
=
debian
-
sys
-
maint
:
H4khSGKhjhMJogpE
@
tcp
(
127
.
0
.
0
.
1
:
3306
)/
nftEvent
?
charset
=
utf8
rpcUrl
=
https
://
eth
-
mainnet
.
g
.
alchemy
.
com
/
v2
/
1
GbX5zRzYZHK
-
ZoFbbI2zQM2WOjafq2s
rpcUrl
=
https
://
eth
-
mainnet
.
g
.
alchemy
.
com
/
v2
/
1
GbX5zRzYZHK
-
ZoFbbI2zQM2WOjafq2s
deployedBlock
=
173
6750
0
deployedBlock
=
173
8334
0
isSyncLog
=
true
isSyncLog
=
true
beforeEndReqUrl
=
https
://
meta
.
hapeprime
.
com
/
beforeEndReqUrl
=
https
://
meta
.
hapeprime
.
com
/
httpUrlRegex
= ^(
http
|
https
):\/\/[
a
-
zA
-
Z0
-
9
\-\.]+\.[
a
-
zA
-
Z
]{
2
,}(\/\
S
*)?$
httpUrlRegex
= ^(
http
|
https
):\/\/[
a
-
zA
-
Z0
-
9
\-\.]+\.[
a
-
zA
-
Z
]{
2
,}(\/\
S
*)?$
goBackBlockNum
=
5
goBackBlockNum
=
5
lotteryContract
=
0
x
38BbA41d42D6ED244302a0D7561E98DA806a86DE
lotteryContract
=
0
x
1d99F72939F89a1a0D1d0B40D8cEC07Bf49925ba
secret
=
0
x2Fc9Ba75f1c78ECc77D1a8fD3BDd6bA83eA68b7e
secret
=
0
x2Fc9Ba75f1c78ECc77D1a8fD3BDd6bA83eA68b7e
# redis config
# redis config
[
cache
]
[
cache
]
...
...
sync/sync.go
View file @
9969b10e
...
@@ -41,6 +41,8 @@ func SyncLogs() {
...
@@ -41,6 +41,8 @@ func SyncLogs() {
}
}
func
init
()
{
func
init
()
{
startBlock
:=
beego
.
AppConfig
.
String
(
"deployedBlock"
)
cache
.
Redis
.
Set
(
LastSyncBlockKey
,
startBlock
)
var
err
error
var
err
error
rpc
:=
beego
.
AppConfig
.
String
(
"rpcUrl"
)
rpc
:=
beego
.
AppConfig
.
String
(
"rpcUrl"
)
deployBlock
:=
beego
.
AppConfig
.
String
(
"deployedBlock"
)
deployBlock
:=
beego
.
AppConfig
.
String
(
"deployedBlock"
)
...
...
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