Skip to content

Commit

Permalink
fix small lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Ciro S. Costa <[email protected]>
  • Loading branch information
cirocosta committed Jul 17, 2021
1 parent 28184b2 commit 099386b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 15 deletions.
5 changes: 3 additions & 2 deletions cmd/monero/commands/daemon/get_public_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"sort"
"time"

"github.com/dustin/go-humanize"
"github.com/spf13/cobra"

"github.com/cirocosta/go-monero/cmd/monero/display"
"github.com/cirocosta/go-monero/cmd/monero/options"
"github.com/cirocosta/go-monero/pkg/rpc/daemon"
"github.com/dustin/go-humanize"
"github.com/spf13/cobra"
)

type getPublicNodesCommand struct {
Expand Down
1 change: 0 additions & 1 deletion cmd/monero/commands/daemon/get_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ func (c *getTransactionCommand) prettyInputs(
table.AddRow(idx, out.Key, out.Txid, out.Height,
humanize.Time(time.Unix(blockHeaderResp.BlockHeader.Timestamp, 0)),
)

}
fmt.Println(table)
fmt.Println()
Expand Down
3 changes: 2 additions & 1 deletion cmd/monero/commands/daemon/relay_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package daemon
import (
"fmt"

"github.com/spf13/cobra"

"github.com/cirocosta/go-monero/cmd/monero/display"
"github.com/cirocosta/go-monero/cmd/monero/options"
"github.com/cirocosta/go-monero/pkg/rpc/daemon"
"github.com/spf13/cobra"
)

type relayTxCommand struct {
Expand Down
3 changes: 2 additions & 1 deletion pkg/levin/levin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package levin_test
import (
"testing"

"github.com/cirocosta/go-monero/pkg/levin"
"github.com/sclevine/spec"
"github.com/sclevine/spec/report"
"github.com/stretchr/testify/assert"

"github.com/cirocosta/go-monero/pkg/levin"
)

func TestLevin(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/levin/portable_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package levin_test
import (
"testing"

"github.com/cirocosta/go-monero/pkg/levin"
"github.com/sclevine/spec"
"github.com/sclevine/spec/report"
"github.com/stretchr/testify/assert"

"github.com/cirocosta/go-monero/pkg/levin"
)

func TestPortableStorage(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/rpc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import (
"net/http/httptest"
"testing"

"github.com/cirocosta/go-monero/pkg/rpc"
"github.com/sclevine/spec"
"github.com/sclevine/spec/report"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/cirocosta/go-monero/pkg/rpc"
)

func TestClient(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions pkg/rpc/daemon/jsonrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (

// GetAlternateChains displays alternative chains seen by the node.
//
// (restricted)
// (restricted).
//
func (c *Client) GetAlternateChains(ctx context.Context) (*GetAlternateChainsResult, error) {
resp := &GetAlternateChainsResult{}
Expand All @@ -46,7 +46,7 @@ func (c *Client) GetAlternateChains(ctx context.Context) (*GetAlternateChainsRes
// RPCAccessTracking retrieves statistics that the monero daemon keeps track of
// about the use of each RPC method and endpoint.
//
// (restricted)
// (restricted).
//
func (c *Client) RPCAccessTracking(ctx context.Context) (*RPCAccessTrackingResult, error) {
resp := &RPCAccessTrackingResult{}
Expand All @@ -72,7 +72,7 @@ func (c *Client) HardForkInfo(ctx context.Context) (*HardForkInfoResult, error)

// GetBans retrieves the list of banned IPs.
//
// (restricted)
// (restricted).
//
func (c *Client) GetBans(ctx context.Context) (*GetBansResult, error) {
resp := &GetBansResult{}
Expand All @@ -96,7 +96,7 @@ type SetBansRequestParameters struct {

// SetBans bans a particular host.
//
// (restricted)
// (restricted).
//
func (c *Client) SetBans(ctx context.Context, params SetBansRequestParameters) (*SetBansResult, error) {
resp := &SetBansResult{}
Expand All @@ -110,7 +110,7 @@ func (c *Client) SetBans(ctx context.Context, params SetBansRequestParameters) (

// GetVersion retrieves the version of monerod that the node uses.
//
// (restricted)
// (restricted).
//
func (c *Client) GetVersion(ctx context.Context) (*GetVersionResult, error) {
resp := &GetVersionResult{}
Expand Down Expand Up @@ -149,7 +149,7 @@ type GenerateBlocksRequestParameters struct {
//
// Difficulty is set permanently to 1 for regtest.
//
// (restricted)
// (restricted).
//
func (c *Client) GenerateBlocks(ctx context.Context, params GenerateBlocksRequestParameters) (*GenerateBlocksResult, error) {
resp := &GenerateBlocksResult{}
Expand Down
4 changes: 2 additions & 2 deletions pkg/rpc/daemon/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type GetAlternateChainsResult struct {
//
Difficulty int64 `json:"difficulty"`

// DifficultyTop64 is the most-significat 64 bits of the
// DifficultyTop64 is the most-significant 64 bits of the
// 128-bit network difficulty.
//
DifficultyTop64 int `json:"difficulty_top64"`
Expand Down Expand Up @@ -415,7 +415,7 @@ type BlockHeader struct {
//
Difficulty uint64 `json:"difficulty"`

// DifficultyTop64 corresponds to the most significat 64-bit of
// DifficultyTop64 corresponds to the most significant 64-bit of
// the 128-bit difficulty.
//
DifficultyTop64 uint64 `json:"difficulty_top64"`
Expand Down

0 comments on commit 099386b

Please sign in to comment.