Commit 11fb3bea authored by Pavle Batuta's avatar Pavle Batuta Committed by GitHub

Log ethereum address on bee init/start (#975)

* Log ethereum address on bee init/start
parent 4ec7c508
......@@ -307,6 +307,12 @@ func (c *command) configureSigner(cmd *cobra.Command, logger logging.Logger) (co
logger.Infof("pss public key %x", crypto.EncodeSecp256k1PublicKey(&pssPrivateKey.PublicKey))
overlayEthAddress, err := signer.EthereumAddress()
if err != nil {
return nil, err
}
logger.Infof("using ethereum address %x", overlayEthAddress)
return &signerConfig{
keystore: keystore,
signer: signer,
......
......@@ -161,9 +161,6 @@ func NewBee(addr string, swarmAddress swarm.Address, publicKey ecdsa.PublicKey,
return nil, err
}
// print ethereum address so users know which address we need to fund
logger.Infof("using ethereum address %x", overlayEthAddress)
chainID, err := swapBackend.ChainID(p2pCtx)
if err != nil {
logger.Infof("could not connect to backend at %v. In a swap-enabled network a working blockchain node (for goerli network in production) is required. Check your node or specify another node using --swap-endpoint.", o.SwapEndpoint)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment