Skip to content

Commit 72d15b8

Browse files
committed
rpc+wallet: fix linter errors
1 parent b9d6161 commit 72d15b8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

rpc/legacyrpc/methods.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ func renameAccount(icmd interface{}, w *wallet.Wallet) (interface{}, error) {
670670
if err != nil {
671671
return nil, err
672672
}
673+
673674
return nil, w.RenameAccountDeprecated(waddrmgr.KeyScopeBIP0044, account, cmd.NewAccount)
674675
}
675676

rpc/rpcserver/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (s *walletServer) Accounts(ctx context.Context, req *pb.AccountsRequest) (
188188
func (s *walletServer) RenameAccount(ctx context.Context, req *pb.RenameAccountRequest) (
189189
*pb.RenameAccountResponse, error) {
190190

191-
err := s.wallet.RenameAccountDeprecated(waddrmgr.KeyScopeBIP0044, req.AccountNumber, req.NewName)
191+
err := s.wallet.RenameAccountDeprecated(waddrmgr.KeyScopeBIP0044, req.GetAccountNumber(), req.NewName)
192192
if err != nil {
193193
return nil, translateError(err)
194194
}

wallet/chainntfns.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ func (w *Wallet) disconnectBlock(dbtx walletdb.ReadWriteTx, b wtxmgr.BlockMeta)
273273

274274
// Disconnect the removed block and all blocks after it if we know about
275275
// the disconnected block. Otherwise, the block is in the future.
276+
// nolint:nestif
276277
if b.Height <= w.addrStore.SyncedTo().Height {
277278
hash, err := w.addrStore.BlockHash(addrmgrNs, b.Height)
278279
if err != nil {

0 commit comments

Comments
 (0)