Commit 9969b10e authored by duanjinfei's avatar duanjinfei

change contract address and start scan block

parent 0c9a5e64
......@@ -3,13 +3,13 @@ httpport = 9000
runmode = dev
mysql = debian-sys-maint:H4khSGKhjhMJogpE@tcp(127.0.0.1:3306)/nftEvent?charset=utf8
rpcUrl = https://eth-mainnet.g.alchemy.com/v2/1GbX5zRzYZHK-ZoFbbI2zQM2WOjafq2s
deployedBlock = 17367500
deployedBlock = 17383340
isSyncLog = true
beforeEndReqUrl = https://meta.hapeprime.com/
httpUrlRegex = ^(http|https):\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(\/\S*)?$
goBackBlockNum = 5
lotteryContract = 0x38BbA41d42D6ED244302a0D7561E98DA806a86DE
lotteryContract = 0x1d99F72939F89a1a0D1d0B40D8cEC07Bf49925ba
secret = 0x2Fc9Ba75f1c78ECc77D1a8fD3BDd6bA83eA68b7e
# redis config
[cache]
......
......@@ -41,6 +41,8 @@ func SyncLogs() {
}
func init() {
startBlock := beego.AppConfig.String("deployedBlock")
cache.Redis.Set(LastSyncBlockKey, startBlock)
var err error
rpc := beego.AppConfig.String("rpcUrl")
deployBlock := beego.AppConfig.String("deployedBlock")
......
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