Skip to content
Snippets Groups Projects
Commit 428516f0 authored by benjamin's avatar benjamin
Browse files

made lower paralell regs unique to js and hacked increase in num registrations...

made lower paralell regs unique to js and hacked increase in num registrations into new channel manager
parent e1725846
No related branches found
No related tags found
2 merge requests!510Release,!431made lower paralell regs unique to js and hacked increase in num registrations...
......@@ -11,6 +11,7 @@ import (
"crypto/ed25519"
"encoding/base64"
"encoding/json"
jww "github.com/spf13/jwalterweatherman"
"sync"
"time"
......@@ -234,6 +235,16 @@ func NewChannelsManagerGoEventModel(cmixID int, privateIdentity []byte,
return nil, err
}
// fixme: remove this, make it called by the javascript
// hack to get to release late at night
go func() {
time.Sleep(3 * time.Second)
localErr := user.IncreaseParallelNodeRegistration(13)
if localErr != nil {
jww.ERROR.Printf(localErr.Error())
}
}()
// Add channel to singleton and return
return channelManagerTrackerSingleton.make(m), nil
}
......@@ -267,6 +278,16 @@ func LoadChannelsManagerGoEventModel(cmixID int, storageTag string,
return nil, err
}
// fixme: remove this, make it called by the javascript
// hack to get to release late at night
go func() {
time.Sleep(3 * time.Second)
localErr := user.IncreaseParallelNodeRegistration(13)
if localErr != nil {
jww.ERROR.Printf(localErr.Error())
}
}()
// Add channel to singleton and return
return channelManagerTrackerSingleton.make(m), nil
}
......
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
// This file is compiled for all architectures except WebAssembly.
//go:build !js || !wasm
package cmix
const defaultParallelNodeRegistration = 20
......@@ -100,7 +100,7 @@ func GetDefaultParams() Params {
MaxCheckedRounds: 500,
RegNodesBufferLen: 1000,
NetworkHealthTimeout: 15 * time.Second,
ParallelNodeRegistrations: 2,
ParallelNodeRegistrations: defaultParallelNodeRegistration,
KnownRoundsThreshold: 1500, // 5 rounds/sec * 60 sec/min * 5 min
FastPolling: true,
VerboseRoundTracking: false,
......
package rounds
const defaultParallelNodeRegistration = 2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment