-
Notifications
You must be signed in to change notification settings - Fork 73
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
feat(fraud): add "skip validation height" flag #1294
Conversation
block/block.go
Outdated
m.blockCache.Delete(block.Header.Height) | ||
// TODO: can we take an action here such as dropping the peer / reducing their reputation? | ||
return fmt.Errorf("block not valid at height %d, dropping it: err:%w", block.Header.Height, err) | ||
if m.Conf.SkipValidationHeight == block.Header.Height { |
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.
if m.Conf.SkipValidationHeight == block.Header.Height { | |
if m.Conf.SkipValidationHeight != block.Header.Height { |
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.
uups. fixed
proto/types/dymint/state.proto
Outdated
@@ -51,6 +51,7 @@ message State { | |||
|
|||
int64 revision_start_height = 21; | |||
|
|||
uint32 prev_drs = 23; |
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.
what is this for ?
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.
nothing, it was from previous test. removed
types/state.go
Outdated
@@ -45,6 +45,8 @@ type State struct { | |||
|
|||
// LastHeaderHash is the hash of the last block header. | |||
LastHeaderHash [32]byte | |||
|
|||
PrevDrs uint32 |
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.
remove here as well
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.
done
PR Standards
Opening a pull request should be able to meet the following requirements
--
PR naming convention: https://hackmd.io/@nZpxHZ0CT7O5ngTp0TP9mg/HJP_jrm7A
Close #XXX
<-- Briefly describe the content of this pull request -->
For Author:
godoc
commentsFor Reviewer:
After reviewer approval: