Commit 91fb857d authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

add ca

parent 283434f0
...@@ -10,6 +10,7 @@ listen = '0.0.0.0:8080' ...@@ -10,6 +10,7 @@ listen = '0.0.0.0:8080'
[chain] [chain]
# rpc # rpc
rpc = 'https://dev.rpc.agicoin.ai' rpc = 'https://dev.rpc.agicoin.ai'
distribution_address = "0xb85D8fD67b286632FbeBdAE36fdA135e97391f0D"
[mysql] [mysql]
host = 'db' host = 'db'
......
...@@ -61,6 +61,7 @@ func (d *Dao) getLogs(beginHeight, endHeight int, topics []string) (logs []types ...@@ -61,6 +61,7 @@ func (d *Dao) getLogs(beginHeight, endHeight int, topics []string) (logs []types
FromBlock: big.NewInt(int64(beginHeight)), FromBlock: big.NewInt(int64(beginHeight)),
ToBlock: big.NewInt(int64(endHeight)), ToBlock: big.NewInt(int64(endHeight)),
Topics: [][]common.Hash{{}}, Topics: [][]common.Hash{{}},
Addresses: []common.Address{common.HexToAddress(d.c.Chain.DistributionAddress)},
} }
for _, topic := range topics { for _, topic := range topics {
q.Topics[0] = append(q.Topics[0], common.HexToHash(topic)) q.Topics[0] = append(q.Topics[0], common.HexToHash(topic))
......
# claim-monitor # claim-monitor
\ No newline at end of file
make docker
docker compose up -d db
docker compose up -d sync api
\ No newline at end of file
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