mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
cleanup: remove commented code (#8123)
This commit is contained in:
@@ -35,35 +35,12 @@ func genPrivKeys(n int) privKeys {
|
||||
return res
|
||||
}
|
||||
|
||||
// // Change replaces the key at index i.
|
||||
// func (pkz privKeys) Change(i int) privKeys {
|
||||
// res := make(privKeys, len(pkz))
|
||||
// copy(res, pkz)
|
||||
// res[i] = ed25519.GenPrivKey()
|
||||
// return res
|
||||
// }
|
||||
|
||||
// Extend adds n more keys (to remove, just take a slice).
|
||||
func (pkz privKeys) Extend(n int) privKeys {
|
||||
extra := genPrivKeys(n)
|
||||
return append(pkz, extra...)
|
||||
}
|
||||
|
||||
// // GenSecpPrivKeys produces an array of secp256k1 private keys to generate commits.
|
||||
// func GenSecpPrivKeys(n int) privKeys {
|
||||
// res := make(privKeys, n)
|
||||
// for i := range res {
|
||||
// res[i] = secp256k1.GenPrivKey()
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
|
||||
// // ExtendSecp adds n more secp256k1 keys (to remove, just take a slice).
|
||||
// func (pkz privKeys) ExtendSecp(n int) privKeys {
|
||||
// extra := GenSecpPrivKeys(n)
|
||||
// return append(pkz, extra...)
|
||||
// }
|
||||
|
||||
// ToValidators produces a valset from the set of keys.
|
||||
// The first key has weight `init` and it increases by `inc` every step
|
||||
// so we can have all the same weight, or a simple linear distribution
|
||||
|
||||
Reference in New Issue
Block a user