mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +00:00
Fix travis and Other Linter Errors (#1356)
* fix travis and other linter errors * remove megacheck
This commit is contained in:
parent
247e8a5f8c
commit
7ff544fddf
@ -12,7 +12,6 @@
|
|||||||
"golint",
|
"golint",
|
||||||
"gosec",
|
"gosec",
|
||||||
"gotype",
|
"gotype",
|
||||||
"megacheck",
|
|
||||||
"misspell",
|
"misspell",
|
||||||
"structcheck",
|
"structcheck",
|
||||||
"unparam",
|
"unparam",
|
||||||
|
@ -7,12 +7,11 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/beacon-chain/core/validators"
|
|
||||||
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks"
|
b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks"
|
||||||
"github.com/prysmaticlabs/prysm/beacon-chain/core/state"
|
"github.com/prysmaticlabs/prysm/beacon-chain/core/state"
|
||||||
|
"github.com/prysmaticlabs/prysm/beacon-chain/core/validators"
|
||||||
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
||||||
"github.com/prysmaticlabs/prysm/beacon-chain/internal"
|
"github.com/prysmaticlabs/prysm/beacon-chain/internal"
|
||||||
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
||||||
bytesutil "github.com/prysmaticlabs/prysm/shared/bytes"
|
bytesutil "github.com/prysmaticlabs/prysm/shared/bytes"
|
||||||
|
@ -5,13 +5,12 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/shared/trie"
|
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks"
|
b "github.com/prysmaticlabs/prysm/beacon-chain/core/blocks"
|
||||||
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
||||||
"github.com/prysmaticlabs/prysm/shared/hashutil"
|
"github.com/prysmaticlabs/prysm/shared/hashutil"
|
||||||
"github.com/prysmaticlabs/prysm/shared/params"
|
"github.com/prysmaticlabs/prysm/shared/params"
|
||||||
|
"github.com/prysmaticlabs/prysm/shared/trie"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Generates a simulated beacon block to use
|
// Generates a simulated beacon block to use
|
||||||
|
@ -9,8 +9,6 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/shared/trie"
|
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
||||||
@ -22,6 +20,7 @@ import (
|
|||||||
"github.com/prysmaticlabs/prysm/shared/hashutil"
|
"github.com/prysmaticlabs/prysm/shared/hashutil"
|
||||||
"github.com/prysmaticlabs/prysm/shared/params"
|
"github.com/prysmaticlabs/prysm/shared/params"
|
||||||
"github.com/prysmaticlabs/prysm/shared/slices"
|
"github.com/prysmaticlabs/prysm/shared/slices"
|
||||||
|
"github.com/prysmaticlabs/prysm/shared/trie"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,9 +16,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/beacon-chain/core/state"
|
|
||||||
|
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
|
"github.com/prysmaticlabs/prysm/beacon-chain/core/state"
|
||||||
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
||||||
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
||||||
bytesutil "github.com/prysmaticlabs/prysm/shared/bytes"
|
bytesutil "github.com/prysmaticlabs/prysm/shared/bytes"
|
||||||
|
@ -56,7 +56,7 @@ var decodeTests = []decodeTest{
|
|||||||
{input: "FFFFFFFFFFFFFFFF", ptr: new(uint64), value: uint64(18446744073709551615)},
|
{input: "FFFFFFFFFFFFFFFF", ptr: new(uint64), value: uint64(18446744073709551615)},
|
||||||
|
|
||||||
// bytes
|
// bytes
|
||||||
{input: "00000000", ptr:new([]byte), value: []byte{}},
|
{input: "00000000", ptr: new([]byte), value: []byte{}},
|
||||||
{input: "0100000001", ptr: new([]byte), value: []byte{1}},
|
{input: "0100000001", ptr: new([]byte), value: []byte{1}},
|
||||||
{input: "06000000 010203040506", ptr: new([]byte), value: []byte{1, 2, 3, 4, 5, 6}},
|
{input: "06000000 010203040506", ptr: new([]byte), value: []byte{1, 2, 3, 4, 5, 6}},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user