mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/api: Remove comments
This commit is contained in:
parent
dac69f1e1f
commit
c017e8db37
1 changed files with 5 additions and 8 deletions
|
|
@ -50,7 +50,6 @@ type Config struct {
|
|||
*network.HiveParams
|
||||
Swap *swap.LocalProfile
|
||||
Pss *pss.PssParams
|
||||
//*network.SyncParams
|
||||
Contract common.Address
|
||||
EnsRoot common.Address
|
||||
EnsAPIs []string
|
||||
|
|
@ -83,7 +82,6 @@ func NewConfig() (c *Config) {
|
|||
LocalStoreParams: storage.NewDefaultLocalStoreParams(),
|
||||
FileStoreParams: storage.NewFileStoreParams(),
|
||||
HiveParams: network.NewHiveParams(),
|
||||
//SyncParams: network.NewDefaultSyncParams(),
|
||||
Swap: swap.NewDefaultSwapParams(),
|
||||
Pss: pss.NewPssParams(),
|
||||
ListenAddr: DefaultHTTPListenAddr,
|
||||
|
|
@ -118,7 +116,6 @@ func (c *Config) Init(prvKey *ecdsa.PrivateKey) {
|
|||
|
||||
pubkey := crypto.FromECDSAPub(&prvKey.PublicKey)
|
||||
pubkeyhex := common.ToHex(pubkey)
|
||||
//keyhex := crypto.Keccak256Hash(pubkey).Hex()
|
||||
keyhex := hexutil.Encode(network.PrivateKeyToBzzKey(prvKey))
|
||||
|
||||
c.PublicKey = pubkeyhex
|
||||
|
|
|
|||
Loading…
Reference in a new issue