mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-25 08:05:17 +00:00
v1.2.13 (#64)
This commit is contained in:
parent
643823879b
commit
a0a8ffc4e7
@ -886,11 +886,11 @@ func logoVersion(width int) string {
|
|||||||
out += " ####################################### ########\n"
|
out += " ####################################### ########\n"
|
||||||
out += " ############################# ##\n"
|
out += " ############################# ##\n"
|
||||||
out += " \n"
|
out += " \n"
|
||||||
out += " Quilibrium Node - v1.2.12 – Dawn\n"
|
out += " Quilibrium Node - v1.2.13 – Dawn\n"
|
||||||
out += " \n"
|
out += " \n"
|
||||||
out += " DB Console\n"
|
out += " DB Console\n"
|
||||||
} else {
|
} else {
|
||||||
out = "Quilibrium Node - v1.2.12 – Dawn - DB Console\n"
|
out = "Quilibrium Node - v1.2.13 – Dawn - DB Console\n"
|
||||||
}
|
}
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,7 @@ func (e *CeremonyDataClockConsensusEngine) GetCompressedSyncFrames(
|
|||||||
e.filter,
|
e.filter,
|
||||||
frame.FrameNumber-1,
|
frame.FrameNumber-1,
|
||||||
frame.ParentSelector,
|
frame.ParentSelector,
|
||||||
|
true,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
from = 1
|
from = 1
|
||||||
@ -115,14 +116,11 @@ func (e *CeremonyDataClockConsensusEngine) GetCompressedSyncFrames(
|
|||||||
e.filter,
|
e.filter,
|
||||||
frame.FrameNumber-1,
|
frame.FrameNumber-1,
|
||||||
parent,
|
parent,
|
||||||
|
true,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if frame.FrameNumber > 18 {
|
from = 1
|
||||||
from = frame.FrameNumber - 16
|
e.logger.Debug("peer fully out of sync, rewinding sync head to start")
|
||||||
} else {
|
|
||||||
from = 2
|
|
||||||
}
|
|
||||||
e.logger.Debug("peer fully out of sync, rewinding sync head to min")
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,9 +55,9 @@ func GetMinimumVersionCutoff() time.Time {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetMinimumVersion() []byte {
|
func GetMinimumVersion() []byte {
|
||||||
return []byte{0x01, 0x02, 0x0B}
|
return []byte{0x01, 0x02, 0x0D}
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetVersion() []byte {
|
func GetVersion() []byte {
|
||||||
return []byte{0x01, 0x02, 0x0C}
|
return []byte{0x01, 0x02, 0x0D}
|
||||||
}
|
}
|
||||||
|
@ -416,6 +416,7 @@ func (d *DataTimeReel) addPending(
|
|||||||
frame.Filter,
|
frame.Filter,
|
||||||
frame.FrameNumber,
|
frame.FrameNumber,
|
||||||
selector.FillBytes(make([]byte, 32)),
|
selector.FillBytes(make([]byte, 32)),
|
||||||
|
true,
|
||||||
); err != nil && existing == nil {
|
); err != nil && existing == nil {
|
||||||
d.logger.Debug(
|
d.logger.Debug(
|
||||||
"not stored yet, save data candidate",
|
"not stored yet, save data candidate",
|
||||||
@ -524,6 +525,7 @@ func (d *DataTimeReel) processPending(
|
|||||||
d.filter,
|
d.filter,
|
||||||
f,
|
f,
|
||||||
next.selector.FillBytes(make([]byte, 32)),
|
next.selector.FillBytes(make([]byte, 32)),
|
||||||
|
false,
|
||||||
)
|
)
|
||||||
if err != nil && !errors.Is(err, store.ErrNotFound) {
|
if err != nil && !errors.Is(err, store.ErrNotFound) {
|
||||||
panic(err)
|
panic(err)
|
||||||
@ -597,6 +599,7 @@ func (d *DataTimeReel) getTotalDistance(frame *protobufs.ClockFrame) *big.Int {
|
|||||||
d.filter,
|
d.filter,
|
||||||
index.FrameNumber-1,
|
index.FrameNumber-1,
|
||||||
index.ParentSelector,
|
index.ParentSelector,
|
||||||
|
true,
|
||||||
) {
|
) {
|
||||||
distance, err := d.GetDistance(index)
|
distance, err := d.GetDistance(index)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -681,6 +684,7 @@ func (d *DataTimeReel) forkChoice(
|
|||||||
d.filter,
|
d.filter,
|
||||||
rightIndex.FrameNumber-1,
|
rightIndex.FrameNumber-1,
|
||||||
rightIndex.ParentSelector,
|
rightIndex.ParentSelector,
|
||||||
|
true,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// If lineage cannot be verified, set it for later
|
// If lineage cannot be verified, set it for later
|
||||||
@ -725,6 +729,7 @@ func (d *DataTimeReel) forkChoice(
|
|||||||
d.filter,
|
d.filter,
|
||||||
leftIndex.FrameNumber-1,
|
leftIndex.FrameNumber-1,
|
||||||
leftIndex.ParentSelector,
|
leftIndex.ParentSelector,
|
||||||
|
true,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
@ -734,6 +739,7 @@ func (d *DataTimeReel) forkChoice(
|
|||||||
d.filter,
|
d.filter,
|
||||||
rightIndex.FrameNumber-1,
|
rightIndex.FrameNumber-1,
|
||||||
rightIndex.ParentSelector,
|
rightIndex.ParentSelector,
|
||||||
|
true,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// If lineage cannot be verified, set it for later
|
// If lineage cannot be verified, set it for later
|
||||||
@ -788,6 +794,7 @@ func (d *DataTimeReel) forkChoice(
|
|||||||
d.filter,
|
d.filter,
|
||||||
frameNumber,
|
frameNumber,
|
||||||
next,
|
next,
|
||||||
|
false,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
@ -1390,6 +1390,7 @@ func (e *CeremonyExecutionEngine) VerifyExecution(
|
|||||||
),
|
),
|
||||||
frame.FrameNumber-1,
|
frame.FrameNumber-1,
|
||||||
frame.ParentSelector,
|
frame.ParentSelector,
|
||||||
|
false,
|
||||||
)
|
)
|
||||||
if err != nil && !errors.Is(err, store.ErrNotFound) {
|
if err != nil && !errors.Is(err, store.ErrNotFound) {
|
||||||
return errors.Wrap(err, "verify execution")
|
return errors.Wrap(err, "verify execution")
|
||||||
|
@ -306,5 +306,5 @@ func printLogo() {
|
|||||||
|
|
||||||
func printVersion() {
|
func printVersion() {
|
||||||
fmt.Println(" ")
|
fmt.Println(" ")
|
||||||
fmt.Println(" Quilibrium Node - v1.2.12 – Dawn")
|
fmt.Println(" Quilibrium Node - v1.2.13 – Dawn")
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,7 @@ type ClockStore interface {
|
|||||||
filter []byte,
|
filter []byte,
|
||||||
frameNumber uint64,
|
frameNumber uint64,
|
||||||
parentSelector []byte,
|
parentSelector []byte,
|
||||||
|
truncate bool,
|
||||||
) (*protobufs.ClockFrame, error)
|
) (*protobufs.ClockFrame, error)
|
||||||
RangeCandidateDataClockFrames(
|
RangeCandidateDataClockFrames(
|
||||||
filter []byte,
|
filter []byte,
|
||||||
@ -850,6 +851,7 @@ func (p *PebbleClockStore) GetParentDataClockFrame(
|
|||||||
filter []byte,
|
filter []byte,
|
||||||
frameNumber uint64,
|
frameNumber uint64,
|
||||||
parentSelector []byte,
|
parentSelector []byte,
|
||||||
|
truncate bool,
|
||||||
) (*protobufs.ClockFrame, error) {
|
) (*protobufs.ClockFrame, error) {
|
||||||
check := false
|
check := false
|
||||||
data, closer, err := p.db.Get(
|
data, closer, err := p.db.Get(
|
||||||
@ -880,11 +882,13 @@ func (p *PebbleClockStore) GetParentDataClockFrame(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := p.fillAggregateProofs(parent); err != nil {
|
if !truncate {
|
||||||
return nil, errors.Wrap(
|
if err := p.fillAggregateProofs(parent); err != nil {
|
||||||
errors.Wrap(err, ErrInvalidData.Error()),
|
return nil, errors.Wrap(
|
||||||
"get clock frame iterator value",
|
errors.Wrap(err, ErrInvalidData.Error()),
|
||||||
)
|
"get clock frame iterator value",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if closer != nil {
|
if closer != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user