Skip to content

Commit 197bbf0

Browse files
authored
Merge branch 'master' into jordan/localnet-build-opts
2 parents d69262f + 7accaea commit 197bbf0

34 files changed

+892
-925
lines changed

cmd/execution/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ required to trigger this condition is put in place to prevent triggering it in c
6868
happen on unstable networks.
6969
EN keeps track of the highest block it has executed. This is not a Flow protocol feature, and only serves synchronisation needs.
7070

71-
### Execution State syncing
72-
Other execution node is queried for range of missing blocks and hold authority to decide if it's willing (and able) to answer this query.
73-
If so, it sends the `ExecutionStateDelta` which contains all the block data and results of execution.
74-
Currently, this is fully trusted operation, meaning data is applied as-is without any extra checks.
75-
7671
### Missing blocks
7772
If no other EN are available, the block-level synchronisation is started. This requests blocks from consensus nodes, and
7873
incoming blocks are processed as if they were received during normal mode of operation

crypto/bls12381_utils_test.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package crypto
55

66
import (
7-
"crypto/rand"
7+
crand "crypto/rand"
88
"encoding/hex"
99
"testing"
1010

@@ -15,7 +15,7 @@ import (
1515
func TestDeterministicKeyGen(t *testing.T) {
1616
// 2 keys generated with the same seed should be equal
1717
seed := make([]byte, KeyGenSeedMinLen)
18-
n, err := rand.Read(seed)
18+
n, err := crand.Read(seed)
1919
require.Equal(t, n, KeyGenSeedMinLen)
2020
require.NoError(t, err)
2121
sk1, err := GeneratePrivateKey(BLSBLS12381, seed)
@@ -30,7 +30,7 @@ func TestPRGseeding(t *testing.T) {
3030
blsInstance.reInit()
3131
// 2 scalars generated with the same seed should be equal
3232
seed := make([]byte, KeyGenSeedMinLen)
33-
n, err := rand.Read(seed)
33+
n, err := crand.Read(seed)
3434
require.Equal(t, n, KeyGenSeedMinLen)
3535
require.NoError(t, err)
3636
// 1st scalar (wrapped in a private key)
@@ -51,7 +51,8 @@ func TestPRGseeding(t *testing.T) {
5151
func BenchmarkScalarMultG1G2(b *testing.B) {
5252
blsInstance.reInit()
5353
seed := make([]byte, securityBits/8)
54-
_, _ = rand.Read(seed)
54+
_, err := crand.Read(seed)
55+
require.NoError(b, err)
5556
_ = seedRelic(seed)
5657
var expo scalar
5758
randZr(&expo)
@@ -139,7 +140,8 @@ func TestSubgroupCheck(t *testing.T) {
139140
blsInstance.reInit()
140141
// seed Relic PRG
141142
seed := make([]byte, securityBits/8)
142-
_, _ = rand.Read(seed)
143+
_, err := crand.Read(seed)
144+
require.NoError(t, err)
143145
_ = seedRelic(seed)
144146

145147
t.Run("G1", func(t *testing.T) {

0 commit comments

Comments
 (0)