Giter Club home page Giter Club logo

etclabscore / core-geth Goto Github PK

View Code? Open in Web Editor NEW
261.0 15.0 142.0 178.91 MB

A highly configurable Go implementation of the Ethereum protocol.

Home Page: https://etclabscore.github.io/core-geth

License: GNU Lesser General Public License v3.0

Dockerfile 0.01% Makefile 0.04% Go 95.50% Shell 0.11% NSIS 0.07% Python 0.04% JavaScript 1.39% HTML 0.04% Solidity 0.05% Assembly 0.30% C 2.20% M4 0.08% Java 0.10% Sage 0.09%
ethereum ethereum-protocol ethereum-classic ethereum-network rpc-library crypto docker geth rpc openrpc

core-geth's Introduction

CoreGeth: An Ethereum Protocol Provider

An ethereum/go-ethereum downstream effort to make the Ethereum Protocol accessible and extensible for a diverse ecosystem.

Priority is given to reducing opinions around chain configuration, IP-based feature implementations, and API predictability. Upstream development from ethereum/go-ethereum is merged to this repository regularly, usually at every upstream tagged release. Every effort is made to maintain seamless compatibility with upstream source, including compatible RPC, JS, and CLI APIs, data storage locations and schemas, and, of course, interoperable node protocols. Applicable bug reports, bug fixes, features, and proposals should be made upstream whenever possible.

OpenRPC API Reference Go Report Card Travis Gitter

Network/provider comparison

Networks supported by the respective go-ethereum packaged geth program.

Ticker Consensus Network core-geth ethereum/go-ethereum
ETC Ethereum Classic ✔️
ETH Ethereum (Foundation) ✔️ ✔️
- ⚡ 🤝 Private chains ✔️ ✔️
Mordor (Geth+Parity ETH PoW Testnet) ✔️
Morden (Geth+Parity ETH PoW Testnet)
Ropsten (Geth+Parity ETH PoW Testnet) ✔️ ✔️
🤝 Rinkeby (Geth-only ETH PoA Testnet) ✔️ ✔️
🤝 Goerli (Geth+Parity ETH PoA Testnet) ✔️ ✔️
🤝 Kovan (Parity-only ETH PoA Testnet)
Tobalaba (EWF Testnet)
Ephemeral development PoA network ✔️ ✔️
MINTME MintMe.com Coin ✔️
  • ⚡ = Proof of Work
  • 🤝 = Proof of Authority

1: This is originally an Ellaism Project. However, A recent hard fork makes Ellaism not feasible to support with go-ethereum any more. Existing Ellaism users are asked to switch to Parity.

2: Network not supported by default, but network configuration is possible. Make a PR!

Documentation

Contribution

Thank you for considering to help out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!

If you'd like to contribute to core-geth, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base. If you wish to submit more complex changes though, please check up with the core devs first on our gitter channel to ensure those changes are in line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple.

Please make sure your contributions adhere to our coding guidelines:

  • Code must adhere to the official Go formatting guidelines (i.e. uses gofmt).
  • Code must be documented adhering to the official Go commentary guidelines.
  • Pull requests need to be based on and opened against the master branch.
  • Commit messages should be prefixed with the package(s) they modify.
    • E.g. "eth, rpc: make trace configs optional"

Please see the Developers' Guide for more details on configuring your environment, managing project dependencies, and testing procedures.

License

The core-geth library (i.e. all code outside of the cmd directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER file.

The core-geth binaries (i.e. all code inside of the cmd directory) is licensed under the GNU General Public License v3.0, also included in our repository in the COPYING file.

core-geth's People

Contributors

acud avatar arachnid avatar cjentzsch avatar debris avatar ellaismer avatar fjl avatar gavofyork avatar gballet avatar gluk256 avatar holiman avatar iquidus avatar janos avatar jsvisa avatar karalabe avatar lightclient avatar mariusvanderwijden avatar meowsbits avatar nonsense avatar obscuren avatar renaynay avatar rjl493456442 avatar s1na avatar sorpaas avatar tgerring avatar tzdybal avatar ucwong avatar whilei avatar zelig avatar ziogaschr avatar zsfelfoldi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core-geth's Issues

feat: implement RPC Discover dynamically

Migrated from: etclabscore/multi-geth-fork#124
Original author: @meowsbits


Currently the rpc.discover API method returns a static string, fitting the spec documented here: https://github.com/etclabscore/ethereum-json-rpc-specification/blob/master/openrpc.json.

This spec represents a minimum sufficient interface that clients should support.

However this spec does not limit the client from supporting further methods or documenting them via this method.

Instead of multigeth returning a static minimum-viable string at this endpoint, it would be really great to be able to have multigeth actually return a complete representation of the methods that it is making available, which are a lot.

"Handrolling" a specification object to this purpose costs technical debt in the short and long terms, is prone to error, and generally an inelegant way of solving the challenge.

Better, to devise a system that can be applied at the RPC server level, which can programmatically generate an OpenRPC schema fitting the actual API available. This would work, then, hand-in-hand with github.com/gregdhill/go-openrpc (that codebase can consume schemas but not generate them).

Feat/evmc6: stEWASMTests fail (internal error -1)

Rel #55, #57

System and Version Info

  • OS: Ubuntu 18.04.3 LTS (bionic)
  • Git HEAD: [feat/evmc6] 139dbb5791e46d9c0edea9defd8f9231023fe7cb
go version go1.13.5 linux/amd64
node version: v13.6.0
npm version: 6.13.7
Python 3.6.8

Expected behaviour

Hera and SSVM EWASM libs should be able to pass stEWASMTests.

Actual behaviour

  • SSVM sees:
fatal error: unexpected signal during runtime execution                                
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10291f2ff pc=0x7fde1d4adcf4]

Full log attached: test.ssvm.log

At this point I'm not sure if this is an issue with SSVM, the go-ethereum/evmc CGo bindings, or the core/vm/evmc.go implementation. cc @dm4 Would you be able to help here?

Hera actually seems to throw a comparable error (not sure if on the same specific tests), but doesn't Fatal itself. The code originally caused geth to panic when the EWASMs returned an internal error. Returning the error seems to fix the tests, for hera...

You can make Hera fail the tests by reverting this commit.

  • Hera fails two tests, which I've included in the skipLoad section for them for now -> #62 (comment)

Steps to reproduce the behaviour

Backtrace

return_data:                                                                                                                                   [1755/9625]
code_size: 250                                                                                                       
msg->gas: 83865081                                                                
msg->depth: 0                                                                                                         
msg->input_size: 0                                                                
Caller: a94f5374fce5edbc8e2a8697c15331677e6ebf0b                           
CallValue: 0000000000000000000000000000000000000000000000000000000000000000
 Error: Wasm instantiation failed. Code: 4                                
usedGas: 0                                                                                                                                                
return_size: 0                                                            
return_data:                                                                      
code_size: 250                                                                 
msg->gas: 83865081                                                          
msg->depth: 0                                                                           
msg->input_size: 0                                                                                                                                   
Caller: a94f5374fce5edbc8e2a8697c15331677e6ebf0b                                                                                                          
CallValue: 0000000000000000000000000000000000000000000000000000000000000000             
 Error: Wasm instantiation failed. Code: 4                                                 
usedGas: 0                                                                           
return_size: 0                                                                     
return_data:                                                                         
fatal error: unexpected signal during runtime execution                                
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10291f2ff pc=0x7fde1d4adcf4]
                                                                           
runtime stack:                                                            
runtime.throw(0xa7fe53, 0x2a)                                                     
        /home/ia/go1.13.5.linux-amd64/go/src/runtime/panic.go:774 +0x72           
runtime.sigpanic()                                                                
        /home/ia/go1.13.5.linux-amd64/go/src/runtime/signal_unix.go:378 +0x47c    
                                                                                                 
goroutine 5647 [syscall]:                                                          
runtime.cgocall(0x91c560, 0xc000cfb590, 0xc000cfb502)                                        
        /home/ia/go1.13.5.linux-amd64/go/src/runtime/cgocall.go:128 +0x5b fp=0xc000cfb560 sp=0xc000cfb528 pc=0x40654b
github.com/ethereum/go-ethereum/evmc/bindings/go/evmc._Cfunc_execute_wrapper(0x7fde037fe840, 0xa8, 0x4, 0x0, 0x4ffadf9, 0xc000660940, 0xc000660960, 0x0, 0
x0, 0xc000660980, ...)                                                            
        _cgo_gotypes.go:363 +0x68 fp=0xc000cfb590 sp=0xc000cfb560 pc=0x85e448
github.com/ethereum/go-ethereum/evmc/bindings/go/evmc.(*Instance).Execute.func1(0xc0000d6618, 0xa8, 0x4, 0x0, 0x0, 0x0, 0x4ffadf9, 0xc000660940, 0xc000660
960, 0x1175628, ...)                                                              
        /home/ia/go/src/github.com/ethereum/go-ethereum/evmc/bindings/go/evmc/evmc.go:248 +0x17f fp=0xc000cfb660 sp=0xc000cfb590 pc=0x861e2f
github.com/ethereum/go-ethereum/evmc/bindings/go/evmc.(*Instance).Execute(0xc0000d6618, 0xb76820, 0xc000146690, 0x4, 0x0, 0x7fde1dd2b600, 0x0, 0x4ffadf9,
0xcdabcdabcdabcdab, 0xcdabcdabcdabcdab, ...)                                      
        /home/ia/go/src/github.com/ethereum/go-ethereum/evmc/bindings/go/evmc/evmc.go:248 +0x2ab fp=0xc000cfb7d8 sp=0xc000cfb660 pc=0x85fd6b
github.com/ethereum/go-ethereum/core/vm.(*EVMC).Run(0xc0007eea60, 0xc0008460c0, 0x1175628, 0x0, 0x0, 0xc000cfba00, 0x0, 0x0, 0x0, 0x0, ...)
        /home/ia/go/src/github.com/ethereum/go-ethereum/core/vm/evmc.go:360 +0x3ad fp=0xc000cfba70 sp=0xc000cfb7d8 pc=0x86f28d
github.com/ethereum/go-ethereum/core/vm.run(0xc000348000, 0xc0008460c0, 0x1175628, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /home/ia/go/src/github.com/ethereum/go-ethereum/core/vm/evm.go:64 +0x21a fp=0xc000cfbb00 sp=0xc000cfba70 pc=0x8685da
github.com/ethereum/go-ethereum/core/vm.(*EVM).Call(0xc000348000, 0xb66400, 0xc0007209e0, 0xcdabcdabcdabcdab, 0xcdabcdabcdabcdab, 0xcdabcdab, 0x1175628, 0
x0, 0x0, 0x4ffadf9, ...)                                                   
        /home/ia/go/src/github.com/ethereum/go-ethereum/core/vm/evm.go:228 +0x51a fp=0xc000cfbd50 sp=0xc000cfbb00 pc=0x8694da
github.com/ethereum/go-ethereum/core.(*StateTransition).TransitionDb(0xc000164070, 0xb75280, 0xc000a005a0, 0xc0003987c0, 0xc000164070, 0x989fe0, 0xc000398
7d0, 0xc0003987d0)                                                        
        /home/ia/go/src/github.com/ethereum/go-ethereum/core/state_transition.go:218 +0x4c4 fp=0xc000cfbf28 sp=0xc000cfbd50 pc=0x8ae914
github.com/ethereum/go-ethereum/core.ApplyMessage(0xc000348000, 0xb75280, 0xc000a005a0, 0xc0003987c0, 0x1, 0xc0003987d0, 0x0, 0x1, 0xc28fac6d66bce6e0, 0xb
af97f69, ...)                                                                                        
        /home/ia/go/src/github.com/ethereum/go-ethereum/core/state_transition.go:136 +0x5b fp=0xc000cfbf78 sp=0xc000cfbf28 pc=0x8ade9b
github.com/ethereum/go-ethereum/tests.(*StateTest).RunNoVerify(0xc0008ca000, 0xc000398866, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /home/ia/go/src/github.com/ethereum/go-ethereum/tests/state_test_util.go:217 +0x5ad fp=0xc000cffae8 sp=0xc000cfbf78 pc=0x905d4d
github.com/ethereum/go-ethereum/tests.(*StateTest).Run(0xc0008ca000, 0xc000398866, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /home/ia/go/src/github.com/ethereum/go-ethereum/tests/state_test_util.go:175 +0xa2 fp=0xc000d034a8 sp=0xc000cffae8 pc=0x9052d2
github.com/ethereum/go-ethereum/tests.TestState.func1.1.1(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)                                          
        /home/ia/go/src/github.com/ethereum/go-ethereum/tests/state_test.go:76 +0xc2 fp=0xc000d06d68 sp=0xc000d034a8 pc=0x915412
github.com/ethereum/go-ethereum/tests.withTrace(0xc000724000, 0x5000001, 0xc000d0df18)
        /home/ia/go/src/github.com/ethereum/go-ethereum/tests/state_test.go:92 +0xe4 fp=0xc000d0dec0 sp=0xc000d06d68 pc=0x910e84                          
github.com/ethereum/go-ethereum/tests.TestState.func1.1(0xc000724000)             
        /home/ia/go/src/github.com/ethereum/go-ethereum/tests/state_test.go:75 +0x178 fp=0xc000d0df70 sp=0xc000d0dec0 pc=0x915618
testing.tRunner(0xc000724000, 0xc00081a600)                                    
        /home/ia/go1.13.5.linux-amd64/go/src/testing/testing.go:909 +0xc9 fp=0xc000d0dfd0 sp=0xc000d0df70 pc=0x505369
runtime.goexit()                                                                  
        /home/ia/go1.13.5.linux-amd64/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc000d0dfd8 sp=0xc000d0dfd0 pc=0x4623d1
created by testing.(*T).Run                                                       
        /home/ia/go1.13.5.linux-amd64/go/src/testing/testing.go:960 +0x350 
                                                                           

Fatal: Error starting protocol stack: gap (#9651538) in the chain between ancients and leveldb

Migrated from: etclabscore/multi-geth-fork#142
Original author: @meowsbits


System information

Geth version: geth version

> ./.builds/systemd/classic/geth version
MultiGeth
Version: 1.9.9-stable
Git Commit: ffdc07878b7ea9bffd0cb3a9dea90a1494b99c52
Architecture: amd64
Protocol Versions: [64 63]
Go Version: go1.13.5
Operating System: linux
GOPATH=/home/ia/go
GOROOT=/home/ia/go1.13.5.linux-amd64/go

System and Version Info

  • OS: Ubuntu 18.04.3 LTS (bionic)
  • Git HEAD: [feat/cmd-devp2p-findnode] dfacdbed000b3464d30aa80c2091358314cbcc85
go version go1.13.5 linux/amd64
node version: v13.6.0
npm version: 6.13.4
Python 3.6.8
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
> cat multigeth.SAMSUNG_T5_2.classic.service
[Unit]
Description=Multigeth classic Service

[Service]
Type=simple
User=root
Restart=always
RestartSec=3
TimeoutStopSec=10min
ExecStart=/bin/sh -c '/home/ia/go/src/github.com/ethereum/go-ethereum/.builds/systemd/classic/geth --classic --rpc --rpcport 8061 --rpccorsdomain=* --port 30361 --verbosity 5 --datadir /home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic --ethash.dagdir /home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/.ethash --miner.gaslimit=100000000 --miner.gastarget=64000000 --ipcpath /tmp/multigeth_classic.ipc --lightserv 10 --keystore /home/ia/SAMSUNG_T5_2/e/keys/classic --preload /home/ia/go/src/github.com/ethereum/go-ethereum/.ia/lib.js --miner.gasprice=0'

[Install]
WantedBy=default.target

Expected behaviour

Geth starts and runs (recovering/rewinding chaindb to resolve issues automatically).

Actual behaviour

Feb 10 07:53:03 ubp52 systemd[1]: Started Multigeth classic Service.
Feb 10 07:53:03 ubp52 sh[17284]: INFO [02-10|07:53:03.495] Bumping default cache on mainnet         provided=1024 updated=4096
Feb 10 07:53:03 ubp52 sh[17284]: DEBUG[02-10|07:53:03.495] Sanitizing Go's GC trigger               percent=25
Feb 10 07:53:03 ubp52 sh[17284]: INFO [02-10|07:53:03.497] Maximum peer count                       ETH=50 LES=100 total=150
Feb 10 07:53:03 ubp52 sh[17284]: INFO [02-10|07:53:03.497] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
Feb 10 07:53:03 ubp52 sh[17284]: DEBUG[02-10|07:53:03.497] FS scan times                            list=67.106µs set=513ns diff=604ns
Feb 10 07:53:03 ubp52 sh[17284]: TRACE[02-10|07:53:03.497] Started watching keystore folder         path=/home/ia/SAMSUNG_T5_2/e/keys/classic
Feb 10 07:53:03 ubp52 sh[17284]: INFO [02-10|07:53:03.507] Starting peer-to-peer node               instance=MultiGeth/v1.9.9-stable-ffdc0787/linux-amd64/go1.13.5
Feb 10 07:53:03 ubp52 sh[17284]: WARN [02-10|07:53:03.507] Sanitizing invalid miner gas price       provided=0    updated=0
Feb 10 07:53:03 ubp52 sh[17284]: INFO [02-10|07:53:03.507] Allocated trie memory caches             clean=1024.00MiB dirty=1024.00MiB
Feb 10 07:53:03 ubp52 sh[17284]: INFO [02-10|07:53:03.507] Allocated cache and file handles         database=/home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/geth/chaindata cache=2.00GiB handles=2048
Feb 10 07:53:03 ubp52 sh[17284]: DEBUG[02-10|07:53:03.601] Chain freezer table opened               database=/home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/geth/chaindata/ancient table=bodies items=9651538 size=252.33MiB
Feb 10 07:53:03 ubp52 sh[17284]: DEBUG[02-10|07:53:03.605] Chain freezer table opened               database=/home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/geth/chaindata/ancient table=receipts items=9651538 size=402.19MiB
Feb 10 07:53:03 ubp52 sh[17284]: DEBUG[02-10|07:53:03.608] Chain freezer table opened               database=/home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/geth/chaindata/ancient table=diffs    items=9651538 size=90.56MiB
Feb 10 07:53:03 ubp52 sh[17284]: DEBUG[02-10|07:53:03.614] Chain freezer table opened               database=/home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/geth/chaindata/ancient table=headers  items=9651538 size=928.51MiB
Feb 10 07:53:03 ubp52 sh[17284]: DEBUG[02-10|07:53:03.618] Chain freezer table opened               database=/home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/geth/chaindata/ancient table=hashes   items=9651538 size=294.54MiB
Feb 10 07:53:03 ubp52 sh[17284]: INFO [02-10|07:53:03.618] Opened ancient database                  database=/home/ia/SAMSUNG_T5_2/e/clients/multigeth/classic/geth/chaindata/ancient
Feb 10 07:53:03 ubp52 sh[17284]: Fatal: Error starting protocol stack: gap (#9651538) in the chain between ancients and leveldb

Steps to reproduce the behaviour

Unsure. Maybe start and stop geth a couple times and get (un)lucky?

nondeterministic tests

Migrated from: etclabscore/multi-geth-fork#130
Original author: @meowsbits


Here's an example of one. I believe there are others.


System and Version Info

  • OS: Ubuntu 18.04.3 LTS (bionic)
  • Git HEAD: [release/v1.9.8-etclabscore] 0a3644b2c00a05d17f4f2d681c2ac59bba8d3d06
go version go1.13.5 linux/amd64
node version: v13.1.0
npm version: 6.12.1
Python 3.6.8
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]

A.

> go test -run OldVsNew ./core/... && for i in {1..10}; do echo "Test Again Set $i"; go test -count 100 -run OldVsNew ./core/...; done &> test.out

> cat test.out
Test Again Set 1
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	37.981s
ok  	github.com/ethereum/go-ethereum/core/asm	0.035s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.033s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.020s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.041s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.033s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.039s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.021s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.019s [no tests to run]
FAIL
Test Again Set 2
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.40s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.41s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.40s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.41s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.45s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.40s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	38.741s
ok  	github.com/ethereum/go-ethereum/core/asm	0.043s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.032s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.022s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.031s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.042s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.028s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.022s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.019s [no tests to run]
FAIL
Test Again Set 3
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.40s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.40s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	38.150s
ok  	github.com/ethereum/go-ethereum/core/asm	0.021s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.034s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.018s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.039s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.036s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.034s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.032s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.017s [no tests to run]
FAIL
Test Again Set 4
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	37.593s
ok  	github.com/ethereum/go-ethereum/core/asm	0.032s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.026s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.020s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.022s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.022s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.036s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.020s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.018s [no tests to run]
FAIL
Test Again Set 5
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	37.569s
ok  	github.com/ethereum/go-ethereum/core/asm	0.032s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.031s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.017s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.046s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.024s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.026s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.018s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.020s [no tests to run]
FAIL
Test Again Set 6
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	38.260s
ok  	github.com/ethereum/go-ethereum/core/asm	0.026s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.055s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.018s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.028s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.032s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.039s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.023s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.017s [no tests to run]
FAIL
Test Again Set 7
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	37.863s
ok  	github.com/ethereum/go-ethereum/core/asm	0.030s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.036s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.018s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.023s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.035s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.037s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.021s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.022s [no tests to run]
FAIL
Test Again Set 8
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	37.779s
ok  	github.com/ethereum/go-ethereum/core/asm	0.030s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.030s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.019s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.020s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.030s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.049s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.020s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.018s [no tests to run]
FAIL
Test Again Set 9
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.42s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.44s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.40s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	38.967s
ok  	github.com/ethereum/go-ethereum/core/asm	0.020s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.029s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.020s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.023s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.029s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.023s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.021s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.018s [no tests to run]
FAIL
Test Again Set 10
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.40s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.38s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.36s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.41s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.39s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
--- FAIL: TestSetupGenesisBlockOldVsNewMultigeth (0.37s)
    genesis_test.go:105: incompat conf mismatching incompatible fork value: GetEIP160Transition in database (old: 8772000, new: 3000000, rewindto 2999999)
FAIL
FAIL	github.com/ethereum/go-ethereum/core	38.111s
ok  	github.com/ethereum/go-ethereum/core/asm	0.037s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/bloombits	0.026s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/forkid	0.018s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/rawdb	0.035s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/state	0.029s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/types	0.021s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm	0.019s [no tests to run]
ok  	github.com/ethereum/go-ethereum/core/vm/runtime	0.031s [no tests to run]
FAIL

> cat test.out |grep FAIL | wc -l
161

panic at les txpool reorg

System information

Geth version: v1.11.0-core
OS & Version: Linux

Actual behaviour

Mar 04 12:22:51 sf-etclabs sh[26575]: WARN [03-04|12:22:51.621] Skipping faucet refresh, head too old    number=778682 hash=5a1633…3c13bf age=1mo3d16h   
Mar 04 12:22:51 sf-etclabs sh[26575]: WARN [03-04|12:22:51.622] Skipping faucet refresh, head too old    number=778683 hash=145cc7…01f163 age=1mo3d16h   
Mar 04 12:22:51 sf-etclabs sh[26575]: WARN [03-04|12:22:51.622] Skipping faucet refresh, head too old    number=778684 hash=74d573…562392 age=1mo3d16h   
Mar 04 12:22:51 sf-etclabs sh[26575]: panic: runtime error: invalid memory address or nil pointer dereference                                            
Mar 04 12:22:51 sf-etclabs sh[26575]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0xc5937c]                                           
Mar 04 12:22:51 sf-etclabs sh[26575]: goroutine 57 [running]:                                                                                            
Mar 04 12:22:51 sf-etclabs sh[26575]: github.com/ethereum/go-ethereum/light.(*TxPool).reorgOnNewHead(0xc00038cc60, 0x11a2960, 0xc0204bd920, 0xc0209ec480,
0xc0204bd920, 0xc02096eb00, 0x8)                                                                                                                         
Mar 04 12:22:51 sf-etclabs sh[26575]:         /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:230 +0x23c                                    
Mar 04 12:22:51 sf-etclabs sh[26575]: github.com/ethereum/go-ethereum/light.(*TxPool).setNewHead(0xc00038cc60, 0xc0209ec480)                             
Mar 04 12:22:51 sf-etclabs sh[26575]:         /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:311 +0x13a                                    
Mar 04 12:22:51 sf-etclabs sh[26575]: github.com/ethereum/go-ethereum/light.(*TxPool).eventLoop(0xc00038cc60)                                            
Mar 04 12:22:51 sf-etclabs sh[26575]:         /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:292 +0x53                                     
Mar 04 12:22:51 sf-etclabs sh[26575]: created by github.com/ethereum/go-ethereum/light.NewTxPool                                                         
Mar 04 12:22:51 sf-etclabs sh[26575]:         /root/go/src/github.com/ethereum/go-ethereum/light/txpool.go:109 +0x3eb                                    

Steps to reproduce the behaviour

Run faucet, need reorg.

CPU mining bogs down (hashrate falls toward 0 over time)

Migrated from: etclabscore/multi-geth-fork#119
Original author: @meowsbits


I start mining. miner.getHashrate() is between, oh, 50000 and 70000. A week goes by, and I find hashrate down barely scraping 1000 if not 0.

I have somewhat limited logs, due in part to limited patience and in part to journalctl rotation limits, but here's a kind of "upside down" log of the issue. You can see the "end of week" section on top. Then, I restart the client, restart mining, and those logs are underneath. You can see the difference of attempts in general.

> miner.getHashrate()
68646
> miner.getHashrate()
70113

# 1 week later...
> miner.getHashrate()
203
> miner.getHashrate()
158
> 
root@hostess:~/go/src/github.com/ethereum/go-ethereum# journalctl -u multigeth_ethereumclassic_mordor.service --since '1 week ago' | grep attempts | gr
ep -v too |& tee miner_attempts.log                                                                                                                       
Jan 09 17:17:02 sf-etclabs sh[10933]: TRACE[01-09|17:17:02.540] Ethash nonce search aborted              miner=0 attempts=422                             
Jan 09 17:17:02 sf-etclabs sh[10933]: TRACE[01-09|17:17:02.571] Ethash nonce search aborted              miner=1 attempts=413                             
Jan 09 17:17:06 sf-etclabs sh[10933]: TRACE[01-09|17:17:06.618] Ethash nonce search aborted              miner=1 attempts=160                             Jan 09 17:17:06 sf-etclabs sh[10933]: TRACE[01-09|17:17:06.618] Ethash nonce search aborted              miner=0 attempts=155                             
Jan 09 17:17:15 sf-etclabs sh[10933]: TRACE[01-09|17:17:15.746] Ethash nonce search aborted              miner=1 attempts=418                             
Jan 09 17:17:15 sf-etclabs sh[10933]: TRACE[01-09|17:17:15.763] Ethash nonce search aborted              miner=0 attempts=452                             
Jan 09 17:17:17 sf-etclabs sh[10933]: TRACE[01-09|17:17:17.236] Ethash nonce search aborted              miner=1 attempts=77                              
Jan 09 17:17:17 sf-etclabs sh[10933]: TRACE[01-09|17:17:17.258] Ethash nonce search aborted              miner=0 attempts=73                              
Jan 09 17:17:43 sf-etclabs sh[10933]: TRACE[01-09|17:17:43.282] Ethash nonce search aborted              miner=1 attempts=1425                            
Jan 09 17:17:43 sf-etclabs sh[10933]: TRACE[01-09|17:17:43.305] Ethash nonce search aborted              miner=0 attempts=1439                            
Jan 09 17:17:44 sf-etclabs sh[10933]: TRACE[01-09|17:17:44.372] Ethash nonce search aborted              miner=0 attempts=52                              
Jan 09 17:17:44 sf-etclabs sh[10933]: TRACE[01-09|17:17:44.373] Ethash nonce search aborted              miner=1 attempts=56                              
Jan 09 17:17:51 sf-etclabs sh[10933]: TRACE[01-09|17:17:51.341] Ethash nonce search aborted              miner=0 attempts=344                             
Jan 09 17:17:51 sf-etclabs sh[10933]: TRACE[01-09|17:17:51.361] Ethash nonce search aborted              miner=1 attempts=324                             Jan 09 17:18:40 sf-etclabs sh[15162]: TRACE[01-09|17:18:40.001] Ethash nonce search aborted              miner=0 attempts=280407                          
Jan 09 17:18:40 sf-etclabs sh[15162]: TRACE[01-09|17:18:40.035] Ethash nonce search aborted              miner=1 attempts=276196                          
Jan 09 17:18:42 sf-etclabs sh[15162]: TRACE[01-09|17:18:42.033] Ethash nonce search aborted              miner=1 attempts=30256                           
Jan 09 17:18:42 sf-etclabs sh[15162]: TRACE[01-09|17:18:42.033] Ethash nonce search aborted              miner=0 attempts=33134                           
Jan 09 17:18:42 sf-etclabs sh[15162]: TRACE[01-09|17:18:42.250] Ethash nonce found and reported          miner=1 attempts=3854   nonce=5241881277459086967Jan 09 17:18:42 sf-etclabs sh[15162]: TRACE[01-09|17:18:42.251] Ethash nonce search aborted              miner=0 attempts=3860                            
Jan 09 17:18:45 sf-etclabs sh[15162]: TRACE[01-09|17:18:45.927] Ethash nonce search aborted              miner=1 attempts=56553                           
Jan 09 17:18:45 sf-etclabs sh[15162]: TRACE[01-09|17:18:45.927] Ethash nonce search aborted              miner=0 attempts=54616                           
Jan 09 17:18:48 sf-etclabs sh[15162]: TRACE[01-09|17:18:48.694] Ethash nonce search aborted              miner=1 attempts=44928                           
Jan 09 17:18:48 sf-etclabs sh[15162]: TRACE[01-09|17:18:48.710] Ethash nonce search aborted              miner=0 attempts=42226                           
Jan 09 17:18:55 sf-etclabs sh[15162]: TRACE[01-09|17:18:55.990] Ethash nonce search aborted              miner=1 attempts=111029                          
Jan 09 17:18:56 sf-etclabs sh[15162]: TRACE[01-09|17:18:56.002] Ethash nonce search aborted              miner=0 attempts=108714                          Jan 09 17:18:56 sf-etclabs sh[15162]: TRACE[01-09|17:18:56.680] Ethash nonce search aborted              miner=0 attempts=9924                            
Jan 09 17:18:56 sf-etclabs sh[15162]: TRACE[01-09|17:18:56.680] Ethash nonce search aborted              miner=1 attempts=11570                           
Jan 09 17:18:57 sf-etclabs sh[15162]: TRACE[01-09|17:18:57.792] Ethash nonce search aborted              miner=0 attempts=17366                           
Jan 09 17:18:57 sf-etclabs sh[15162]: TRACE[01-09|17:18:57.807] Ethash nonce search aborted              miner=1 attempts=17574                           
Jan 09 17:19:02 sf-etclabs sh[15162]: TRACE[01-09|17:19:02.899] Ethash nonce search aborted              miner=1 attempts=70371                           
Jan 09 17:19:02 sf-etclabs sh[15162]: TRACE[01-09|17:19:02.899] Ethash nonce search aborted              miner=0 attempts=65415                           
Jan 09 17:19:03 sf-etclabs sh[15162]: TRACE[01-09|17:19:03.695] Ethash nonce found and reported          miner=0 attempts=10907  nonce=5081695854271724204
Jan 09 17:19:03 sf-etclabs sh[15162]: TRACE[01-09|17:19:03.696] Ethash nonce search aborted              miner=1 attempts=11070                           
Jan 09 17:19:05 sf-etclabs sh[15162]: TRACE[01-09|17:19:05.824] Ethash nonce found and reported          miner=0 attempts=31661  nonce=8405810286462023217Jan 09 17:19:05 sf-etclabs sh[15162]: TRACE[01-09|17:19:05.825] Ethash nonce search aborted              miner=1 attempts=35346                           
Jan 09 17:19:15 sf-etclabs sh[15162]: TRACE[01-09|17:19:15.592] Ethash nonce found and reported          miner=0 attempts=158761 nonce=8407955903244848098
Jan 09 17:19:15 sf-etclabs sh[15162]: TRACE[01-09|17:19:15.599] Ethash nonce search aborted              miner=1 attempts=158142                          Jan 09 17:19:24 sf-etclabs sh[15162]: TRACE[01-09|17:19:24.768] Ethash nonce search aborted              miner=1 attempts=141533                          
Jan 09 17:19:24 sf-etclabs sh[15162]: TRACE[01-09|17:19:24.770] Ethash nonce search aborted              miner=0 attempts=141219                          
Jan 09 17:19:35 sf-etclabs sh[15162]: TRACE[01-09|17:19:35.577] Ethash nonce search aborted              miner=0 attempts=166616                          
Jan 09 17:19:35 sf-etclabs sh[15162]: TRACE[01-09|17:19:35.613] Ethash nonce search aborted              miner=1 attempts=174460                          
Jan 09 17:19:41 sf-etclabs sh[15162]: TRACE[01-09|17:19:41.245] Ethash nonce search aborted              miner=0 attempts=91526                           Jan 09 17:19:41 sf-etclabs sh[15162]: TRACE[01-09|17:19:41.245] Ethash nonce search aborted              miner=1 attempts=89261                           
Jan 09 17:19:48 sf-etclabs sh[15162]: TRACE[01-09|17:19:48.819] Ethash nonce found and reported          miner=1 attempts=123166 nonce=6322267920637101883
Jan 09 17:19:48 sf-etclabs sh[15162]: TRACE[01-09|17:19:48.819] Ethash nonce search aborted              miner=0 attempts=119838                          
Jan 09 17:20:32 sf-etclabs sh[15162]: TRACE[01-09|17:20:32.984] Ethash nonce found and reported          miner=0 attempts=689656 nonce=3789431768198540595
Jan 09 17:20:32 sf-etclabs sh[15162]: TRACE[01-09|17:20:32.990] Ethash nonce search aborted              miner=1 attempts=695456                          Jan 09 17:20:34 sf-etclabs sh[15162]: TRACE[01-09|17:20:34.960] Ethash nonce search aborted              miner=0 attempts=30422                           
Jan 09 17:20:34 sf-etclabs sh[15162]: TRACE[01-09|17:20:34.999] Ethash nonce search aborted              miner=1 attempts=28477                           
Jan 09 17:20:39 sf-etclabs sh[15162]: TRACE[01-09|17:20:39.468] Ethash nonce search aborted              miner=1 attempts=69885                           Jan 09 17:20:39 sf-etclabs sh[15162]: TRACE[01-09|17:20:39.513] Ethash nonce search aborted              miner=0 attempts=68418                           
Jan 09 17:20:40 sf-etclabs sh[15162]: TRACE[01-09|17:20:40.030] Ethash nonce search aborted              miner=0 attempts=8803                            
Jan 09 17:20:40 sf-etclabs sh[15162]: TRACE[01-09|17:20:40.030] Ethash nonce search aborted              miner=1 attempts=8575                            
Jan 09 17:20:44 sf-etclabs sh[15162]: TRACE[01-09|17:20:44.002] Ethash nonce search aborted              miner=0 attempts=60810                           
Jan 09 17:20:44 sf-etclabs sh[15162]: TRACE[01-09|17:20:44.002] Ethash nonce search aborted              miner=1 attempts=62729                           
Jan 09 17:20:49 sf-etclabs sh[15162]: TRACE[01-09|17:20:49.376] Ethash nonce search aborted              miner=1 attempts=87559                           
Jan 09 17:20:49 sf-etclabs sh[15162]: TRACE[01-09|17:20:49.376] Ethash nonce search aborted              miner=0 attempts=85580                           Jan 09 17:21:06 sf-etclabs sh[15162]: TRACE[01-09|17:21:06.711] Ethash nonce search aborted              miner=0 attempts=260419                          
Jan 09 17:21:06 sf-etclabs sh[15162]: TRACE[01-09|17:21:06.711] Ethash nonce search aborted              miner=1 attempts=267318                          
Jan 09 17:21:18 sf-etclabs sh[15162]: TRACE[01-09|17:21:18.716] Ethash nonce search aborted              miner=0 attempts=195479                          
Jan 09 17:21:18 sf-etclabs sh[15162]: TRACE[01-09|17:21:18.716] Ethash nonce search aborted              miner=1 attempts=186745     

Structured Logging for Multi-Geth

Migrated from: etclabscore/multi-geth-fork#41
Original author: @zcstarr


Although the standard log system installed uses log15 key/value log lines, notably lacking is:

a reliable API for log lines
... and documentation for them
optional JSON log line formatting
The comparison might be made here to ethereumclassic/go-ethereum's mlog feature.

Specs:

Should use the pre-existing log system (which it's set up for; just add a log Handler)
Should support options for key/value and JSON formats
Should NOT write to any file; output should go to stdout (different from existing log lines which rightfully use stderr). They should use stderr because they can be considered "intended and purposeful program output" rather than incidental since turning them on requires an opt-in flag and the information they contain can be considered "program output" (as opposed to the existing logs' "incidental" nature). I'd like to have a discussion about this point and be sure to walk all the way around the reasoning here before diving in.
Should use a prefix to identify structured log lines from "normal" log lines, enabling simple grepping and piping
Should be able to provide thorough and accurate documentation for themselves (self-discovering/documenting code, eg. mdoc)
I think in general the scope of mlog is adequate, and I can't think of anything I'd prefer to leave out.

For reference this is a repost of this issue: multi-geth/multi-geth#33

params: rename client to CoreGeth

Migrated from: https://api.github.com/repos/etclabscore/multi-geth-fork/issues/147
Original author: @soc1c


ref #146


because people asked why we need to rename:

  1. we don't have access to the Multi-Geth repository and brand
  2. we cannot have our own competing release track under the same name
  3. with Multi-Geth barely being maintained, we need to make our repository stand out as independent project
  4. changing client identifiers helps with analyzing the health of the network

Support EVMC6

my kotti authority node keeps falling out of sync

Migrated from: etclabscore/multi-geth-fork#49
Original author: @meowsbits


This is the latest case, the mismatching block (my current head which is different than canonical):

> eth.getBlock("latest", true);
{
  difficulty: 1,
  extraData: "0x455443204c616273204b6f74746900000000000000000000000000000000000063bfd5ae04df0435987ef8928aaa6c3882d591b70c3344c51db40c273c59352d6e818826fd03f35a5c44c2ab49c446acd051d9b34504d851fbb7a5b7590cbd3c00",
  gasLimit: 8000000,
  gasUsed: 0,
  hash: "0x4497aa8619d3ec1ae177ffa12d9e65b94975e50f8a866621ee653987c4ad33ea",
  logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  miner: "0x0000000000000000000000000000000000000000",
  mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
  nonce: "0x0000000000000000",
  number: 1265038,
  parentHash: "0xc695c15cebb690cffa48e27c310f8738450e100b19e3f2d3b0c94458e8416221",
  receiptsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
  sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  size: 609,
  stateRoot: "0x8627b1972780da86ab7781cb8cb97a8756e83040f110b0e1f2cc45e4fcd33ff8",
  timestamp: 1572865977,
  totalDifficulty: 1957838,
  transactions: [],
  transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
  uncles: []
}
> web3.toAscii(eth.getBlock("latest", true).extraData);
"ETC Labs Kotti\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00c¿Õ®\x04ß\x045\u0098~ø\u0092\u008aªl8\u0082Õ\u0091·\f3DÅ\x1d´\f'<Y5-n\u0081\u0088&ý\x03óZ\D«IÄF¬ÐQÙ³E\x04ØQû·¥·Y\f½<\x00"

Visible in this screenshot:
Screenshot_20191107_100423


  • The block authorities are different; my block has ETC Labs as the block signer (via block extra data), while canonical reports notti-kotti-... as the block maker.
  • Canonical includes a transaction, mine does not.

Mismatch block JSON comparison

Mine:

{
  "jsonrpc": "2.0", 
  "id": 1, 
  "result": {
    "difficulty": "0x1", 
    "extraData": "0x455443204c616273204b6f74746900000000000000000000000000000000000063bfd5ae04df0435987ef8928aaa6c3882d591b70c3344c51db40c273c59352d6e818826fd03f35a5c44c2ab49c446acd051d9b34504d851fbb7a5b7590cbd3c00", 
    "gasLimit": "0x7a1200", 
    "gasUsed": "0x0", 
    "hash": "0x4497aa8619d3ec1ae177ffa12d9e65b94975e50f8a866621ee653987c4ad33ea", 
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 
    "miner": "0x0000000000000000000000000000000000000000", 
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", 
    "nonce": "0x0000000000000000", 
    "number": "0x134d8e", 
    "parentHash": "0xc695c15cebb690cffa48e27c310f8738450e100b19e3f2d3b0c94458e8416221", 
    "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 
    "size": "0x261", 
    "stateRoot": "0x8627b1972780da86ab7781cb8cb97a8756e83040f110b0e1f2cc45e4fcd33ff8", 
    "timestamp": "0x5dc007b9", 
    "totalDifficulty": "0x1ddfce", 
    "transactions": [], 
    "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 
    "uncles": []
  }
}

Canonical (via https://explorer.jade.builders/block/0xcaebe0b74c52658891a318bb0ecd6e08fb2c9ada52fd8499ec05dc783a7928c0/raw?network=kotti):

{
    "difficulty": "0x1",
    "extraData": "0x6e6f7474692d6b6f747469000000000000000000000000000000000000000000224d7eced4ee3a781babd1ecc138e045b1a3c07768e6f199aa09ec97168355942c1ab0fe32e0e7ad6230378ae49bf7d4c220635a275fcee592da7eedea4e219601",
    "gasLimit": "0x7a1200",
    "gasUsed": "0x5208",
    "hash": "0xcaebe0b74c52658891a318bb0ecd6e08fb2c9ada52fd8499ec05dc783a7928c0",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "miner": "0x0000000000000000000000000000000000000000",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0x0000000000000000",
    "number": "0x134d8e",
    "parentHash": "0xc695c15cebb690cffa48e27c310f8738450e100b19e3f2d3b0c94458e8416221",
    "receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "size": "0x2d0",
    "stateRoot": "0xacd47979435487a7d071e92d49fb288a3b0adf6ab104d391bd28058df6cacc54",
    "timestamp": "0x5d89cab1",
    "totalDifficulty": "0x1ddfce",
    "transactions": [
        {
            "blockHash": "0xcaebe0b74c52658891a318bb0ecd6e08fb2c9ada52fd8499ec05dc783a7928c0",
            "blockNumber": "0x134d8e",
            "from": "0xc58299aa649ae63d3362a6fb6b19946a36746d61",
            "gas": "0x877f8",
            "gasPrice": "0x77359400",
            "hash": "0xece844c6f45c812ab33ba6800c47727c2f976cf657cbe8d6cc082a2c207933e1",
            "input": "0x",
            "nonce": "0x0",
            "to": "0xab8137f2a142b7fb615d7f41fff95e6a36772c4e",
            "transactionIndex": "0x0",
            "value": "0x5af3107a4000",
            "v": "0x30",
            "r": "0x5be1535281cff6ffe6608be828061c538c72790fe08cf75662b2cf77bc96dcad",
            "s": "0x15b4553ab3642933a80f12eeb7e7ef41f27a232675ec70160cd7d04732d790c4"
        }
    ],
    "transactionsRoot": "0x043d6ed6fdb463918ff42cc0935db64cb6a52b4f87c77a7f78413cfebe9efc2f",
    "uncles": []
}

Environment and parameters

I am running geth with the following command:

/root/go/src/github.com/ethereum/go-ethereum/build/bin/geth --kotti --networkid 6 --lightserv 50 --miner.etherbase 0x009bd67e2d46db4e2c948d89dfdc511723495e55 --miner.extradata "ETC Labs Kotti" --mine --unlock 0x009bd67e2d46db4e2c948d89dfdc511723495e55 --password /root/kottipassword.txt --bootnodes enode://06333009fc9ef3c9e174768e495722a7f98fe7afd4660542e983005f85e556028410fd03278944f44cfe5437b1750b5e6bd1738f700fe7da3626d52010d2954c@51.141.15.254:30303 --ethstats "ETC Labs Kotti #0, meow":password@wss://stats.kotti.goerli.net
$ geth version
MultiGeth
Version: 1.9.4-unstable
Git Commit: b0c64213331f67fe4d3e6b251f87c777a4261f1e
Git Commit Date: 20191019
Architecture: amd64
Protocol Versions: [63]
Network Id: 1
Go Version: go1.11.5
Operating System: linux
GOPATH=/root/go
GOROOT=/usr/local/go
root@etclabs-kotti:~# uname -a
Linux etclabs-kotti 4.4.0-141-generic #167-Ubuntu SMP Wed Dec 5 10:40:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

feat: chainconfig iface use array to represent feature enablement

Migrated from: etclabscore/multi-geth-fork#138
Original author: @meowsbits


ECIP1078 proposes to Disable EIP2200. Disabling features happens more rarely than enabling them, but this will not be the first case (nor likely the last).

The current interface here and in other clients treats Fork Features as one-time-on values, and disabling them requires adhoc one-time-off configuration and supportive business logic. This is pretty ugly.

Proposing here to use instead an idea of "Feature Enabled Ranges" which would be arrays of block numbers, rather than lone number values.

eg.

FeatureATransitions = [1420000] // Enable feature without (ever, yet) disabling
FeatureBTransitions = [1420000, 1950000] // Enable feature from blocks 1420000 through 1950000
FeatureCTransitions = [1420000, 1950000, 2120000] // Enable, disable, then reenable the feature.

All mod%1=1 index array values are enabling feature, all ==0 are disabling.

Rel #137

Feature: ChainConfigurator, use interface for chain configuration

Migrated from: etclabscore/multi-geth-fork#68
Original author: @meowsbits


Interfaces are currently used for several important data types:

  • ChainReader (implemented by core.HeaderChain and core.BlockChain)
  • Engine
  • core.BlockValidator, etc.

https://github.com/etclabscore/multi-geth/blob/master/consensus/consensus.go#L32

We should use an interface for chain configuration as well (eg type ChainConfigurator interface {...}. This is of particular importance for our growing chain config which has now far-overgrown the upstream implementation. The effort would be in order to establish common patterns of configuration implementation, to enable translation/conversion between configuration data types, and to further un-hardcode some of the configuration opinions.

Doing so would enable various Chain Configurations (ethereum/go-ethereum, parity, multi-geth, even Aleth, PyEthereum, Besu??...) to run "natively" w/o awkward adhoc conversion methods (https://github.com/etclabscore/multi-geth/blob/feat/x-chainspec-types-and-tests/params/convert/parity.go#L321, https://github.com/ethereum/go-ethereum/blob/master/cmd/puppeth/genesis.go#L366). It would also greatly simplify and validate some testing workarounds (https://github.com/etclabscore/multi-geth/blob/feat/x-chainspec-types-and-tests/tests/params.go#L136)

Essentially this helps us pay back some of the technical debt we've inherited from upstream opinions.

Rel #67

rpc api: eth.getHashrate() != miner.getHashrate()

> console.log(Date(), web3.version.node, eth.blockNumber, eth.syncing, admin.peers.length, eth.mining, eth.getHashrate(), miner.getHashrate());          
Sat, 21 Mar 2020 10:49:30 UTC CoreGeth/v1.11.2-stable-cbe4a649/linux-amd64/go1.13.5 1082159 false 12 true undefined 0     

clique perpetual resync from ~block3000

Visible on Kotti.

For some geth clients on Kotti (a clique consensus network), they can be seen to sync with the network and then eventually "rewind"/"fall back"/whatever to about block 3000, and then do a whole lot of heavy sidechain imports.

More information and investigation to follow.


  • An example log file which has been filtered to try to show most relevant lines: https://gist.github.com/4fc03ad11e22ce8c1de032b4add94b96

    • (the "filter" i mean is just cat core-geth.kotti.fullsync.service.logs | grep -v -E '(admin_peers|stats|peer|Suppressed|Deref|handshake|Served|Writing prev|Inserted known|QoS|Bad packet|Revalidated node|Removed dead node|Bad discv4)' > core-geth.kotti.resync.log.filtered)

docs/core: handle these

I kind of hid them there with #60 ... they are just loosely-categorized docs taken cut-and-paste from the original README.md.

  • revise them to fit core-geth better, vs. go-ethereum.
    • fix links
    • tweak cli flags/usage
    • update ./cmd/ directory information
  • integrate them with http://core-geth.org somehow.

Rel #61

core/[state|vm],trie: inspect and test getbalance costs for DNE addrs

Migrated from: https://api.github.com/repos/etclabscore/multi-geth-fork/issues/152
Original author: @meowsbits


Benchmarks for DNE (Do Not Exist) address BALANCE calls.

> go test -bench Benchmark.*GetBalance ./core/state/...
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/core/state
BenchmarkStateDB_GetBalance_Existing-12          2528650
490 ns/op
BenchmarkStateDB_GetBalance_DNE-12                252471
4267 ns/op
PASS
ok      github.com/ethereum/go-ethereum/core/state      10.503s

> go test -bench Benchmark.*BalanceDNE ./core/vm/...
PASS
ok      github.com/ethereum/go-ethereum/core/vm 0.155s
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/core/vm/runtime
BenchmarkEVM_BalanceDNE_Gas40-12                   42105
28429 ns/op
BenchmarkEVM_BalanceDNE_Gas400-12                  43124
28241 ns/op
BenchmarkEVM_BalanceDNE_Gas4000-12                 30919
39121 ns/op
BenchmarkEVM_BalanceDNE_Gas40000-12                 9037
155781 ns/op
BenchmarkEVM_BalanceDNE_Gas004Gwei-12                 10
127698023 ns/op
BenchmarkEVM_BalanceDNE_Gas04Gwei-12                   1
1098864244 ns/op
BenchmarkEVM_BalanceDNE_Gas4Gwei-12                    1
11883739376 ns/op
BenchmarkEVM_BalanceDNE_Gas40Gwei-12                   1
119108679718 ns/op
PASS
ok      github.com/ethereum/go-ethereum/core/vm/runtime 139.523s

Signed-off-by: meows [email protected]

extricate network configuration defaults

Like ethereum/go-ethereum, this codebase includes params/ for specific network configuration values (default configurations, and one enabled default network config).

This issue proposes to remove all default configurations from the code base, focusing and orienting the codebase and its derivative applications to implement the protocol in a network-agnostic way.

This frees the software and maintainers from the burden of arbitrating incidentally-canonical and possibly contentious network specifications (as evidenced and shown in the ECIP1061/ECIP1072 indecision riff at multi-geth/multi-geth), and positions the community(ies) to leverage community-driven and -available specifications.

Details on structure and process TBD.

Sync is so slow.

Geth version: v1.11.1
OS & Version: Ubuntu

I tried to download all blocks as full sync. It was fast but sync speed was so slow in some point at 9670000. Am I doing wrong?? Any help/comment will help me a lot. Thank you for your support as always. :)

======================
current block

currentBlock: 9679390,
highestBlock: 9679544,
knownStates: 489292493,
pulledStates: 489292493,
startingBlock: 9679469

======================
Below is my log file.

76: cumulative: 4977974 gas: 21000 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0x9e800c550ee5dbdaa2d10277e41e8a1e1eca8fce78ffe49 3ba1d7162ab79b4bc logs: [] bloom: 0000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000 state:
77: cumulative: 5014563 gas: 36589 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0xfdcd94cc07c31277ab928b274a1e9fc5f06b3aa906fc112 873f6c3f16687315c logs: [0xc028254e70] bloom: 0000000000000010000000000000100000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000040000008000000000000000000000010000000000000000000 00000000000000000000020000000000000000000000000080001000000000000000000000000000 00000000000000000000000000000000000000000000008000000000000000000200000000000000 00000000000000000000000000000000000002000000000000000000000004000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000 s tate:
78: cumulative: 5055772 gas: 41209 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0xec0e835ec6ce56cbb98ae42c6fe7dca81ea422b4da4be0d e6b6c4944e2cb3411 logs: [0xc028254f20] bloom: 0100000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000100000000000000000000 00000000000000000000000008000000000008000010000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000001000000000000000000000000000 00000000000000000000000000000000000000001000000000000000000001000000800000000000 00000000000000000000000000000000000002000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000008000000000000020000 s tate:
79: cumulative: 5095064 gas: 39292 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0x62782156aab13733cea691568d38407935a2973da6cb5e8 5d28927562adb25e4 logs: [0xc028254fd0] bloom: 0000000000000000000000000000000000 00000000000008000000000000000004000000000000000000000000000000000000000000000000 00000000001000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000100 00000000000000000000000000000004000008000000000000000000000000000000000000000000 00000000000000000000000000000000000000004000000000000000000000000000000000000001 000000000000000000000000000000000000000000000000000000000000000000000000000000 s tate:
80: cumulative: 5146248 gas: 51184 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0x8e835a4e242dca38928088b7be1767e1b67e583e6568c39 0d600c13f5b72a069 logs: [0xc028255080] bloom: 0000000000000000000000000000000000 00000000000000000000000000800000000000000000000000000000000000000000000000000000 00000000000000000000000000000080000008000000000000000000000000000000000000000000 00000000000000000000400000000020000000000000000000001000000000000080000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000802000020000000000000000000000000000000000000 000000000000000000000000000000000800000000000000000000000000000000000040000000 s tate:
81: cumulative: 5182972 gas: 36724 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0x94a95cae19d3201e1785befae22922111239a8f7f7f6ca6 758ef4af09b042128 logs: [0xc028255130] bloom: 0000000000000000000000000000000000 00000000000000000000000000000000000000000020000000000000000000000000000000000000 40000000000000000000000000000000000008000000020000080000000000000000000000000000 00000000000000000000000000000000000000000000000000001000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000800000000 00000000000000000000000000000100000002000000000000000000000000000000000000000001 000000000000000000004000000000000000000000000000000000000000000008000000000000 s tate:
82: cumulative: 5203972 gas: 21000 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0x6d85da52259712109f1c9c7d63b335f7a713d858ef911f8 5519b5b8a9fb2bb9f logs: [] bloom: 0000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000 state:
83: cumulative: 5224972 gas: 21000 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0xa4a958965f7d5fdc5b07a0e8b9b925775a14457111ffd47 5af8812e643573f60 logs: [] bloom: 0000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000 state:
84: cumulative: 5505330 gas: 280358 contract: 0x00000000000000000000000 00000000000000000 status: 1 tx: 0x05cf5ec99628ed509e2f1bd38055eaec8c1e3c84d125fb 154b2d502d0552c657 logs: [0xc0282551e0] bloom: 000000000000000000000000000000000 00000000000020000000000000000000000000000000000000000000000000000000000000000200 00000000020000000000000010000000000000000000000400000000000800000000000010000000 00000400000000400000000000000000000000000000000000000000000000000000000000000000 00000000000000000001000000000220000000000000000000800000000000000000000000000000 00000000000000000000000000001000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000800000 state:
85: cumulative: 5526330 gas: 21000 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0x97ea613d80a11d900b059324815d75c218ae4a150b3cd44 afba3c7f4d96d4491 logs: [] bloom: 0000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000 state:
86: cumulative: 9872024 gas: 4345694 contract: 0x0000000000000000000000 000000000000000000 status: 1 tx: 0x7a7fcd659845ed53f7b48085e1c2dfe118f9e2ff1be98 4415ec978cd9c46e77d logs: [] bloom: 00000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000 state:
87: cumulative: 9918447 gas: 46423 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0xd45c0654365aa32d7bc03f53574aafe427db8d7547c1aa8 619e1061dfdad08d7 logs: [0xc028255290] bloom: 0000000000000000000000000000000000 00000000000008100000000000000000000000000000000000000000000000000000000000000000 00000000001000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000180000000000000000000002000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000100000000000004000008000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000 s tate:
88: cumulative: 9943010 gas: 24563 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0x95281c89c3329bf9b23abfa575f71bb97e962e9de147889 cc92b455a4746339d logs: [0xc028255340] bloom: 0000000000000000000000000000000000 00000000000000000000000000000000000000080000000000000000000000000000000000800000 00000000000000000000000000000000000008000000000000000000000000000000000000000000 00000040000000000000000000000000000000000000000000001000000000000000000000000000 00000000000000800000000000000000800000000000000000000008000000000000000000008000 00000000000000000000000000000000000002000000000000000000000000000000000000000000 000000001000000000000000000000000000000000000000000000000000000000000000020000 s tate:
89: cumulative: 9965351 gas: 22341 contract: 0x000000000000000000000000 0000000000000000 status: 1 tx: 0xbddf164efd0591a89e939caea97f8974db4ec1afe18c8bc 54e06ce034df209de logs: [0xc0282553f0] bloom: 0000000000000000000000000000000000 00008000000000000000000000000000000000000000000000080000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000400000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00002000000000000000000000000000000000000000000000000000000040000000000000010000 000000000000000000000000000000000000000000000000000000000000000000000000000000 s tate:

Error: invalid merkle root (remote: eb16844aad70eaa03cd24e0c3a06447baa72fd6858dd 0f41fe462a7d8b62a1ef local: 63cd7f2d28b429de5ac471570d1ed5c2cc768ac94262537eb203 9678d79f4193)
##############################

WARN [03-16|01:10:08.737] Synchronisation failed, dropping peer peer=8165f2a6 2cebd2f4 err="retrieved hash chain is invalid"

"re-correct" EIP2200 (SLOAD gas does not shift to 800 via this EIP)

EIP2200 was "fixed" with etclabscore/multi-geth-fork#144 (see documented refs there).

But, as it would appear now, EIP2200 does not actually specify SLOAD gas to 800; rather, it depends on EIP1884, which does makes that specification. Instead, EIP2200 (silently, not explicitly in its specification) requires EIP1884 as a precondition for algorithmic soundness.

This means that by the hard spec the "original" etclabscore/multi-geth(-fork) implementation was actually correct.

This will also invalidate EIP1086, which was originally documented as a PR here: etclabscore/multi-geth-fork#151, and merged to this codebase here 57eef09. With this "retrospective allowance" becoming nullified, those changes should at least be un-enabled if not un-implemented totally.

To capture the (technically undocumented, basically just on twitter) intention of EIP2200, the code should implement logic which requires EIP1884 as a condition of EIP2200 enablement. (This should be it's own issue and change set.)

Applying 2200 without 1884 was never intended and is in fact buggy (SLOAD/SSTORE gas costs are quite messed up in that situation)
ethereum/EIPs#2514 (comment)
2020-02-21-075845_921x245_screenshot

typed rpc responses

Rel #66

  • Cases where the return type is ambiguous, like map[string]interface{}, can only get reflected to very basic schema types, like object, which doesn't provide much value for API definition consumers. Sometimes this is done as a way to get desired json marshaling properties. A good example of this is as follows.
// GetHeaderByHash returns the requested header by hash.
func (s *PublicBlockChainAPI) GetHeaderByHash(ctx context.Context, hash common.Hash) map[string]interface{} {
	header, _ := s.b.HeaderByHash(ctx, hash)
	if header != nil {
		return s.rpcMarshalHeader(header)
	}
	return nil
}

which implements eth_getHeaderByHash, and generates sparse documentation like:

image

This can be fixed by implementing a type/marshaling sheme for these structures that can be parsed by the jsonschema package.

feat: bootnodes healthcheck CI (& generator/aggregator?)

Migrated from: etclabscore/multi-geth-fork#141
Original author: @meowsbits


Bootnodes are nodes that "cold" clients (protocol providers) use to establish a connection with the peer-to-peer network. Inadequate bootnodes for a network can cause either slow or impossible network connections.

Bootnode lists are currently hardcoded for each supported network. But liveness (useability) checks are never systematically undertaken, which can cause p2p issues if the lists get invalidated. The current system for bootnode addition is essentially that a node or nodes are proposed, a developer reviews the proposed enodes by pinging them manually (over an arbitrary and variable time course), and then approves the addition. Same, but backwards, for removal.

This feature prop wants to establish a system for

  • bootnode list health checks to be undertaken systematically via a CI environment, where given parameters, inadequate bootnode lists can be flagged for review, purging of dead nodes, and addition of new ones
  • ideally, an environment which could not only provide a health check, but also provide information that could be used in the generation of healthy lists

This would remove tedious developer burden, reduce connection failures, and, in essence, move toward systematizing variables for a critical first process for all devp2p networks.

make all: segmentation fault cmd/wnode (gcc failed)


System and Version Info

  • OS: Ubuntu 18.04.3 LTS (bionic)
gcc version: gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) 
go version go1.13.5 linux/amd64
node version: v13.6.0
npm version: 6.13.7
Python 3.6.8

git checkout v1.11.1
make all
github.com/ethereum/go-ethereum/p2p/simulations
github.com/ethereum/go-ethereum/cmd/p2psim
github.com/ethereum/go-ethereum/p2p/testing
github.com/ethereum/go-ethereum/p2p/simulations/examples
github.com/ethereum/go-ethereum/les
github.com/ethereum/go-ethereum/ethstats
github.com/ethereum/go-ethereum/mobile
github.com/ethereum/go-ethereum/cmd/faucet
github.com/ethereum/go-ethereum/cmd/utils
github.com/ethereum/go-ethereum/cmd/bootnode
github.com/ethereum/go-ethereum/cmd/abigen
github.com/ethereum/go-ethereum/cmd/checkpoint-admin
github.com/ethereum/go-ethereum/cmd/ethkey
github.com/ethereum/go-ethereum/cmd/evm
github.com/ethereum/go-ethereum/cmd/clef
github.com/ethereum/go-ethereum/cmd/geth
github.com/ethereum/go-ethereum/cmd/wnode
# github.com/ethereum/go-ethereum/cmd/wnode
unexpected fault address 0x7f90f35c3000
fatal error: fault
[signal SIGBUS: bus error code=0x2 addr=0x7f90f35c3000 pc=0x45baea]

goroutine 1 [running]:
runtime.throw(0x690f25, 0x5)
        /usr/local/go/src/runtime/panic.go:774 +0x72 fp=0xc0007c9018 sp=0xc0007c8fe8 pc=0x42dc42
runtime.sigpanic()
        /usr/local/go/src/runtime/signal_unix.go:391 +0x455 fp=0xc0007c9048 sp=0xc0007c9018 pc=0x442be5
runtime.memmove(0x7f90f35c07f1, 0xc011bfe000, 0x3dd5)
        /usr/local/go/src/runtime/memmove_amd64.s:363 +0x42a fp=0xc0007c9050 sp=0xc0007c9048 pc=0x45baea
cmd/link/internal/ld.(*OutBuf).Write(0xc0000828c0, 0xc011bfe000, 0x3dd5, 0x5000, 0x5b, 0x0, 0x0)
        /usr/local/go/src/cmd/link/internal/ld/outbuf.go:65 +0xa0 fp=0xc0007c90a0 sp=0xc0007c9050 pc=0x5ac560
cmd/link/internal/ld.(*OutBuf).WriteSym(0xc0000828c0, 0xc00be50070)
        /usr/local/go/src/cmd/link/internal/ld/outbuf.go:159 +0x6c fp=0xc0007c90f0 sp=0xc0007c90a0 pc=0x5acd2c
cmd/link/internal/ld.blk(0xc0000828c0, 0xc012924000, 0x10a24, 0x11400, 0x1ff17f1, 0x1164db9, 0x8771e0, 0x200, 0x200)
        /usr/local/go/src/cmd/link/internal/ld/data.go:786 +0x10f fp=0xc0007c91c0 sp=0xc0007c90f0 pc=0x5599af
cmd/link/internal/ld.Dwarfblk(0xc0006d6000, 0x17f0000, 0x1164db9)
        /usr/local/go/src/cmd/link/internal/ld/data.go:899 +0xaf fp=0xc0007c9260 sp=0xc0007c91c0 pc=0x55aaef
cmd/link/internal/amd64.asmb(0xc0006d6000)
        /usr/local/go/src/cmd/link/internal/amd64/asm.go:706 +0x2f7 fp=0xc0007c92d0 sp=0xc0007c9260 pc=0x5d1e57
cmd/link/internal/ld.Main(0x84bdc0, 0x10, 0x20, 0x1, 0x7, 0x10, 0x69ac6c, 0x1b, 0x697753, 0x14, ...)
        /usr/local/go/src/cmd/link/internal/ld/main.go:262 +0xd5d fp=0xc0007c9428 sp=0xc0007c92d0 pc=0x5ab5ad
main.main()
        /usr/local/go/src/cmd/link/main.go:65 +0x1d6 fp=0xc0007c9f60 sp=0xc0007c9428 pc=0x614616
runtime.main()
        /usr/local/go/src/runtime/proc.go:203 +0x21e fp=0xc0007c9fe0 sp=0xc0007c9f60 pc=0x42f5de
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc0007c9fe8 sp=0xc0007c9fe0 pc=0x45a511
# github.com/ethereum/go-ethereum/cmd/geth
/home/ia/go1.13.5.linux-amd64/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
collect2: error: ld returned 1 exit status

util.go:45: exit status 2
exit status 1
Makefile:21: recipe for target 'all' failed

Though ./build/bin/geth still works.

un"hardcode" setting chain configuration

Migrated from: etclabscore/multi-geth-fork#67
Original author: @meowsbits


this needs improving:

https://github.com/etclabscore/multi-geth/blob/master/cmd/utils/flags.go#L1567-L1623

having "hardcoded" switches for default chain configs everywhere is too complex and too redundant and leaves too many opportunities for errors and inconsistencies:

much of this is because of crufty, brittle code (inheriting code where these cases have been carelessly hardcoded with approaching infinite opinionation).

I'm not sure the best pattern for approach yet. Big global? Moar interfaces? Mmmm..

Rel #63

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.