Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
767dc6c7
Commit
767dc6c7
authored
Jun 21, 2017
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whisper: remove gencodec override for config
parent
36e79634
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
34 deletions
+0
-34
config.go
whisper/whisperv5/config.go
+0
-2
gen_config.go
whisper/whisperv5/gen_config.go
+0
-32
No files found.
whisper/whisperv5/config.go
View file @
767dc6c7
...
...
@@ -20,8 +20,6 @@ import (
"gopkg.in/urfave/cli.v1"
)
//go:generate gencodec -type Config -formats toml -out gen_config.go
type
Config
struct
{
MaxMessageSize
uint32
`toml:",omitempty"`
MinimumAcceptedPOW
float64
`toml:",omitempty"`
...
...
whisper/whisperv5/gen_config.go
deleted
100644 → 0
View file @
36e79634
// Code generated by github.com/fjl/gencodec. DO NOT EDIT.
package
whisperv5
func
(
c
Config
)
MarshalTOML
()
(
interface
{},
error
)
{
type
Config
struct
{
MaxMessageSize
uint32
`toml:",omitempty"`
MinimumAcceptedPOW
float64
`toml:",omitempty"`
}
var
enc
Config
enc
.
MaxMessageSize
=
c
.
MaxMessageSize
enc
.
MinimumAcceptedPOW
=
c
.
MinimumAcceptedPOW
return
&
enc
,
nil
}
func
(
c
*
Config
)
UnmarshalTOML
(
unmarshal
func
(
interface
{})
error
)
error
{
type
Config
struct
{
MaxMessageSize
*
uint32
`toml:",omitempty"`
MinimumAcceptedPOW
*
float64
`toml:",omitempty"`
}
var
dec
Config
if
err
:=
unmarshal
(
&
dec
);
err
!=
nil
{
return
err
}
if
dec
.
MaxMessageSize
!=
nil
{
c
.
MaxMessageSize
=
*
dec
.
MaxMessageSize
}
if
dec
.
MinimumAcceptedPOW
!=
nil
{
c
.
MinimumAcceptedPOW
=
*
dec
.
MinimumAcceptedPOW
}
return
nil
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment