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

@@ -4,7 +4,6 @@ import (
"archive/zip"
"encoding/hex"
"encoding/json"
constant "github.com/prysmaticlabs/prysm/validator/testing"
"io/ioutil"
"os"
"path/filepath"
@@ -21,6 +20,7 @@ import (
"github.com/prysmaticlabs/prysm/validator/accounts/wallet"
"github.com/prysmaticlabs/prysm/validator/keymanager"
"github.com/prysmaticlabs/prysm/validator/keymanager/derived"
constant "github.com/prysmaticlabs/prysm/validator/testing"
)
func TestBackupAccounts_Noninteractive_Derived(t *testing.T) {

View File

@@ -3,7 +3,6 @@ package accounts
import (
"context"
"fmt"
constant "github.com/prysmaticlabs/prysm/validator/testing"
"io/ioutil"
"math"
"os"
@@ -28,6 +27,7 @@ import (
"github.com/prysmaticlabs/prysm/validator/keymanager/derived"
"github.com/prysmaticlabs/prysm/validator/keymanager/imported"
"github.com/prysmaticlabs/prysm/validator/keymanager/remote"
constant "github.com/prysmaticlabs/prysm/validator/testing"
keystorev4 "github.com/wealdtech/go-eth2-wallet-encryptor-keystorev4"
)