mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Update go to 1.19.3 (#11630)
* Update go to 1.19.3 * Update other items to 1.19 * Update golangci-lint to latest release * Run gofmt -s with go1.19 * Huge gofmt changes Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
@@ -313,16 +313,16 @@ func namesForExcludeCheck(pass *analysis.Pass, call *ast.CallExpr) []string {
|
||||
//
|
||||
// For example, say we have:
|
||||
//
|
||||
// type Inner interface {Method()}
|
||||
// type Middle interface {Inner}
|
||||
// type Outer interface {Middle}
|
||||
// type T struct {Outer}
|
||||
// type U struct {T}
|
||||
// type V struct {U}
|
||||
// type Inner interface {Method()}
|
||||
// type Middle interface {Inner}
|
||||
// type Outer interface {Middle}
|
||||
// type T struct {Outer}
|
||||
// type U struct {T}
|
||||
// type V struct {U}
|
||||
//
|
||||
// And then the selector:
|
||||
//
|
||||
// V.Method
|
||||
// V.Method
|
||||
//
|
||||
// We'll return [Outer, Middle, Inner] by first walking through the embedded structs
|
||||
// until we reach the Outer interface, then descending through the embedded interfaces
|
||||
|
||||
@@ -25,7 +25,8 @@ var Analyzer = &analysis.Analyzer{
|
||||
// Recommended thresholds according to the 2008 presentation titled
|
||||
// "Software Quality Metrics to Identify Risk" by Thomas McCabe Jr.
|
||||
//
|
||||
// 1 - 10 Simple procedure, little risk
|
||||
// 1 - 10 Simple procedure, little risk
|
||||
//
|
||||
// 11 - 20 More complex, moderate risk
|
||||
// 21 - 50 Complex, high risk
|
||||
// > 50 Untestable code, very high risk
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Block tree graph viz
|
||||
*
|
||||
* Given a DB, start slot and end slot. This tool computes the graphviz data
|
||||
* needed to construct the block tree in graphviz data format. Then one can paste
|
||||
* the data in a Graph rendering engine (ie. http://www.webgraphviz.com/) to see the visual format.
|
||||
|
||||
*/
|
||||
/*
|
||||
*
|
||||
- Block tree graph viz
|
||||
*
|
||||
- Given a DB, start slot and end slot. This tool computes the graphviz data
|
||||
- needed to construct the block tree in graphviz data format. Then one can paste
|
||||
- the data in a Graph rendering engine (ie. http://www.webgraphviz.com/) to see the visual format.
|
||||
*/
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -11,7 +11,8 @@ import (
|
||||
|
||||
// A basic tool to extract genesis.ssz from existing beaconchain.db.
|
||||
// ex:
|
||||
// bazel run //tools/interop/export-genesis:export-genesis -- /tmp/data/beaconchaindata /tmp/genesis.ssz
|
||||
//
|
||||
// bazel run //tools/interop/export-genesis:export-genesis -- /tmp/data/beaconchaindata /tmp/genesis.ssz
|
||||
func main() {
|
||||
if len(os.Args) < 3 {
|
||||
fmt.Println("Usage: ./main /path/to/datadir /path/to/output/genesis.ssz")
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/**
|
||||
/*
|
||||
*
|
||||
Tool for replaying http requests from a file of base64 encoded, line-delimited
|
||||
Go http raw requests. Credits to https://gist.github.com/kasey/c9e663eae5baebbf8fbe548c2b1d961b.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user