mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-24 07:35:19 +00:00
v1.2.9 (#51)
This commit is contained in:
parent
bfbd35aae0
commit
53d4664ab7
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ vouchers/
|
||||
ceremony-client
|
||||
.config*
|
||||
.DS_Store
|
||||
*.mprof
|
||||
|
@ -886,11 +886,11 @@ func logoVersion(width int) string {
|
||||
out += " ####################################### ########\n"
|
||||
out += " ############################# ##\n"
|
||||
out += " \n"
|
||||
out += " Quilibrium Node - v1.2.8 – Dawn\n"
|
||||
out += " Quilibrium Node - v1.2.9 – Dawn\n"
|
||||
out += " \n"
|
||||
out += " DB Console\n"
|
||||
} else {
|
||||
out = "Quilibrium Node - v1.2.8 – Dawn - DB Console\n"
|
||||
out = "Quilibrium Node - v1.2.9 – Dawn - DB Console\n"
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
@ -414,17 +414,17 @@ func (e *CeremonyDataClockConsensusEngine) runLoop() {
|
||||
e.frameChan <- latestFrame
|
||||
}()
|
||||
|
||||
var nextFrame *protobufs.ClockFrame
|
||||
if nextFrame, err = e.prove(latestFrame); err != nil {
|
||||
e.logger.Error("could not prove", zap.Error(err))
|
||||
e.state = consensus.EngineStateCollecting
|
||||
continue
|
||||
}
|
||||
|
||||
if bytes.Equal(
|
||||
e.frameProverTrie.FindNearest(e.provingKeyAddress).External.Key,
|
||||
e.provingKeyAddress,
|
||||
) {
|
||||
var nextFrame *protobufs.ClockFrame
|
||||
if nextFrame, err = e.prove(latestFrame); err != nil {
|
||||
e.logger.Error("could not prove", zap.Error(err))
|
||||
e.state = consensus.EngineStateCollecting
|
||||
continue
|
||||
}
|
||||
|
||||
e.dataTimeReel.Insert(nextFrame)
|
||||
|
||||
if err = e.publishProof(nextFrame); err != nil {
|
||||
@ -447,14 +447,14 @@ func (e *CeremonyDataClockConsensusEngine) runLoop() {
|
||||
e.frameChan <- latestFrame
|
||||
}()
|
||||
|
||||
var nextFrame *protobufs.ClockFrame
|
||||
if nextFrame, err = e.prove(latestFrame); err != nil {
|
||||
e.logger.Error("could not prove", zap.Error(err))
|
||||
e.state = consensus.EngineStateCollecting
|
||||
continue
|
||||
}
|
||||
|
||||
if e.frameProverTrie.Contains(e.provingKeyAddress) {
|
||||
var nextFrame *protobufs.ClockFrame
|
||||
if nextFrame, err = e.prove(latestFrame); err != nil {
|
||||
e.logger.Error("could not prove", zap.Error(err))
|
||||
e.state = consensus.EngineStateCollecting
|
||||
continue
|
||||
}
|
||||
|
||||
e.dataTimeReel.Insert(nextFrame)
|
||||
|
||||
if err = e.publishProof(nextFrame); err != nil {
|
||||
|
@ -206,7 +206,8 @@ func (e *CeremonyDataClockConsensusEngine) sync(
|
||||
&protobufs.ClockFramesRequest{
|
||||
Filter: e.filter,
|
||||
FromFrameNumber: from,
|
||||
ToFrameNumber: from + 8,
|
||||
ToFrameNumber: maxFrame,
|
||||
ParentSelector: latest.ParentSelector,
|
||||
},
|
||||
grpc.MaxCallRecvMsgSize(600*1024*1024),
|
||||
)
|
||||
|
@ -51,13 +51,13 @@ type DataConsensusEngine interface {
|
||||
}
|
||||
|
||||
func GetMinimumVersionCutoff() time.Time {
|
||||
return time.Date(2024, time.February, 13, 7, 0, 0, 0, time.UTC)
|
||||
return time.Date(2024, time.February, 19, 0, 0, 0, 0, time.UTC)
|
||||
}
|
||||
|
||||
func GetMinimumVersion() []byte {
|
||||
return []byte{0x01, 0x02, 0x04}
|
||||
return []byte{0x01, 0x02, 0x09}
|
||||
}
|
||||
|
||||
func GetVersion() []byte {
|
||||
return []byte{0x01, 0x02, 0x08}
|
||||
return []byte{0x01, 0x02, 0x09}
|
||||
}
|
||||
|
@ -75,7 +75,6 @@ func (e *MasterClockConsensusEngine) handleClockFramesResponse(
|
||||
zap.Binary("peer_id", peerID),
|
||||
zap.Binary("expected_peer_id", e.syncingTarget),
|
||||
)
|
||||
return nil
|
||||
}
|
||||
|
||||
e.syncingStatus = SyncStatusSynchronizing
|
||||
|
24
node/main.go
24
node/main.go
@ -7,10 +7,13 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/fs"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"runtime/pprof"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"source.quilibrium.com/quilibrium/monorepo/node/protobufs"
|
||||
|
||||
@ -50,11 +53,30 @@ var (
|
||||
false,
|
||||
"print the peer id to stdout from the config and exit",
|
||||
)
|
||||
memprofile = flag.String(
|
||||
"memprofile",
|
||||
"",
|
||||
"write memory profile after 20m to this file",
|
||||
)
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
if *memprofile != "" {
|
||||
go func() {
|
||||
for {
|
||||
time.Sleep(20 * time.Minute)
|
||||
f, err := os.Create(*memprofile)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
pprof.WriteHeapProfile(f)
|
||||
f.Close()
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
if *balance {
|
||||
config, err := config.LoadConfig(*configDirectory, "")
|
||||
if err != nil {
|
||||
@ -284,5 +306,5 @@ func printLogo() {
|
||||
|
||||
func printVersion() {
|
||||
fmt.Println(" ")
|
||||
fmt.Println(" Quilibrium Node - v1.2.8 – Dawn")
|
||||
fmt.Println(" Quilibrium Node - v1.2.9 – Dawn")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user