mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
Cleanup (#121)
* Cleanup common * Cleanup client * Cleanup server * Renamings * Tidy up proto * Update ocean protos * Fixes * Fixes
This commit is contained in:
committed by
GitHub
parent
1650ea5935
commit
6d0d03e316
@@ -31,18 +31,6 @@ func main() {
|
||||
NoTLS: cfg.NoTLS,
|
||||
}
|
||||
|
||||
if cfg.RoundLifetime%512 != 0 {
|
||||
setLifetime := cfg.RoundLifetime
|
||||
cfg.RoundLifetime = cfg.RoundLifetime - (cfg.RoundLifetime % 512)
|
||||
log.Infof("round lifetime must be a multiple of 512, %d -> %d", setLifetime, cfg.RoundLifetime)
|
||||
}
|
||||
|
||||
if cfg.ExitDelay%512 != 0 {
|
||||
setExitDelay := cfg.ExitDelay
|
||||
cfg.ExitDelay = cfg.ExitDelay - (cfg.ExitDelay % 512)
|
||||
log.Infof("exit delay must be a multiple of 512, %d -> %d", setExitDelay, cfg.ExitDelay)
|
||||
}
|
||||
|
||||
appConfig := &appconfig.Config{
|
||||
DbType: cfg.DbType,
|
||||
DbDir: cfg.DbDir,
|
||||
@@ -54,7 +42,7 @@ func main() {
|
||||
WalletAddr: cfg.WalletAddr,
|
||||
MinRelayFee: cfg.MinRelayFee,
|
||||
RoundLifetime: cfg.RoundLifetime,
|
||||
ExitDelay: cfg.ExitDelay,
|
||||
UnilateralExitDelay: cfg.UnilateralExitDelay,
|
||||
}
|
||||
svc, err := grpcservice.NewService(svcConfig, appConfig)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user