Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
139b8aa9
Unverified
Commit
139b8aa9
authored
Aug 26, 2022
by
protolambda
Committed by
GitHub
Aug 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-proposer,op-service: fix lint and update docs (#3318)
parent
9153532b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
txmgr.go
op-proposer/txmgr/txmgr.go
+2
-1
server_test.go
op-service/rpc/server_test.go
+3
-2
linting.md
specs/meta/linting.md
+1
-1
No files found.
op-proposer/txmgr/txmgr.go
View file @
139b8aa9
...
...
@@ -327,7 +327,8 @@ func waitMined(
// CalcGasFeeCap deterministically computes the recommended gas fee cap given
// the base fee and gasTipCap. The resulting gasFeeCap is equal to:
// gasTipCap + 2*baseFee.
//
// gasTipCap + 2*baseFee.
func
CalcGasFeeCap
(
baseFee
,
gasTipCap
*
big
.
Int
)
*
big
.
Int
{
return
new
(
big
.
Int
)
.
Add
(
gasTipCap
,
...
...
op-service/rpc/server_test.go
View file @
139b8aa9
...
...
@@ -2,7 +2,7 @@ package rpc
import
(
"fmt"
"io
/ioutil
"
"io"
"math/rand"
"net/http"
"testing"
...
...
@@ -41,7 +41,8 @@ func TestBaseServer(t *testing.T) {
t
.
Run
(
"supports GET /healthz"
,
func
(
t
*
testing
.
T
)
{
res
,
err
:=
http
.
Get
(
fmt
.
Sprintf
(
"http://%s/healthz"
,
server
.
endpoint
))
require
.
NoError
(
t
,
err
)
body
,
err
:=
ioutil
.
ReadAll
(
res
.
Body
)
defer
res
.
Body
.
Close
()
body
,
err
:=
io
.
ReadAll
(
res
.
Body
)
require
.
NoError
(
t
,
err
)
require
.
EqualValues
(
t
,
fmt
.
Sprintf
(
"{
\"
version
\"
:
\"
%s
\"
}
\n
"
,
appVersion
),
string
(
body
))
})
...
...
specs/meta/linting.md
View file @
139b8aa9
...
...
@@ -64,5 +64,5 @@ Justification for linting rules:
# Install linter globally (should not affect go.mod)
go
install
github.com/golangci/golangci-lint/cmd/golangci-lint@v1.48.0
# run linter, add --fix option to fix problems (where supported)
golangci-lint run
-E
asciicheck,goimports
,misspell
golangci-lint run
-E
goimports,sqlclosecheck,bodyclose,asciicheck
,misspell
```
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