E2E deposit testing overhaul (#11667)

* rewrite/refactor deposit testing code

keep track of sent deposits so that they can be compared in detail with
the validator set retreived from the API.

* fix bugs in evaluator and retry

* lint + deepsource appeasement

* typo s/Sprintf/Printf/

* gosec, more like nosec

* fix gosec number - 204->304

* type switch to get signed block from container

* improve comments

* centralizing constants and adding comments

* lock around Depositor to avoid future races

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
This commit is contained in:
kasey
2022-11-18 21:40:32 -06:00
committed by GitHub
parent 4b033f4cc7
commit d58d3f2c57
37 changed files with 949 additions and 419 deletions

View File

@@ -39,6 +39,6 @@ func TestKeyGenerator(t *testing.T) {
continue
}
assert.DeepEqual(t, key.Marshal(), nKey)
fmt.Println(fmt.Sprintf("pubkey: %s privkey: %s ", hexutil.Encode(pubkeys[i].Marshal()), hexutil.Encode(key.Marshal())))
fmt.Printf("pubkey: %s privkey: %s \n", hexutil.Encode(pubkeys[i].Marshal()), hexutil.Encode(key.Marshal()))
}
}