diff --git a/accounts/scwallet/wallet.go b/accounts/scwallet/wallet.go index 4a56840b9d..5049dcd132 100644 --- a/accounts/scwallet/wallet.go +++ b/accounts/scwallet/wallet.go @@ -994,7 +994,6 @@ func (s *Session) derive(path accounts.DerivationPath) (accounts.Account, error) } // keyExport contains information on an exported keypair. -// //lint:ignore U1000 needs to be added to the console interface type keyExport struct { PublicKey []byte `asn1:"tag:0"` @@ -1002,7 +1001,6 @@ type keyExport struct { } // publicKey returns the public key for the current derivation path. -// //lint:ignore U1000 needs to be added to the console interface func (s *Session) publicKey() ([]byte, error) { response, err := s.Channel.transmitEncrypted(claSCWallet, insExportKey, exportP1Any, exportP2Pubkey, nil) diff --git a/eth/state_accessor.go b/eth/state_accessor.go index 7719f6893b..4d00fcfb40 100644 --- a/eth/state_accessor.go +++ b/eth/state_accessor.go @@ -36,15 +36,15 @@ import ( // base layer statedb can be passed then it's regarded as the statedb of the // parent block. // Parameters: -// - block: The block for which we want the state (== state at the stateRoot of the parent) -// - reexec: The maximum number of blocks to reprocess trying to obtain the desired state -// - base: If the caller is tracing multiple blocks, the caller can provide the parent state -// continuously from the callsite. -// - checklive: if true, then the live 'blockchain' state database is used. If the caller want to -// perform Commit or other 'save-to-disk' changes, this should be set to false to avoid -// storing trash persistently -// - preferDisk: this arg can be used by the caller to signal that even though the 'base' is provided, -// it would be preferable to start from a fresh state, if we have it on disk. +// - block: The block for which we want the state (== state at the stateRoot of the parent) +// - reexec: The maximum number of blocks to reprocess trying to obtain the desired state +// - base: If the caller is tracing multiple blocks, the caller can provide the parent state +// continuously from the callsite. +// - checklive: if true, then the live 'blockchain' state database is used. If the caller want to +// perform Commit or other 'save-to-disk' changes, this should be set to false to avoid +// storing trash persistently +// - preferDisk: this arg can be used by the caller to signal that even though the 'base' is provided, +// it would be preferable to start from a fresh state, if we have it on disk. func (eth *Ethereum) StateAtBlock(block *types.Block, reexec uint64, base *state.StateDB, checkLive bool, preferDisk bool) (statedb *state.StateDB, err error) { var ( current *types.Block diff --git a/eth/tracers/native/4byte.go b/eth/tracers/native/4byte.go index d628beaca6..19563f3434 100644 --- a/eth/tracers/native/4byte.go +++ b/eth/tracers/native/4byte.go @@ -37,15 +37,14 @@ func init() { // a reversed signature can be matched against the size of the data. // // Example: -// -// > debug.traceTransaction( "0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"}) -// { -// 0x27dc297e-128: 1, -// 0x38cc4831-0: 2, -// 0x524f3889-96: 1, -// 0xadf59f99-288: 1, -// 0xc281d19e-0: 1 -// } +// > debug.traceTransaction( "0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"}) +// { +// 0x27dc297e-128: 1, +// 0x38cc4831-0: 2, +// 0x524f3889-96: 1, +// 0xadf59f99-288: 1, +// 0xc281d19e-0: 1 +// } type fourByteTracer struct { env *vm.EVM ids map[string]int // ids aggregates the 4byte ids found diff --git a/eth/tracers/native/tracer.go b/eth/tracers/native/tracer.go index f5f8500049..007454b264 100644 --- a/eth/tracers/native/tracer.go +++ b/eth/tracers/native/tracer.go @@ -27,11 +27,9 @@ Aside from implementing the tracer, it also needs to register itself, using the Example: ```golang - func init() { register("noopTracerNative", newNoopTracer) } - ``` */ package native diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 03dac51771..a2a2a172d2 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -24,7 +24,7 @@ import ( "fmt" "math/big" - ethereum "github.com/cryptoecc/ETH-ECC" + "github.com/cryptoecc/ETH-ECC" "github.com/cryptoecc/ETH-ECC/common" "github.com/cryptoecc/ETH-ECC/common/hexutil" "github.com/cryptoecc/ETH-ECC/core/types" diff --git a/les/downloader/downloader_test.go b/les/downloader/downloader_test.go index 936a31c4be..e80d37b265 100644 --- a/les/downloader/downloader_test.go +++ b/les/downloader/downloader_test.go @@ -26,6 +26,7 @@ import ( "testing" "time" + "github.com/cryptoecc/ETH-ECC" "github.com/cryptoecc/ETH-ECC/common" "github.com/cryptoecc/ETH-ECC/core/rawdb" "github.com/cryptoecc/ETH-ECC/core/state/snapshot" @@ -34,7 +35,6 @@ import ( "github.com/cryptoecc/ETH-ECC/ethdb" "github.com/cryptoecc/ETH-ECC/event" "github.com/cryptoecc/ETH-ECC/trie" - "github.com/ethereum/go-ethereum" ) // Reduce some of the parameters to make the tester faster.