mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-03 22:13:12 +00:00
Expose config and node via getters
This commit is contained in:
parent
1b40e358c8
commit
5a0da42ca5
@ -51,7 +51,7 @@ logScope:
|
||||
|
||||
type
|
||||
CodexServer* = ref object
|
||||
config*: CodexConf
|
||||
config: CodexConf
|
||||
restServer: RestServerRef
|
||||
codexNode: CodexNodeRef
|
||||
repoStore: RepoStore
|
||||
@ -61,6 +61,12 @@ type
|
||||
CodexPrivateKey* = libp2p.PrivateKey # alias
|
||||
EthWallet = ethers.Wallet
|
||||
|
||||
func config*(self: CodexServer): CodexConf =
|
||||
return self.config
|
||||
|
||||
func node*(self: CodexServer): CodexNodeRef =
|
||||
return self.codexNode
|
||||
|
||||
proc waitForSync(provider: Provider): Future[void] {.async.} =
|
||||
var sleepTime = 1
|
||||
trace "Checking sync state of Ethereum provider..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user