mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
all: fix comment and package name
This commit is contained in:
parent
d12c122507
commit
b023c34fd5
6 changed files with 19 additions and 24 deletions
|
|
@ -994,7 +994,6 @@ func (s *Session) derive(path accounts.DerivationPath) (accounts.Account, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// keyExport contains information on an exported keypair.
|
// keyExport contains information on an exported keypair.
|
||||||
//
|
|
||||||
//lint:ignore U1000 needs to be added to the console interface
|
//lint:ignore U1000 needs to be added to the console interface
|
||||||
type keyExport struct {
|
type keyExport struct {
|
||||||
PublicKey []byte `asn1:"tag:0"`
|
PublicKey []byte `asn1:"tag:0"`
|
||||||
|
|
@ -1002,7 +1001,6 @@ type keyExport struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// publicKey returns the public key for the current derivation path.
|
// publicKey returns the public key for the current derivation path.
|
||||||
//
|
|
||||||
//lint:ignore U1000 needs to be added to the console interface
|
//lint:ignore U1000 needs to be added to the console interface
|
||||||
func (s *Session) publicKey() ([]byte, error) {
|
func (s *Session) publicKey() ([]byte, error) {
|
||||||
response, err := s.Channel.transmitEncrypted(claSCWallet, insExportKey, exportP1Any, exportP2Pubkey, nil)
|
response, err := s.Channel.transmitEncrypted(claSCWallet, insExportKey, exportP1Any, exportP2Pubkey, nil)
|
||||||
|
|
|
||||||
|
|
@ -36,15 +36,15 @@ import (
|
||||||
// base layer statedb can be passed then it's regarded as the statedb of the
|
// base layer statedb can be passed then it's regarded as the statedb of the
|
||||||
// parent block.
|
// parent block.
|
||||||
// Parameters:
|
// Parameters:
|
||||||
// - block: The block for which we want the state (== state at the stateRoot of the parent)
|
// - 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
|
// - 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
|
// - base: If the caller is tracing multiple blocks, the caller can provide the parent state
|
||||||
// continuously from the callsite.
|
// continuously from the callsite.
|
||||||
// - checklive: if true, then the live 'blockchain' state database is used. If the caller want to
|
// - 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
|
// perform Commit or other 'save-to-disk' changes, this should be set to false to avoid
|
||||||
// storing trash persistently
|
// storing trash persistently
|
||||||
// - preferDisk: this arg can be used by the caller to signal that even though the 'base' is provided,
|
// - 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.
|
// 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) {
|
func (eth *Ethereum) StateAtBlock(block *types.Block, reexec uint64, base *state.StateDB, checkLive bool, preferDisk bool) (statedb *state.StateDB, err error) {
|
||||||
var (
|
var (
|
||||||
current *types.Block
|
current *types.Block
|
||||||
|
|
|
||||||
|
|
@ -37,15 +37,14 @@ func init() {
|
||||||
// a reversed signature can be matched against the size of the data.
|
// a reversed signature can be matched against the size of the data.
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
//
|
// > debug.traceTransaction( "0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"})
|
||||||
// > debug.traceTransaction( "0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"})
|
// {
|
||||||
// {
|
// 0x27dc297e-128: 1,
|
||||||
// 0x27dc297e-128: 1,
|
// 0x38cc4831-0: 2,
|
||||||
// 0x38cc4831-0: 2,
|
// 0x524f3889-96: 1,
|
||||||
// 0x524f3889-96: 1,
|
// 0xadf59f99-288: 1,
|
||||||
// 0xadf59f99-288: 1,
|
// 0xc281d19e-0: 1
|
||||||
// 0xc281d19e-0: 1
|
// }
|
||||||
// }
|
|
||||||
type fourByteTracer struct {
|
type fourByteTracer struct {
|
||||||
env *vm.EVM
|
env *vm.EVM
|
||||||
ids map[string]int // ids aggregates the 4byte ids found
|
ids map[string]int // ids aggregates the 4byte ids found
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,9 @@ Aside from implementing the tracer, it also needs to register itself, using the
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
register("noopTracerNative", newNoopTracer)
|
register("noopTracerNative", newNoopTracer)
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
*/
|
*/
|
||||||
package native
|
package native
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"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"
|
||||||
"github.com/cryptoecc/ETH-ECC/common/hexutil"
|
"github.com/cryptoecc/ETH-ECC/common/hexutil"
|
||||||
"github.com/cryptoecc/ETH-ECC/core/types"
|
"github.com/cryptoecc/ETH-ECC/core/types"
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/cryptoecc/ETH-ECC"
|
||||||
"github.com/cryptoecc/ETH-ECC/common"
|
"github.com/cryptoecc/ETH-ECC/common"
|
||||||
"github.com/cryptoecc/ETH-ECC/core/rawdb"
|
"github.com/cryptoecc/ETH-ECC/core/rawdb"
|
||||||
"github.com/cryptoecc/ETH-ECC/core/state/snapshot"
|
"github.com/cryptoecc/ETH-ECC/core/state/snapshot"
|
||||||
|
|
@ -34,7 +35,6 @@ import (
|
||||||
"github.com/cryptoecc/ETH-ECC/ethdb"
|
"github.com/cryptoecc/ETH-ECC/ethdb"
|
||||||
"github.com/cryptoecc/ETH-ECC/event"
|
"github.com/cryptoecc/ETH-ECC/event"
|
||||||
"github.com/cryptoecc/ETH-ECC/trie"
|
"github.com/cryptoecc/ETH-ECC/trie"
|
||||||
"github.com/ethereum/go-ethereum"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Reduce some of the parameters to make the tester faster.
|
// Reduce some of the parameters to make the tester faster.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue