gary rong
6283391c99
core/rawdb: improve table database ( #20703 )
...
This PR fixes issues in TableDatabase.
TableDatabase is a wrapper of underlying ethdb.Database with an additional prefix.
The prefix is applied to all entries it maintains. However when we try to retrieve entries
from it we don't handle the key properly. In theory the prefix should be truncated and
only user key is returned. But we don't do it in some cases, e.g. the iterator and batch
replayer created from it. So this PR is the fix to these issues.
5 years ago
meowsbits
20a092fb9f
core/rawdb: fix freezer table test error check
...
Fixes: Condition is always 'false' because 'err' is always 'nil'
5 years ago
Alex Willmer
5dd0cd12ec
go.mod: update duktape to fix sprintf warnings ( #20777 )
...
This revision of go-duktype fixes the following warning
```
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
In file included from /usr/include/stdio.h:867,
from duk_logging.c:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 25 and 85 bytes into a destination of size 32
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
5 years ago
gary rong
efd92d81a9
cmd/checkpoint-admin: add some documentation ( #20697 )
5 years ago
Péter Szilágyi
8d7aa9078f
params: begin v1.9.13 release cycle
5 years ago
Péter Szilágyi
b6f1c8dcc0
params: release Geth v1.9.12
5 years ago
winsvega
97243f3a76
geth retesteth: increase retesteth default http timeouts ( #20767 )
5 years ago
Péter Szilágyi
241b283690
Merge pull request #20747 from karalabe/update-crypto-deps
...
go.mod: update golang.org/x/crypto to fix a Go 1.14 race rejection
5 years ago
Péter Szilágyi
466b009135
go.mod: update golang.org/x/crypto to fix a Go 1.14 race rejection
5 years ago
Péter Szilágyi
68b4b74682
Merge pull request #20762 from karalabe/fix-txprop-leak
...
eth: fix transaction announce/broadcast goroutine leak
5 years ago
Péter Szilágyi
270fbfba4b
eth: fix transaction announce/broadcast goroutine leak
5 years ago
gary rong
92f3405dae
eth, les: fix time sensitive unit tests ( #20741 )
5 years ago
Felix Lange
b1efff659e
rpc: improve cancel test ( #20752 )
...
This is supposed to fix the occasional failures in
TestCancel* on Travis CI.
5 years ago
meowsbits
0bdb21f0cb
tests: update tests/testdata@develop, include EIP2384 config ( #20746 )
...
Includes difficulty tests for EIP2384 aka MuirGlacier.
5 years ago
Péter Szilágyi
fab0ee3bfa
core/state/snapshot: fix various iteration issues due to destruct set
5 years ago
Martin Holst Swende
bc5d742c66
core: more blockchain tests
5 years ago
Martin Holst Swende
eff7cfbb03
core/state/snapshot: handle deleted accounts in fast iterator
5 years ago
Péter Szilágyi
328de180a7
core/state: fix resurrection state clearing and access
5 years ago
Péter Szilágyi
dcb22a9f99
core/state: fix account root hash update point
5 years ago
Péter Szilágyi
a4cf279494
core/state: extend snapshotter to handle account resurrections
5 years ago
Péter Szilágyi
6e05ccd845
core/state/snapshot, tests: sync snap gen + snaps in consensus tests
5 years ago
Ali Atiia
556888c4a9
core/vm: fix method doc ( #20730 )
...
typo in func name in the comment
5 years ago
Martin Holst Swende
fe8347ea8a
squashme
5 years ago
Martin Holst Swende
361a6f08ac
core/tests: test for destroy+recreate contract with storage
5 years ago
rene
01d92531ee
rpc: correct typo and reword comment for consistency ( #20728 )
5 years ago
Péter Szilágyi
92ec07d63b
core/state: fix an account resurrection issue
5 years ago
Felix Lange
1e1b18637e
p2p/discv5: fix test on go 1.14 ( #20724 )
5 years ago
Adam Schmideg
f1a7997af3
crypto/bn256: fix import line ( #20723 )
5 years ago
Felix Lange
cec1f292f0
mobile: add CallOpts.SetFrom ( #20721 )
...
This was missing because I forgot to wrap it when bind.CallOpts.From
as added.
5 years ago
gary rong
4fabd9cbd2
les: separate peer into clientPeer and serverPeer ( #19991 )
...
* les: separate peer into clientPeer and serverPeer
* les: address comments
5 years ago
Martin Holst Swende
fadf84a752
internal/ethapi: default to zero address for calls ( #20702 )
...
This makes eth_call and eth_estimateGas use the zero address
as sender when the "from" parameter is not supplied.
Co-authored-by: Felix Lange <fjl@twurst.com>
5 years ago
Péter Szilágyi
06d4470b41
core: fix broken tests due to API changes + linter
5 years ago
Martin Holst Swende
19099421dc
core/state/snapshot: faster account iteration, CLI integration
5 years ago
Péter Szilágyi
6ddb92a089
core/state/snapshot: full featured account iteration
5 years ago
Martin Holst Swende
e570835356
core/state/snapshot: implement iterator priority for fast direct data lookup
5 years ago
Péter Szilágyi
e567675473
core/state/snapshot: move iterator out into its own files
5 years ago
Martin Holst Swende
7e38996301
core/state/snapshot: implement snapshot layer iteration
5 years ago
Péter Szilágyi
22c494d399
core/state/snapshot: bloom, metrics and prefetcher fixes
5 years ago
Martin Holst Swende
3ad4335acc
core/state/snapshot: node behavioural difference on bloom content
5 years ago
Péter Szilágyi
fd39f722a3
core: journal the snapshot inside leveldb, not a flat file
5 years ago
Martin Holst Swende
d5d7c0c24b
core/state/snapshot: fix difflayer origin-initalization after flatten
5 years ago
Péter Szilágyi
351a5903b0
core/rawdb, core/state/snapshot: runtime snapshot generation
5 years ago
Martin Holst Swende
f300c0df01
core/state/snapshot: replace bigcache with fastcache
5 years ago
Péter Szilágyi
d754091a87
core/state/snapshot: unlink snapshots from blocks, quad->linear cleanup
5 years ago
Martin Holst Swende
cdf3f016df
snapshot: iteration and buffering optimizations
5 years ago
Péter Szilágyi
d7d81d7c12
core/state/snapshot: extract and split cap method, cover corners
5 years ago
Martin Holst Swende
e146fbe4e7
core/state: lazy sorting, snapshot invalidation
5 years ago
Péter Szilágyi
542df8898e
core: initial version of state snapshots
5 years ago
Boqin Qin
2a5ed1a1d3
eth/downloader: fix possible data race by inconsistent field protection ( #20690 )
5 years ago
Péter Szilágyi
bf1cdd723a
Merge pull request #20712 from karalabe/txfetcher-fix-test-randomness
...
eth/fetcher: remove randomness from test data
5 years ago