Joshua Gutow
84041e8f31
ethclient/gethclient: return storage proofs in GetProof ( #24697 )
...
Storage proofs were being unmarshalled from the RPC form to the go struct, but were not being included in the final returned struct.
2022-04-27 11:51:24 +02:00
s7v7nislands
5a584c2133
all: use common.FileExist for checking file existence ( #24748 )
2022-04-27 11:48:02 +02:00
Martin Holst Swende
c3a5054c27
cmd/utils: utilize beacon wrapper in makechain ( #24620 )
...
* cmd/utils: utilize beacon wrapper in makechain
* cmd/utils: fix fake-pow to also be wrapped in beacon
* consensus/misc: correct error message
2022-04-27 11:45:14 +02:00
tia-99
1f5943e4f9
core/types: fix unhandled errors in TestTransactionCoding ( #24692 )
2022-04-27 10:56:50 +02:00
Sina Mahmoodi
16701c5169
internal/ethapi: add db operations to api ( #24739 )
...
Adds `debug_dbGet` method to rpc api
2022-04-27 08:37:48 +02:00
Victor Castell
429deab982
Fix meta
2022-04-26 18:18:01 +02:00
Manav Darji
0525715949
Merge 'master' into 'v0.2.16-candidate'
2022-04-26 17:21:51 +05:30
John Difool
a52bcccfe1
consensus/ethash: fix typos in var names ( #24745 )
2022-04-26 10:16:57 +02:00
s7v7nislands
195c2d3d69
cmd/*: refactor get flag value ( #24761 )
2022-04-26 09:32:31 +02:00
Martin Holst Swende
0914234d10
cmd/geth, core/state/snapshot: fix flaw in dangling-storage check + inspect difflayers ( #24677 )
...
This PR fixes the flaw that @rjl493456442 found in https://github.com/ethereum/go-ethereum/pull/#issuecomment-1093817551 , namely, that the snapshot iterator uses the combined (disk + difflayers) 'view', wheres the raw iterator uses only the disk 'view'.
This PR instead splits up the work: one phase is iterating the disk layer data, another phase is loading the journalled difflayers and performing the same check there.
2022-04-26 09:08:43 +02:00
s7v7nislands
7ab15490e9
all: use 'embed' instead of go-bindata ( #24744 )
2022-04-25 11:15:14 +02:00
henopied
63972e7548
p2p: fix type of DiscSubprotocolError ( #24747 )
...
It was 'int' accidentally, should be DiscReason instead.
2022-04-25 11:05:47 +02:00
Nikita Kozhemyakin
fb801d8837
mobile: fix receipt encoding to json ( #24701 )
2022-04-25 09:35:04 +02:00
s7v7nislands
4024c1e869
fix typo ( #24731 )
2022-04-25 09:28:03 +02:00
jwasinger
7d7a96530b
cmd/evm: ensure input length is even ( #24721 )
...
* cmd/evm: ensure input length is even
* cmd/evm: minor nit + lintfix
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-04-25 09:16:49 +02:00
s7v7nislands
9e0a10004e
cmd/faucet: fix genesis flag and improve documentation ( #24735 )
2022-04-23 16:53:21 +02:00
s7v7nislands
2951b50bae
internal/flags: fix godoc ( #24734 )
2022-04-23 16:52:26 +02:00
Felix Lange
a15a32a2f1
.github: update CODEOWNERS ( #24743 )
2022-04-23 14:37:04 +02:00
Krishna Upadhyaya
8ea9231c5f
fix: update mumbai genesis config
2022-04-22 11:57:26 +05:30
Krishna Upadhyaya
98123ba757
fix: update mumbai config
2022-04-22 11:52:50 +05:30
Koosha K
7163e6d47f
README.md: update Go min required version to 1.16 ( #24713 )
2022-04-22 01:31:33 +02:00
Emmanuel T Odeke
a8bb49b8ea
eth/tracers/logger: remove unnecessary comparisons in accessList.equal ( #24663 )
...
This change removes extraneous/unnecessary checks for equality
when comparing 2 accessList values A and B. Given that we validate that
their lengths of A and B are equal, if so and if every element in A is
in B, reflexively every element in B is already in A. If that weren't
the case and an element g existed in A but not in B, that would mean
that there is an extra element and hence a mathematical contradiction.
Fixes #24658
2022-04-22 01:30:15 +02:00
Ikko Ashimine
40cfe71002
eth/downloader: fix typo in downloader.go ( #24704 )
...
synchornization -> synchronization
2022-04-20 16:17:29 +02:00
Enrique Ortiz
637cf34ded
core/vm: fix typo ( #24714 )
...
Was just browsing the code and found this.
2022-04-20 16:13:47 +02:00
Darioush Jalali
8bf0565ebb
trie: remove unused makeHashNode ( #24702 )
2022-04-20 16:12:06 +02:00
Sandeep Sreenath
a9fd4385b3
Merge pull request #172 from tn606024/fix-get-block
...
fix: delete check empty tx root hash
2022-04-20 16:21:22 +05:30
shiziwen
d561a25739
fix: modify the comment of txlookuplimit ( #344 )
2022-04-20 16:16:11 +05:30
SHIVAM SHARMA
65f4d27991
Shivam/ethstats backend fix ( #341 )
...
* Emit events for all blocks insertChain()
* small fix
* test-case-fix
* Fix tests
Co-authored-by: Ferran <ferranbt@protonmail.com>
2022-04-20 16:15:21 +05:30
Jaynti Kanani
44603dbaa9
Update rest.go ( #349 )
...
Co-authored-by: Krishna Upadhyaya <krishnau1604@gmail.com>
2022-04-20 15:55:08 +05:30
Sandeep Sreenath
7ff6869d25
Merge pull request #222 from chuwt/chuwt-1029
...
Fix default attach endpoint
2022-04-20 15:31:47 +05:30
Sandeep Sreenath
30ad2b5718
Merge pull request #316 from maticnetwork/feature-ethstats-arbitrary
...
Added arbitray data Ethstats
2022-04-20 15:31:18 +05:30
Victor Castell
1a31178c01
Build using netgo tag
...
This will create a static build using Go native networking stack.
Checked and it works stable for all archs and distros.
2022-04-19 17:30:42 +02:00
Victor Castell
bf85e15dce
Bump Go version to v1.18 ( #368 )
...
* Bump Go version to v1.18.1
2022-04-19 10:40:22 +02:00
Felix Lange
bb5633c5ee
go.mod: upgrade btcec and add 'chainhash' module requirement ( #24700 )
...
See ethereum/go-ethereum#24554 and btcsuite/btcd#1839
This is an attempt to resolve a Go module dependency issue that arises
when both 'github.com/btcsuite/btcd/btcec/v2' and the older, non-v2
btcd module are required as dependencies.
2022-04-17 14:53:25 +02:00
rjl493456442
f0328f241b
eth/downloader: resolve local header by hash for beacon sync ( #24691 )
...
* eth/downlaoder: resolve local header by hash for beacon sync
* eth/downloader: fix error message
* eth/downloader: cap the reverse header resolving
* eth/downloader: re-enable tests
* eth/downloader: add warning logs
2022-04-14 09:49:23 +03:00
Marius Kjærstad
9f7bcb9d76
build: upgrade -dlgo version to Go 1.18.1 ( #24689 )
...
* build: upgrade -dlgo version to Go 1.18.1
* build: upgrade -dlgo version for macOS to Go 1.18.1
2022-04-14 08:45:04 +03:00
Péter Szilágyi
86216189a5
eth/downloader: remove stale beacon headers as backfilling progresses ( #24670 )
...
* eth/downloader: remove stale beacon headers as backfilling progresses
* eth/downloader: remove leftover from a previous design
* eth/downloader: do partial beacon cleanups if chain is large
* eth/downloader: linter != heart
2022-04-13 20:31:08 +03:00
Marius van der Wijden
ca298a2821
cmd/geth: support bigints for --override.terminaltotaldifficulty ( #24646 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-04-13 11:28:23 +02:00
Sina Mahmoodi
9c82c646e4
eth/tracers: make txhash blockhash accessible to native tracers ( #24679 )
2022-04-12 21:09:27 +02:00
ucwong
d4d288e3f1
build: add imports for go generate tools ( #24682 )
...
This adds a tools.go file to import all command packages used for
go:generate. Doing so makes it possible to execute go-based code
generators using 'go run', locking in the tool version using go.mod.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-04-12 20:24:02 +02:00
JoeGruffins
eb69f490ed
abi/base: return error for pending call error ( #24649 )
...
If a pending contract call errors, return that error right away rather
than ignoring it to allow an error somewhere else. This is helpful for
callers to know if perhaps a call failed because of the context deadline
being expired. This change mirrors the behavior of non-pending contract
calls.
2022-04-12 11:36:29 +03:00
rjl493456442
195c979168
core: fix benchmark panic ( #24657 )
...
This PR fixes a few panics in the chain marker benchmarks. The root
cause for panic is in chain marker the genesis header/block is not
accessible, while it's expected to be obtained in tests. So this PR
avoids touching genesis header at all to avoid panic.
2022-04-12 11:34:07 +03:00
Marius van der Wijden
c40943a167
cmd: set DefaultGasLimit to 30M ( #24680 )
...
* cmd: set DefaultGasLimit to 30M, rem deprec. Flag
* cmd: revert flag deprecation
2022-04-12 08:48:03 +03:00
Felix Lange
59f0e8ae60
core/types: make "miner" optional in Header JSON ( #24666 )
...
"miner" is not set for pending block responses in some cases.
Fixes #24632
2022-04-11 21:19:13 +03:00
Vaibhaw
40b736463a
build/deb: update Debian control file to remove unencrypted git protocol ( #24676 )
2022-04-11 21:04:08 +03:00
Arpit Temani
d5b76d4aa4
fix failing tests
2022-04-11 23:00:53 +05:30
Manav Darji
44e5edf109
bumped version
2022-04-11 18:56:05 +05:30
Manav Darji
54c6db5829
merge master into v0.2.16-candidate
2022-04-11 18:55:30 +05:30
Manav Darji
8e3d66c5e4
Handle graceful shutdown in bor ( #359 )
...
* handle graceful shutdown in bor rest client
* fix: log
Co-authored-by: Jaynti Kanani <jdkanani@gmail.com>
* add: handle shutdown using close channel
* fix: create err variable for shutdown
* use ticker instead of time.After for handling retry
Co-authored-by: Jaynti Kanani <jdkanani@gmail.com>
2022-04-11 10:22:56 +05:30
aaronbuchwald
6c3fea0fc9
log: modify lock defer unlock order in sync handler ( #24667 )
...
This modifies the order of Lock() defer Unlock() to follow the more
typically used pattern.
2022-04-08 16:02:16 +02:00