Péter Szilágyi
c4deebbf1e
core/state/snapshot: add generation logs to storage too
2021-01-15 12:26:46 +02:00
Péter Szilágyi
d13c59fef0
Merge pull request #22169 from karalabe/faucet-regen
...
cmd/faucet: update the embedded website asset
2021-01-14 12:19:57 +02:00
Péter Szilágyi
12969084d1
cmd/faucet: update the embedded website asset
2021-01-14 12:10:52 +02:00
Martin Holst Swende
96157a897b
graphql: fix spurious travis failure ( #22166 )
...
The tests sometimes failed with certain go versions because
the behavior of http.Server.Shutdown changed over time. A bug
that was fixed in Go 1.15 could cause active connections on unrelated
servers to close unexpectedly. This is fixed by avoiding use of the
same port number in all tests.
2021-01-13 22:43:07 +01:00
Marius van der Wijden
2aaff0ad76
consensus/ethash: increase seal timeout for tests ( #22162 )
...
It seems that the 2 second timeout is not enough for Travis CI:
--- FAIL: TestTestMode (2.00s)
ethash_test.go:53: sealing result timeout
2021-01-13 11:44:20 +01:00
Martin Holst Swende
6296211a3e
graphql: fix spurious error in test ( #22164 )
...
This solves an issue in graphql tests:
graphql_test.go:38: could not create new node: datadir already used by another process
2021-01-13 11:42:26 +01:00
Martin Holst Swende
c94081774f
tests: update the reference tests ( #22009 )
2021-01-13 11:29:28 +01:00
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'.
2021-01-13 11:14:36 +01:00
Martin Holst Swende
93a89b2681
go.mod: use github.com/holiman/bloomfilter/v2 ( #22044 )
...
* deps: use improved bloom filter implementation
* eth/handler, trie: use 4 keys for syncbloom + minor fixes
* eth/protocols, trie: revert change on syncbloom method signature
2021-01-12 17:39:31 +01:00
meowsbits
23f837c388
cmd/utils: avoid making console preloads absolute ( #22109 )
...
Resolves https://github.com/etclabscore/core-geth/issues/273
jsre.JSRE already handles establishing preload
file paths relative to the 'assets' path (aka docroot),
where it joins the assets dir and the file path if relative,
or uses the file path only if absolute.
The duplication of this logic by MakeConsolePreloads
caused preloaded files to have paths which contained
duplicate references to the assets dir path.
Date: 2020-12-30 08:25:01-06:00
Signed-off-by: meows <b5c6@protonmail.com>
2021-01-12 15:50:11 +01:00
rene
984e752ce5
eth: return error from eth_chainID during sync before EIP-155 activates ( #21686 )
...
This changes the chainID RPC method to return an error when EIP-155 is not yet
active at the current block height. It used to simply return zero in this case, but
that's confusing.
2021-01-12 10:52:13 +01:00
rene
39b3b8ffb4
graphql: fix issue with unmarshalling int32 into Long
type #22153
2021-01-11 14:55:42 +01:00
Marius van der Wijden
49c2816d54
eth: improve log message ( #22146 )
...
* eth: fixed typos
* eth: fixed log message
2021-01-11 12:53:13 +01:00
Péter Szilágyi
79e2174e4d
Merge pull request #22157 from karalabe/prque-tests
...
common/prque: pull in tests and benchmarks from upstream
2021-01-11 10:52:46 +02:00
zjubfd
b605f1f913
Merge pull request #63 from binance-chain/secure_patch
...
[R4R] security patch from go-ethereum
2021-01-11 16:43:45 +08:00
Péter Szilágyi
ab5e3f400f
common/prque: pull in tests and benchmarks from upstream
2021-01-11 10:31:03 +02:00
zjubfd
9fedf1909d
Merge pull request #53 from binance-chain/elegant_upgrade
...
[R4R]support fork id in header; elegant upgrade
2021-01-11 14:54:20 +08:00
fudongbai
24dc208170
avoid false warn log
2021-01-11 14:42:06 +08:00
fudongbai
60606d3919
support fork id in header; elegant upgrade
2021-01-11 13:54:35 +08:00
zjubfd
5a1c39da09
Merge pull request #60 from binance-chain/x-forward-for
...
[R4R] Add `x-forward-for` log message when handle message failed
2021-01-11 13:52:38 +08:00
zjubfd
cfeab77017
Merge pull request #61 from binance-chain/requestGauge
...
[R4R]add rpc method request gauge
2021-01-11 13:52:21 +08:00
Nishant Das
9e8ee517d7
p2p/discover: fix deadlock in discv5 message dispatch ( #21858 )
...
This fixes a deadlock that could occur when a response packet arrived
after a call had already received enough responses and was about to
signal completion to the dispatch loop.
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-01-11 11:27:17 +08:00
Felix Lange
ca1d1cb08d
p2p/enode: avoid crashing for invalid IP ( #21981 )
...
The database panicked for invalid IPs. This is usually no problem
because all code paths leading to node DB access verify the IP, but it's
dangerous because improper validation can turn this panic into a DoS
vulnerability. The quick fix here is to just turn database accesses
using invalid IP into a noop. This isn't great, but I'm planning to
remove the node DB for discv5 long-term, so it should be fine to have
this quick fix for half a year.
Fixes #21849
2021-01-11 11:26:39 +08:00
Fuyang Deng
670009d1e1
accounts/abi: fix a bug in getTypeSize method ( #21501 )
...
* accounts/abi: fix a bug in getTypeSize method
e.g. for "Tuple[2]" type, the element of the array is a tuple type and the size of the tuple may not be 32.
* accounts/abi: add unit test of getTypeSize method
2021-01-11 11:26:29 +08:00
Felix Lange
4608da6c13
rpc: fix issue with null JSON-RPC messages ( #21497 )
2021-01-11 11:23:44 +08:00
Marius van der Wijden
d1f95d5fd3
internal/ethapi: fix nil deref + fix estimateGas console bindings ( #21601 )
...
* tried to fix
* fix for js api
* fix for nil pointer ex
* rev space
* rev space
* input call formatter
2021-01-11 11:23:18 +08:00
Martin Holst Swende
ad3ff6452d
core: fix txpool off-by-one error ( #21683 )
2021-01-11 11:22:52 +08:00
6543
0a64615f1e
signer/storage: fix a badly ordered error check ( #21379 )
2021-01-11 11:22:25 +08:00
Slava Karpenko
2a79ac1622
consensus/ethash: use 64bit indexes for the DAG generation ( #21793 )
...
* Bit boundary fix for the DAG generation routine
* Fix unnecessary conversion warnings
Co-authored-by: Sergey Pavlov <spavlov@gmail.com>
2021-01-11 11:20:54 +08:00
fudongbai
0e797c53b7
add x-forward-for message in log
2021-01-11 10:49:34 +08:00
zjubfd
3f3f8d02cf
Merge pull request #59 from binance-chain/issue_58
...
[R4R]fix potential deadlock of pub/sub module
2021-01-11 10:40:14 +08:00
fudongbai
5bd73320ba
add rpc method request gauge
2021-01-10 22:01:20 +08:00
gary rong
5a1b384352
core: persist bad blocks ( #21827 )
...
* core: persist bad blocks
* core, eth, internal: address comments
* core/rawdb: add badblocks to inspector
* core, eth: update
* internal: revert
* core, eth: only save 10 bad blocks
* core/rawdb: address comments
* core/rawdb: fix
* core: address comments
2021-01-10 12:54:15 +01:00
Chris Ziogas
89030ec0b4
eth/downloader: fix race condition in tests ( #22140 )
...
* downloader: fix race condition in tests
* eth/downloader: fix race condition in tests
* Revert "downloader: fix race condition in tests"
This reverts commit 108033ebc6985de83791d375b6e6647a77d28d5a.
2021-01-09 17:29:19 +01:00
Marius van der Wijden
889f5645b5
ethclient: better test suite for ethclient package ( #22127 )
...
This commit extends the ethclient test suite and increases code coverage of the ethclient
package from ~15% to >55%. These tests act as early smoke tests to signal issues in the
RPC-interface. E.g. if a functionality like eth_chainId or eth_call breaks, the test
will break.
2021-01-08 21:29:25 +01:00
Martin Holst Swende
6b88ab75bc
cmd/faucet: fix nonce-gap problem ( #22145 )
...
* cmd/faucet: avoid encoding for each client
* cmd/faucet: fix flaw in clearing of txs, avoid sending more than necessary
* cmd/faucet: fix flaw in tx cropping
* cmd/faucet: revert change to not always send tx info
* cmd/faucet: review fixes
* cmd/faucet: revert #22018 , fix order in UI
* cmd/faucet: fix lock error
* cmd/faucet: revert json changes
* squashme
2021-01-08 12:17:15 +02:00
zjubfd
894b1e3c8d
Merge pull request #54 from binance-chain/fixLess
...
[R4R]les: fix GetProofsV2 bug (#21896 )
2021-01-08 16:47:59 +08:00
gary rong
165f53fc6e
les: remove transaction propagation limits ( #22125 )
2021-01-07 23:39:35 +01:00
Péter Szilágyi
d3952898c3
Merge pull request #22137 from karalabe/faucet-fb-fix
...
cmd/faucet: switch Facebook auth over to mobile site
2021-01-07 18:45:27 +02:00
Péter Szilágyi
3c6665e7d6
cmd/faucet: switch Facebook auth over to mobile site
2021-01-07 18:14:44 +02:00
Martin Holst Swende
4bb5c6ca7a
eth/protocols/snap: speed up hash checks ( #22023 )
...
* eth/protocols/snap: speed up hash checks
* eth/protocols/snap: nit fix
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-01-07 18:12:41 +02:00
Péter Szilágyi
38310f9022
Merge pull request #22136 from karalabe/faucet-websocket-fix
...
cmd/faucet: fix websocket race regression after switching to gorilla
2021-01-07 12:58:42 +02:00
Martin Holst Swende
58b9db5f7c
eth/protocols/snap: track reverts when peer rejects request ( #22016 )
...
* eth/protocols/snap: reschedule missed deliveries
* eth/protocols/snap: clarify log message
* eth/protocols/snap: revert failures async and update runloop
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-01-07 12:58:07 +02:00
Péter Szilágyi
44208d9258
cmd/faucet: fix websocket race regression after switching to gorilla
2021-01-07 10:23:50 +02:00
Péter Szilágyi
8bd8e1b24a
Merge pull request #22122 from karalabe/snapshot-polishes
...
cmd/utils, eth/downloader: minor snap nitpicks
2021-01-07 09:12:20 +02:00
Melvin Junhee Woo
d2e1b17f18
snapshot, trie: fixed typos, mostly in snapshot pkg ( #22133 )
2021-01-07 08:36:21 +02:00
rene
072fd96254
graphql: return decimal for estimateGas
and cumulativeGas
queries ( #22126 )
...
* estimateGas, cumulativeGas
* linted
* add test for estimateGas
2021-01-06 17:19:16 +01:00
Marius van der Wijden
d667ee2d10
crypto: fix ineffectual assignments ( #22124 )
...
* crypto/bls12381: fixed ineffectual assignment
* crypto/signify: fix ineffectual assignment
2021-01-06 13:06:44 +02:00
Péter Szilágyi
83d317cff9
cmd/utils, eth/downloader: minor snap nitpicks
2021-01-06 08:37:45 +02:00
jk-jeongkyun
618454214b
eth/downloader: enhanced test cases for downloader queue ( #22114 )
2021-01-05 14:56:01 +01:00