mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
Update Travis (#2215)
* update travis * update binutils * upgrade binutils version * remove cache * none of this works * upgrade ubuntu version * lint fixes
This commit is contained in:
@@ -4,7 +4,8 @@ sudo: false
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
go: 1.11.x
|
dist: xenial
|
||||||
|
go: 1.12.x
|
||||||
env:
|
env:
|
||||||
- lint
|
- lint
|
||||||
install:
|
install:
|
||||||
|
|||||||
@@ -125,7 +125,6 @@ func ProcessJustification(
|
|||||||
prevEpochBoundaryAttestingBalance uint64,
|
prevEpochBoundaryAttestingBalance uint64,
|
||||||
prevTotalBalance uint64,
|
prevTotalBalance uint64,
|
||||||
totalBalance uint64,
|
totalBalance uint64,
|
||||||
enableLogging bool,
|
|
||||||
) *pb.BeaconState {
|
) *pb.BeaconState {
|
||||||
|
|
||||||
ctx, span := trace.StartSpan(ctx, "beacon-chain.ChainService.state.ProcessEpoch.ProcessJustification")
|
ctx, span := trace.StartSpan(ctx, "beacon-chain.ChainService.state.ProcessEpoch.ProcessJustification")
|
||||||
|
|||||||
@@ -229,7 +229,6 @@ func TestProcessJustification_PreviousEpochJustified(t *testing.T) {
|
|||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
false, /* disable logging */
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if newState.PreviousJustifiedEpoch != 3 {
|
if newState.PreviousJustifiedEpoch != 3 {
|
||||||
@@ -256,7 +255,6 @@ func TestProcessJustification_PreviousEpochJustified(t *testing.T) {
|
|||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
false, /* disable logging */
|
|
||||||
)
|
)
|
||||||
if newState.JustifiedEpoch != helpers.CurrentEpoch(state)-1 {
|
if newState.JustifiedEpoch != helpers.CurrentEpoch(state)-1 {
|
||||||
t.Errorf("New state's justified epoch %d != state's epoch -2: %d",
|
t.Errorf("New state's justified epoch %d != state's epoch -2: %d",
|
||||||
|
|||||||
@@ -270,7 +270,6 @@ func ProcessEpoch(ctx context.Context, state *pb.BeaconState, config *Transition
|
|||||||
prevEpochAttestingBalance,
|
prevEpochAttestingBalance,
|
||||||
prevTotalBalance,
|
prevTotalBalance,
|
||||||
totalBalance,
|
totalBalance,
|
||||||
config.Logging,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Process crosslinks records.
|
// Process crosslinks records.
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/boltdb/bolt"
|
"github.com/boltdb/bolt"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
|
|||||||
@@ -74,9 +74,11 @@ func (s *Service) healthzHandler(w http.ResponseWriter, _ *http.Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Service) goroutinezHandler(w http.ResponseWriter, r *http.Request) {
|
func (s *Service) goroutinezHandler(w http.ResponseWriter, _ *http.Request) {
|
||||||
stack := debug.Stack()
|
stack := debug.Stack()
|
||||||
|
// #nosec G104
|
||||||
w.Write(stack)
|
w.Write(stack)
|
||||||
|
// #nosec G104
|
||||||
pprof.Lookup("goroutine").WriteTo(w, 2)
|
pprof.Lookup("goroutine").WriteTo(w, 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user