mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
Coreth 0.8.16 rc2 (#216)
* Unwrap ETHChain * hook in vm.ethConfig * statesync for subnet-evm * remove unused configJSON * add err check * add synchronization * add default config values * delay initialization of gossiper * Revert "add synchronization" This reverts commit 2e8c93e58d7853de15a21ebd1460a3cd3858a6af. * fix test * fix statesync code prefix issue * fix comment * wip * wip2 * add coreth changes * Merge branch 'master' into coreth-0.8.16-rc2 * updates * remove coreth from go.mod * fix linter * fix * update gas prices (?) * fix tracer test * move dependabot yml to upper file * more changes ported in from coreth 0.8.16 * Update sync/README.md Co-authored-by: Ceyhun Onur <[email protected]> * Update sync/README.md Co-authored-by: Ceyhun Onur <[email protected]> * Update sync/README.md Co-authored-by: Ceyhun Onur <[email protected]> * Update core/rawdb/accessors_state_sync.go * port missing file from coreth * fix-import * subscribe before goroutine * Rebase apply coreth diff onto statesync * fix EOF in tests * Nits (#265) * Nits * Add EIP-1559 link to readme * Fix linting introduced by merge
This commit is contained in:
+5
-8
@@ -38,32 +38,29 @@ func (n *Node) apis() []rpc.API {
|
||||
return []rpc.API{
|
||||
{
|
||||
Namespace: "debug",
|
||||
Version: "1.0",
|
||||
Service: debug.Handler,
|
||||
Name: "debug-handler",
|
||||
},
|
||||
{
|
||||
Namespace: "web3",
|
||||
Version: "1.0",
|
||||
Service: &publicWeb3API{n},
|
||||
Public: true,
|
||||
Service: &web3API{n},
|
||||
Name: "web3",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// publicWeb3API offers helper utils
|
||||
type publicWeb3API struct {
|
||||
// web3API offers helper utils
|
||||
type web3API struct {
|
||||
stack *Node
|
||||
}
|
||||
|
||||
// ClientVersion returns the node name
|
||||
func (s *publicWeb3API) ClientVersion() string {
|
||||
func (s *web3API) ClientVersion() string {
|
||||
return s.stack.config.SubnetEVMVersion
|
||||
}
|
||||
|
||||
// Sha3 applies the ethereum sha3 implementation on the input.
|
||||
// It assumes the input is hex encoded.
|
||||
func (s *publicWeb3API) Sha3(input hexutil.Bytes) hexutil.Bytes {
|
||||
func (s *web3API) Sha3(input hexutil.Bytes) hexutil.Bytes {
|
||||
return crypto.Keccak256(input)
|
||||
}
|
||||
|
||||
+2
-3
@@ -28,7 +28,6 @@ package node
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
@@ -198,14 +197,14 @@ func getKeyStoreDir(conf *Config) (string, bool, error) {
|
||||
isEphemeral := false
|
||||
if keydir == "" {
|
||||
// There is no datadir.
|
||||
keydir, err = ioutil.TempDir("", "subnet-evm-keystore")
|
||||
keydir, err = os.MkdirTemp("", "subnet-evm-keystore")
|
||||
isEphemeral = true
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return "", false, err
|
||||
}
|
||||
if err := os.MkdirAll(keydir, 0700); err != nil {
|
||||
if err := os.MkdirAll(keydir, 0o700); err != nil {
|
||||
return "", false, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user