mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-04 19:24:04 +02:00
multi: update linter, fix new issues
This commit is contained in:
@@ -269,7 +269,7 @@ func (r *ServerShell) CreateSubServer(configRegistry lnrpc.SubServerConfigDispat
|
||||
}
|
||||
|
||||
// GetBlock returns a block given the corresponding block hash.
|
||||
func (s *Server) GetBlock(ctx context.Context,
|
||||
func (s *Server) GetBlock(_ context.Context,
|
||||
in *GetBlockRequest) (*GetBlockResponse, error) {
|
||||
|
||||
// We'll start by reconstructing the RPC request into what the
|
||||
@@ -295,8 +295,8 @@ func (s *Server) GetBlock(ctx context.Context,
|
||||
|
||||
// GetBestBlock returns the latest block hash and current height of the valid
|
||||
// most-work chain.
|
||||
func (s *Server) GetBestBlock(ctx context.Context,
|
||||
req *GetBestBlockRequest) (*GetBestBlockResponse, error) {
|
||||
func (s *Server) GetBestBlock(_ context.Context,
|
||||
_ *GetBestBlockRequest) (*GetBestBlockResponse, error) {
|
||||
|
||||
blockHash, blockHeight, err := s.cfg.Chain.GetBestBlock()
|
||||
if err != nil {
|
||||
@@ -311,7 +311,7 @@ func (s *Server) GetBestBlock(ctx context.Context,
|
||||
|
||||
// GetBlockHash returns the hash of the block in the best blockchain
|
||||
// at the given height.
|
||||
func (s *Server) GetBlockHash(ctx context.Context,
|
||||
func (s *Server) GetBlockHash(_ context.Context,
|
||||
req *GetBlockHashRequest) (*GetBlockHashResponse, error) {
|
||||
|
||||
blockHash, err := s.cfg.Chain.GetBlockHash(req.BlockHeight)
|
||||
|
@@ -123,7 +123,7 @@ func (s *Server) SendToRoute(ctx context.Context,
|
||||
|
||||
// QueryProbability returns the current success probability estimate for a
|
||||
// given node pair and amount.
|
||||
func (s *Server) QueryProbability(ctx context.Context,
|
||||
func (s *Server) QueryProbability(_ context.Context,
|
||||
req *QueryProbabilityRequest) (*QueryProbabilityResponse, error) {
|
||||
|
||||
fromNode, err := route.NewVertexFromBytes(req.FromNode)
|
||||
|
@@ -1692,7 +1692,7 @@ const msgSignaturePrefix = "Bitcoin Signed Message:\n"
|
||||
|
||||
// SignMessageWithAddr signs a message with the private key of the provided
|
||||
// address. The address needs to belong to the lnd wallet.
|
||||
func (w *WalletKit) SignMessageWithAddr(ctx context.Context,
|
||||
func (w *WalletKit) SignMessageWithAddr(_ context.Context,
|
||||
req *SignMessageWithAddrRequest) (*SignMessageWithAddrResponse, error) {
|
||||
|
||||
addr, err := btcutil.DecodeAddress(req.Addr, w.cfg.ChainParams)
|
||||
@@ -1757,7 +1757,7 @@ func (w *WalletKit) SignMessageWithAddr(ctx context.Context,
|
||||
// provided address. There is no dependence on the private key of the address
|
||||
// therefore also external addresses are allowed to verify signatures.
|
||||
// Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
|
||||
func (w *WalletKit) VerifyMessageWithAddr(ctx context.Context,
|
||||
func (w *WalletKit) VerifyMessageWithAddr(_ context.Context,
|
||||
req *VerifyMessageWithAddrRequest) (*VerifyMessageWithAddrResponse,
|
||||
error) {
|
||||
|
||||
|
Reference in New Issue
Block a user