mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
Merge branch '__develop' into feature/api-middleware
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
|
||||
"github.com/prysmaticlabs/prysm/beacon-chain/db/slasherkv"
|
||||
)
|
||||
|
||||
// NewDB initializes a new DB.
|
||||
@@ -20,8 +19,3 @@ func NewDB(ctx context.Context, dirPath string, config *kv.Config) (Database, er
|
||||
func NewDBFilename(dirPath string) string {
|
||||
return kv.KVStoreDatafilePath(dirPath)
|
||||
}
|
||||
|
||||
// NewSlasherDB initializes a new DB for slasher.
|
||||
func NewSlasherDB(ctx context.Context, dirPath string, config *slasherkv.Config) (SlasherDatabase, error) {
|
||||
return slasherkv.NewKVStore(ctx, dirPath, config)
|
||||
}
|
||||
|
||||
@@ -10,13 +10,6 @@ import (
|
||||
|
||||
var buf = new(bytes.Buffer)
|
||||
|
||||
// FuzzSszEncoderAttestation wraps SszEncoderAttestationFuzz in a
|
||||
// go-fuzz compatible interface
|
||||
func FuzzSszEncoderAttestation(b []byte) int {
|
||||
SszEncoderAttestationFuzz(b)
|
||||
return 0
|
||||
}
|
||||
|
||||
// SszEncoderAttestationFuzz runs network encode/decode for attestations.
|
||||
func SszEncoderAttestationFuzz(b []byte) {
|
||||
params.UseMainnetConfig()
|
||||
|
||||
@@ -18,12 +18,6 @@ func init() {
|
||||
})
|
||||
}
|
||||
|
||||
// FuzzState wraps BeaconStateFuzz in a go-fuzz compatible interface
|
||||
func FuzzState(b []byte) int {
|
||||
BeaconStateFuzz(b)
|
||||
return 0
|
||||
}
|
||||
|
||||
// BeaconStateFuzz --
|
||||
func BeaconStateFuzz(input []byte) {
|
||||
params.UseMainnetConfig()
|
||||
|
||||
Reference in New Issue
Block a user