mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 15:56:45 +01:00
fix: loading systemAddress
This commit is contained in:
parent
94f1f3bc2c
commit
8b14445c88
@ -9,10 +9,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
systemAddress = ko.MustString("chain.system_address")
|
systemAddress string
|
||||||
)
|
)
|
||||||
|
|
||||||
func initAddressFilter() filter.Filter {
|
func initAddressFilter() filter.Filter {
|
||||||
|
// TODO: Temporary shortcut
|
||||||
|
systemAddress = ko.MustString("chain.system_address")
|
||||||
|
|
||||||
// TODO: Bootstrap addresses from smart contract
|
// TODO: Bootstrap addresses from smart contract
|
||||||
// TODO: Add route to update cache
|
// TODO: Add route to update cache
|
||||||
cache := &sync.Map{}
|
cache := &sync.Map{}
|
||||||
@ -24,7 +27,6 @@ func initAddressFilter() filter.Filter {
|
|||||||
return filter.NewAddressFilter(filter.AddressFilterOpts{
|
return filter.NewAddressFilter(filter.AddressFilterOpts{
|
||||||
Cache: cache,
|
Cache: cache,
|
||||||
Logg: lo,
|
Logg: lo,
|
||||||
// TODO: Temporary shortcut
|
|
||||||
SystemAddress: systemAddress,
|
SystemAddress: systemAddress,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user