mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-10 18:25:17 +00:00
v1.4.4 (#112)
This commit is contained in:
parent
d1079e17f0
commit
24a17ceddb
@ -161,7 +161,7 @@ func (t *Bitmask) Subscribe(opts ...SubOpt) (*Subscription, error) {
|
||||
|
||||
if sub.ch == nil {
|
||||
// apply the default size
|
||||
sub.ch = make(chan *Message, 1000)
|
||||
sub.ch = make(chan *Message, 128)
|
||||
}
|
||||
|
||||
out := make(chan *Subscription, 1)
|
||||
|
@ -260,18 +260,18 @@ func NewPubSub(ctx context.Context, h host.Host, rt PubSubRouter, opts ...Option
|
||||
peerFilter: DefaultPeerFilter,
|
||||
disc: &discover{},
|
||||
maxMessageSize: DefaultMaxMessageSize,
|
||||
peerOutboundQueueSize: 1000,
|
||||
peerOutboundQueueSize: 128,
|
||||
signID: h.ID(),
|
||||
signKey: nil,
|
||||
signPolicy: StrictSign,
|
||||
incoming: make(chan *RPC, 1000),
|
||||
incoming: make(chan *RPC, 128),
|
||||
newPeers: make(chan struct{}, 1),
|
||||
newPeersPend: make(map[peer.ID]struct{}),
|
||||
newPeerStream: make(chan network.Stream),
|
||||
newPeerError: make(chan peer.ID),
|
||||
peerDead: make(chan struct{}, 1),
|
||||
peerDeadPend: make(map[peer.ID]struct{}),
|
||||
deadPeerBackoff: newBackoff(ctx, 1000, BackoffCleanupInterval, MaxBackoffAttempts),
|
||||
deadPeerBackoff: newBackoff(ctx, 128, BackoffCleanupInterval, MaxBackoffAttempts),
|
||||
cancelCh: make(chan *Subscription),
|
||||
getPeers: make(chan *listPeerReq),
|
||||
addSub: make(chan *addSubReq),
|
||||
@ -280,7 +280,7 @@ func NewPubSub(ctx context.Context, h host.Host, rt PubSubRouter, opts ...Option
|
||||
addBitmask: make(chan *addBitmaskReq),
|
||||
rmBitmask: make(chan *rmBitmaskReq),
|
||||
getBitmasks: make(chan *bitmaskReq),
|
||||
sendMsg: make(chan *Message, 1000),
|
||||
sendMsg: make(chan *Message, 128),
|
||||
addVal: make(chan *addValReq),
|
||||
rmVal: make(chan *rmValReq),
|
||||
eval: make(chan func()),
|
||||
|
@ -887,11 +887,11 @@ func logoVersion(width int) string {
|
||||
out += " ''---.. ...---'' ##\n"
|
||||
out += " ''----------''\n"
|
||||
out += " \n"
|
||||
out += " Quilibrium Node - v1.4.3 – Sunset\n"
|
||||
out += " Quilibrium Node - v1.4.4 – Sunset\n"
|
||||
out += " \n"
|
||||
out += " DB Console\n"
|
||||
} else {
|
||||
out = "Quilibrium Node - v1.4.3 – Sunset - DB Console\n"
|
||||
out = "Quilibrium Node - v1.4.4 – Sunset - DB Console\n"
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
@ -51,13 +51,13 @@ type DataConsensusEngine interface {
|
||||
}
|
||||
|
||||
func GetMinimumVersionCutoff() time.Time {
|
||||
return time.Date(2024, time.March, 7, 5, 0, 0, 0, time.UTC)
|
||||
return time.Date(2024, time.March, 10, 2, 0, 0, 0, time.UTC)
|
||||
}
|
||||
|
||||
func GetMinimumVersion() []byte {
|
||||
return []byte{0x01, 0x04, 0x03}
|
||||
return []byte{0x01, 0x04, 0x04}
|
||||
}
|
||||
|
||||
func GetVersion() []byte {
|
||||
return []byte{0x01, 0x04, 0x03}
|
||||
return []byte{0x01, 0x04, 0x04}
|
||||
}
|
||||
|
@ -12,6 +12,9 @@ import (
|
||||
func (a *CeremonyApplication) applyTranscript(
|
||||
transcript *protobufs.CeremonyTranscript,
|
||||
) error {
|
||||
if a.UpdatedTranscript == nil {
|
||||
return errors.Wrap(errors.New("invalid transcript"), "apply transcript")
|
||||
}
|
||||
if len(a.UpdatedTranscript.G1Powers) != len(transcript.G1Powers) {
|
||||
return errors.Wrap(errors.New("invalid g1s"), "apply transcript")
|
||||
}
|
||||
|
@ -523,5 +523,5 @@ func printLogo() {
|
||||
|
||||
func printVersion() {
|
||||
fmt.Println(" ")
|
||||
fmt.Println(" Quilibrium Node - v1.4.3 – Sunset")
|
||||
fmt.Println(" Quilibrium Node - v1.4.4 – Sunset")
|
||||
}
|
||||
|
@ -55,6 +55,11 @@ var BITMASK_ALL = []byte{
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
}
|
||||
|
||||
// While we iterate through these next phases, we're going to aggressively
|
||||
// enforce keeping updated. This will be achieved through announce strings
|
||||
// that will vary with each update
|
||||
var ANNOUNCE = "quilibrium-1.4.4-sunset-horizon"
|
||||
|
||||
func NewBlossomSub(
|
||||
p2pConfig *config.P2PConfig,
|
||||
logger *zap.Logger,
|
||||
@ -97,7 +102,7 @@ func NewBlossomSub(
|
||||
|
||||
kademliaDHT := initDHT(ctx, p2pConfig, logger, h)
|
||||
routingDiscovery := routing.NewRoutingDiscovery(kademliaDHT)
|
||||
util.Advertise(ctx, routingDiscovery, string(BITMASK_ALL))
|
||||
util.Advertise(ctx, routingDiscovery, ANNOUNCE)
|
||||
|
||||
go discoverPeers(p2pConfig, ctx, logger, h, routingDiscovery)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user