Use BLS signature length config value (#9746)

* Use `BeaconConfig().BLSSignatureLength`

* Update BUILD.bazel

* Fix build

* Update BUILD.bazel
This commit is contained in:
terence tsao
2021-10-07 08:37:53 -07:00
committed by GitHub
parent d9b98e9913
commit e7085897ad
20 changed files with 56 additions and 50 deletions

View File

@@ -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: &ethpb.Checkpoint{Epoch: target, Root: make([]byte, 32)},
Source: &ethpb.Checkpoint{Epoch: source, Root: make([]byte, 32)},
},
Signature: make([]byte, 96),
Signature: make([]byte, params.BeaconConfig().BLSSignatureLength),
}
var signingRoot [32]byte

View File

@@ -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),
}
}