mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-10 06:57:24 +00:00
lint
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
- Go API
|
||||
- [p2p] \#9625 Remove unused p2p/trust package (@cmwaters)
|
||||
- [light] \#9420 Default trust level has been modified to a more secure value of 2/3 (@cmwaters)
|
||||
|
||||
- Blockchain Protocol
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
// between the trusted and untrusted validator set. Guarantees at least 1/3 honest validators signed.
|
||||
//
|
||||
// Trust level must at minimum be greater than 1/3 and less than or equal to 1. Assuming that
|
||||
// 1/3 or less of the validator set are byzantine (Tendermint's standard security gaurantee), this equates
|
||||
// 1/3 or less of the validator set are byzantine (Tendermint's standard security guarantee), this equates
|
||||
// to at least 1 honest node that we can trust in the untrusted signer set.
|
||||
//
|
||||
// Practically speaking, a trust level greater than 2/3 does not provide signifcantly greater
|
||||
@@ -29,11 +29,11 @@ var DefaultTrustLevel = tmmath.Fraction{Numerator: 2, Denominator: 3}
|
||||
//
|
||||
// a) trustedHeader can still be trusted (if not, ErrOldHeaderExpired is returned)
|
||||
// b) untrustedHeader is valid (if not, ErrInvalidHeader is returned)
|
||||
// c) trustLevel ([1/3, 1]) of trustedHeaderVals (or trustedHeaderNextVals)
|
||||
// c) trustLevel ([1/3, 2/3]) of trustedHeaderVals (or trustedHeaderNextVals)
|
||||
// signed correctly (if not, ErrNewValSetCantBeTrusted is returned)
|
||||
// d) more than 2/3 of untrustedVals have signed h2
|
||||
// (otherwise, ErrInvalidHeader is returned)
|
||||
// e) headers are non-adjacent.
|
||||
// e) headers are non-adjacent.
|
||||
//
|
||||
// maxClockDrift defines how much untrustedHeader.Time can drift into the
|
||||
// future.
|
||||
|
||||
Reference in New Issue
Block a user