|
|
@ -51,7 +51,7 @@ type PublicEthereumAPI struct { |
|
|
|
e *Ethereum |
|
|
|
e *Ethereum |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// NewPublicEthereumAPI creates a new Etheruem protocol API for full nodes.
|
|
|
|
// NewPublicEthereumAPI creates a new Ethereum protocol API for full nodes.
|
|
|
|
func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI { |
|
|
|
func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI { |
|
|
|
return &PublicEthereumAPI{e} |
|
|
|
return &PublicEthereumAPI{e} |
|
|
|
} |
|
|
|
} |
|
|
@ -205,7 +205,7 @@ func (api *PrivateMinerAPI) GetHashrate() uint64 { |
|
|
|
return uint64(api.e.miner.HashRate()) |
|
|
|
return uint64(api.e.miner.HashRate()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// PrivateAdminAPI is the collection of Etheruem full node-related APIs
|
|
|
|
// PrivateAdminAPI is the collection of Ethereum full node-related APIs
|
|
|
|
// exposed over the private admin endpoint.
|
|
|
|
// exposed over the private admin endpoint.
|
|
|
|
type PrivateAdminAPI struct { |
|
|
|
type PrivateAdminAPI struct { |
|
|
|
eth *Ethereum |
|
|
|
eth *Ethereum |
|
|
@ -298,7 +298,7 @@ func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) { |
|
|
|
return true, nil |
|
|
|
return true, nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// PublicDebugAPI is the collection of Etheruem full node APIs exposed
|
|
|
|
// PublicDebugAPI is the collection of Ethereum full node APIs exposed
|
|
|
|
// over the public debugging endpoint.
|
|
|
|
// over the public debugging endpoint.
|
|
|
|
type PublicDebugAPI struct { |
|
|
|
type PublicDebugAPI struct { |
|
|
|
eth *Ethereum |
|
|
|
eth *Ethereum |
|
|
@ -335,7 +335,7 @@ func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error |
|
|
|
return stateDb.RawDump(), nil |
|
|
|
return stateDb.RawDump(), nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// PrivateDebugAPI is the collection of Etheruem full node APIs exposed over
|
|
|
|
// PrivateDebugAPI is the collection of Ethereum full node APIs exposed over
|
|
|
|
// the private debugging endpoint.
|
|
|
|
// the private debugging endpoint.
|
|
|
|
type PrivateDebugAPI struct { |
|
|
|
type PrivateDebugAPI struct { |
|
|
|
config *params.ChainConfig |
|
|
|
config *params.ChainConfig |
|
|
|