Péter Szilágyi
dde2da0efb
all: remove ethash pow, only retain shims needed for consensus and tests ( #27178 )
...
* all: remove ethash pow, only retain shims needed for consensus and tests
* all: thank you linter
* all: disallow launching Geth in legacy PoW mode
* cmd/env/internal/t8ntool: remove dangling ethash flag
2 years ago
Péter Szilágyi
d3ece3a07c
cmd/utils, node: switch to Pebble as the default db if none exists ( #27136 )
...
* cmd/utils, node: switch to Pebble as the default db if none exists
* node: fall back to LevelDB on platforms not supporting Pebble
* core/rawdb, node: default to Pebble at the node level
* cmd/geth: fix some tests explicitly using leveldb
* ethdb/pebble: allow double closes, makes tests simpler
2 years ago
Martin Holst Swende
ed51b8c5d3
ethdb: pebble backend (64bit platforms only) ( #26517 )
...
* ethdb: use pebble
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
foo
update
* apply suggested changes
* flags: go format
node: fix ddir lookup mistake
accounts/abi/bind: fix go.mod replacement for generated binding
deps: update pebble + with fix 32-bit build
* ethdb/pebble: respect max memtable size
* core/rawdb, ethdb: enable pebble on non-32bit platforms only
* core/rawdb: fix build tags, fix some review concerns
* core/rawdb: refactor methods for database opening
* core/rawdb: remove erroneous build tag
* cmd/geth: fix the flag default handling + testcase
* cmd/geth: improve testing regarding custom backends
* ethdb/pebble, deps: update pebble dependency
* core/rawdb: replace method with Open
* ethdb/pebble: several updates for pebble (#49 )
* ethdb/pebble: fix size count in batch
* ethdb/pebble: disable seek compaction
* ethdb/pebble: more fixes
* ethdb, core, cmd: polish and fixes (#50 )
* cmd/utils, core/rawdb, ethdb/pebble: address some review concerns
* Update flags.go
* ethdb/pebble: minor refactors
* ethdb/pebble: avoid copy on batch replay
* ethdb: fix compilation flaw
* cmd: fix test fail due to mismatching error message
* cmd/geth, node: rename backingdb to db.engine
---------
Co-authored-by: Jared Wasinger <j-wasinger@hotmail.com>
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2 years ago
Marius van der Wijden
3b2a6b34d9
cmd/geth: eth/catalyst: enable authrpc by default ( #25152 )
...
* cmd/geth: eth/catalyst: enable authrpc by default
* eth/catalyst: rename catalyst -> Engine API in logs
* eth/catalyst: don't panic
2 years ago
Håvard Anda Estensen
07508ac0e9
all: replace uses of ioutil with io and os ( #24869 )
3 years ago
Eng Zer Jun
8d066f1f42
all: use T.TempDir to create temporary test directories ( #24633 )
...
This commit replaces ioutil.TempDir with t.TempDir in tests. The
directory created by t.TempDir is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using ioutil.TempDir
had to be removed manually by calling os.RemoveAll, which is omitted in
some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but t.TempDir handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
Martin Holst Swende
2e7714f864
cmd/utils: avoid large alloc in --dev mode ( #22949 )
...
* cmd/utils: avoid 1Gb alloc in --dev mode
* cmd/geth: avoid 512Mb alloc in genesis query tests
4 years ago
Guillaume Ballet
c7a6be163f
cmd/utils: don't enumerate USB unless --usb is set ( #22130 )
...
USB enumeration still occured. Make sure it will only occur if --usb is set.
This also deprecates the 'NoUSB' config file option in favor of a new option 'USB'.
4 years ago
Martin Holst Swende
aba0c234c2
cmd/geth: make tests run quicker + use less memory and disk ( #21919 )
4 years ago
Péter Szilágyi
f52ff0f1e9
cmd/geth: fix the fork orders for DAO tests
4 years ago
Martin Holst Swende
228a297056
cmd/geth: fix bad genesis test ( #20860 )
5 years ago
nobody
8db8d074e2
cmd/geth: remove the tail "," from genesis config ( #17028 )
...
remove the tail "," from genesis config, which will cause genesis config parse error .
6 years ago
Lewis Marshall
a1f3878ec5
swarm/test: add integration test for 'swarm up' ( #14353 )
7 years ago
Felix Lange
de54273f51
cmd/geth: fix port clash in genesis test
8 years ago
Péter Szilágyi
a87089fd2d
cmd, core, miner: add extradata validation to consensus rules
8 years ago
Péter Szilágyi
1e24c2e4f4
cmd/geth, miner, params: special extradata for DAO fork start
8 years ago
Péter Szilágyi
9e56811a37
core: gracefully handle missing homestead block config
8 years ago