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
|
*network.HiveParams
|
||||||
Swap *swap.LocalProfile
|
Swap *swap.LocalProfile
|
||||||
Pss *pss.PssParams
|
Pss *pss.PssParams
|
||||||
//*network.SyncParams
|
|
||||||
Contract common.Address
|
Contract common.Address
|
||||||
EnsRoot common.Address
|
EnsRoot common.Address
|
||||||
EnsAPIs []string
|
EnsAPIs []string
|
||||||
|
|
@ -83,7 +82,6 @@ func NewConfig() (c *Config) {
|
||||||
LocalStoreParams: storage.NewDefaultLocalStoreParams(),
|
LocalStoreParams: storage.NewDefaultLocalStoreParams(),
|
||||||
FileStoreParams: storage.NewFileStoreParams(),
|
FileStoreParams: storage.NewFileStoreParams(),
|
||||||
HiveParams: network.NewHiveParams(),
|
HiveParams: network.NewHiveParams(),
|
||||||
//SyncParams: network.NewDefaultSyncParams(),
|
|
||||||
Swap: swap.NewDefaultSwapParams(),
|
Swap: swap.NewDefaultSwapParams(),
|
||||||
Pss: pss.NewPssParams(),
|
Pss: pss.NewPssParams(),
|
||||||
ListenAddr: DefaultHTTPListenAddr,
|
ListenAddr: DefaultHTTPListenAddr,
|
||||||
|
|
@ -118,7 +116,6 @@ func (c *Config) Init(prvKey *ecdsa.PrivateKey) {
|
||||||
|
|
||||||
pubkey := crypto.FromECDSAPub(&prvKey.PublicKey)
|
pubkey := crypto.FromECDSAPub(&prvKey.PublicKey)
|
||||||
pubkeyhex := common.ToHex(pubkey)
|
pubkeyhex := common.ToHex(pubkey)
|
||||||
//keyhex := crypto.Keccak256Hash(pubkey).Hex()
|
|
||||||
keyhex := hexutil.Encode(network.PrivateKeyToBzzKey(prvKey))
|
keyhex := hexutil.Encode(network.PrivateKeyToBzzKey(prvKey))
|
||||||
|
|
||||||
c.PublicKey = pubkeyhex
|
c.PublicKey = pubkeyhex
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue