From 68d0e2188263305456ae0e05c8ed73f7423fedec Mon Sep 17 00:00:00 2001 From: Milos Zivkovic Date: Sat, 25 Dec 2021 22:25:08 +0100 Subject: [PATCH] Fix unreferenced vars after dummy print removal: --- blockchain/blockchain_test.go | 2 -- jsonrpc/jsonrpc_test.go | 2 +- txpool/txpool_test.go | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/blockchain/blockchain_test.go b/blockchain/blockchain_test.go index 41f62be8b1..da328cfcab 100644 --- a/blockchain/blockchain_test.go +++ b/blockchain/blockchain_test.go @@ -555,8 +555,6 @@ func TestBlockchainWriteBody(t *testing.T) { if err := b.writeBody(block); err != nil { t.Fatal(err) } - - body, ok := b.readBody(block.Hash()) } func TestCalculateGasLimit(t *testing.T) { diff --git a/jsonrpc/jsonrpc_test.go b/jsonrpc/jsonrpc_test.go index d1fd3db3e0..419c864ede 100644 --- a/jsonrpc/jsonrpc_test.go +++ b/jsonrpc/jsonrpc_test.go @@ -13,7 +13,7 @@ func TestHTTPServer(t *testing.T) { Store: store, Addr: &net.TCPAddr{IP: net.ParseIP("127.0.0.1"), Port: 8545}, } - srv, err := NewJSONRPC(hclog.NewNullLogger(), config) + _, err := NewJSONRPC(hclog.NewNullLogger(), config) if err != nil { t.Fatal(err) } diff --git a/txpool/txpool_test.go b/txpool/txpool_test.go index a57f4e214b..68f62cd3e0 100644 --- a/txpool/txpool_test.go +++ b/txpool/txpool_test.go @@ -219,7 +219,7 @@ func TestGetPendingAndQueuedTransactions(t *testing.T) { func TestBroadcast(t *testing.T) { // we need a fully encrypted txn with (r, s, v) values so that we can // safely encrypt in RLP and broadcast it - key0, addr0 := tests.GenerateKeyAndAddr(t) + key0, _ := tests.GenerateKeyAndAddr(t) signer := &crypto.FrontierSigner{}