-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stabilization-equivalent-proofs #6686
base: feat/equivalent-messages
Are you sure you want to change the base?
stabilization-equivalent-proofs #6686
Conversation
…ock-sync Check proof on activation block sync
…tiversx/mx-chain-go into equivalent-proofs-feat-stabilization
@@ -57,6 +56,13 @@ type SubroundsHandler struct { | |||
currentConsensusType consensusStateMachineType | |||
} | |||
|
|||
func (s *SubroundsHandler) EpochConfirmed(epoch uint32, _ uint64) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comment
@@ -17,6 +17,7 @@ func TestEpochChangeWithNodesShufflingAndRater(t *testing.T) { | |||
t.Skip("this is not a short test") | |||
} | |||
|
|||
_ = logger.SetLogLevel("*:DEBUG") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not to forget removing this
@@ -203,12 +203,16 @@ func TestSyncWorksInShard_EmptyBlocksNoForks_With_EquivalentProofs(t *testing.T) | |||
t.Skip("this is not a short test") | |||
} | |||
|
|||
_ = logger.SetLogLevel("*:DEBUG,process:TRACE,consensus:TRACE") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not to forget removing this
@@ -56,6 +56,7 @@ func (idv *interceptedDataVerifier) Verify(interceptedData process.InterceptedDa | |||
|
|||
err := interceptedData.CheckValidity() | |||
if err != nil { | |||
log.Debug("Intercepted data is invalid", "hash", interceptedData.Hash(), "err", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll need a special handle here, as interceptedData.Hash() will be the header hash, thus receiving an invalid proof for the first time will lead to always returning ErrInvalidInterceptedData for further proofs(even valid ones)
@@ -384,6 +384,7 @@ type ForkDetector interface { | |||
GetNotarizedHeaderHash(nonce uint64) []byte | |||
ResetProbableHighestNonce() | |||
SetFinalToLastCheckpoint() | |||
// ReceivedProof() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not to forget removing this
@@ -161,6 +162,10 @@ func (boot *baseBootstrap) requestedHeaderHash() []byte { | |||
return boot.headerhash | |||
} | |||
|
|||
func (boot *baseBootstrap) processReceivedProof(headerProof data.HeaderProofHandler) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not to forget the implementation
@@ -52,13 +52,13 @@ export GENESIS_STAKE_TYPE="direct" #'delegated' or 'direct' as in direct stake | |||
export OBSERVERS_ANTIFLOOD_DISABLE=0 | |||
|
|||
# Shard structure | |||
export SHARDCOUNT=2 | |||
export SHARD_VALIDATORCOUNT=3 | |||
export SHARDCOUNT=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be reverted
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?