mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -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:
@@ -360,8 +360,9 @@ func TestLoadBlocks_BadStart(t *testing.T) {
|
||||
|
||||
// tree1 constructs the following tree:
|
||||
// B0 - B1 - - B3 -- B5
|
||||
// \- B2 -- B4 -- B6 ----- B8
|
||||
// \- B7
|
||||
//
|
||||
// \- B2 -- B4 -- B6 ----- B8
|
||||
// \- B7
|
||||
func tree1(t *testing.T, beaconDB db.Database, genesisRoot []byte) ([][32]byte, []*ethpb.SignedBeaconBlock, error) {
|
||||
b0 := util.NewBeaconBlock()
|
||||
b0.Block.Slot = 0
|
||||
@@ -449,10 +450,11 @@ func tree1(t *testing.T, beaconDB db.Database, genesisRoot []byte) ([][32]byte,
|
||||
|
||||
// tree2 constructs the following tree:
|
||||
// B0 - B1
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2 -- B3
|
||||
//
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2 -- B3
|
||||
func tree2(t *testing.T, beaconDB db.Database, genesisRoot []byte) ([][32]byte, []*ethpb.SignedBeaconBlock, error) {
|
||||
b0 := util.NewBeaconBlock()
|
||||
b0.Block.Slot = 0
|
||||
@@ -531,10 +533,11 @@ func tree2(t *testing.T, beaconDB db.Database, genesisRoot []byte) ([][32]byte,
|
||||
|
||||
// tree3 constructs the following tree:
|
||||
// B0 - B1
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
//
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
func tree3(t *testing.T, beaconDB db.Database, genesisRoot []byte) ([][32]byte, []*ethpb.SignedBeaconBlock, error) {
|
||||
b0 := util.NewBeaconBlock()
|
||||
b0.Block.Slot = 0
|
||||
@@ -607,10 +610,11 @@ func tree3(t *testing.T, beaconDB db.Database, genesisRoot []byte) ([][32]byte,
|
||||
|
||||
// tree4 constructs the following tree:
|
||||
// B0
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
//
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
// \- B2
|
||||
func tree4(t *testing.T, beaconDB db.Database, genesisRoot []byte) ([][32]byte, []*ethpb.SignedBeaconBlock, error) {
|
||||
b0 := util.NewBeaconBlock()
|
||||
b0.Block.Slot = 0
|
||||
|
||||
Reference in New Issue
Block a user