Fix validator activation monitoring with inactive keys (#8558)

* refactor / move waiting for activation updates

* Commentary

* Update test to follow the full code path

* gofmt and goimports

* manual imports fixes

* Apply suggestions from code review

typo fixes

* Remove redundant handleAccountsChanged and chan. Thanks @nisdas

* var sub = to sub :=

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
Preston Van Loon
2021-03-05 12:33:39 -06:00
committed by GitHub
parent edd86fd358
commit f074c5ee89
9 changed files with 48 additions and 101 deletions

View File

@@ -3,7 +3,6 @@ package derived
import (
"context"
"fmt"
constant "github.com/prysmaticlabs/prysm/validator/testing"
"testing"
validatorpb "github.com/prysmaticlabs/prysm/proto/validator/accounts/v2"
@@ -12,6 +11,7 @@ import (
"github.com/prysmaticlabs/prysm/shared/testutil/assert"
"github.com/prysmaticlabs/prysm/shared/testutil/require"
mock "github.com/prysmaticlabs/prysm/validator/accounts/testing"
constant "github.com/prysmaticlabs/prysm/validator/testing"
"github.com/tyler-smith/go-bip39"
util "github.com/wealdtech/go-eth2-util"
)