Skip to content

Commit

Permalink
Improve Deposit Data Account Creation Prompt (#5985)
Browse files Browse the repository at this point in the history
* improve validator accounts create text
* Merge refs/heads/master into improve-deposit-data-promt
* Merge refs/heads/master into improve-deposit-data-promt
* Merge refs/heads/master into improve-deposit-data-promt
* Merge refs/heads/master into improve-deposit-data-promt
  • Loading branch information
rauljordan committed May 26, 2020
1 parent c70c52b commit ad1d807
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions validator/accounts/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ func NewValidatorAccount(directory string, password string) error {
if err != nil {
return errors.Wrap(err, "unable to create deposit transaction")
}
log.Info(`Account creation complete! Copy and paste the raw transaction data shown below when issuing a transaction into the ETH1.0 deposit contract to activate your validator client`)
log.Info(`Account creation complete! Copy and paste the raw deposit data shown below when issuing a transaction into the ETH1.0 deposit contract to activate your validator client`)
fmt.Printf(`
========================Raw Transaction Data=======================
========================Deposit Data=======================
%#x
===================================================================
`, tx.Data())
fmt.Println("***Enter the above Raw Transaction Data into step 3 on https://prylabs.net/participate***")
fmt.Println("***Enter the above deposit data into step 3 on https://prylabs.net/participate***")
publicKey := validatorKey.PublicKey.Marshal()[:]
log.Infof("Deposit data displayed for public key: %#x", publicKey)
log.Infof("Public key: %#x", publicKey)
return nil
}

Expand Down
3 changes: 1 addition & 2 deletions validator/accounts/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ import (

"github.com/prysmaticlabs/go-bitfield"
slashpb "github.com/prysmaticlabs/prysm/proto/slashing"
"github.com/prysmaticlabs/prysm/validator/db"

"github.com/prysmaticlabs/prysm/shared/keystore"
"github.com/prysmaticlabs/prysm/shared/params"
"github.com/prysmaticlabs/prysm/shared/testutil"
"github.com/prysmaticlabs/prysm/validator/db"
"github.com/prysmaticlabs/prysm/validator/flags"
"gopkg.in/urfave/cli.v2"
)
Expand Down

0 comments on commit ad1d807

Please sign in to comment.