mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
Use BLS signature length config value (#9746)
* Use `BeaconConfig().BLSSignatureLength` * Update BUILD.bazel * Fix build * Update BUILD.bazel
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/bazelbuild/rules_go/go/tools/bazel"
|
||||
"github.com/prysmaticlabs/prysm/config/params"
|
||||
"github.com/prysmaticlabs/prysm/io/file"
|
||||
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
||||
"github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1/wrapper"
|
||||
@@ -145,7 +146,7 @@ func TestEIP3076SpecTests(t *testing.T) {
|
||||
Target: ðpb.Checkpoint{Epoch: target, Root: make([]byte, 32)},
|
||||
Source: ðpb.Checkpoint{Epoch: source, Root: make([]byte, 32)},
|
||||
},
|
||||
Signature: make([]byte, 96),
|
||||
Signature: make([]byte, params.BeaconConfig().BLSSignatureLength),
|
||||
}
|
||||
|
||||
var signingRoot [32]byte
|
||||
|
||||
@@ -1282,7 +1282,7 @@ func createAttestation(source, target types.Epoch) *ethpb.IndexedAttestation {
|
||||
},
|
||||
BeaconBlockRoot: make([]byte, 32),
|
||||
},
|
||||
Signature: make([]byte, 96),
|
||||
Signature: make([]byte, params.BeaconConfig().BLSSignatureLength),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user