Commit graph

1476 commits

Author SHA1 Message Date
Evgeny Danienko
208133b6da fix 2022-06-03 14:15:56 +03:00
Manav Darji
b19d5e109b Merge branch 'master' into rfc35/common-ancestor-approach-units 2022-06-02 21:02:55 +05:30
Manav Darji
8255d194ae minor fixes and enhancements 2022-06-02 16:34:46 +05:30
Manav Darji
d4e7603315 add debug rpc endpoints for checkpoint whitelist service 2022-06-02 16:23:38 +05:30
Krishna Upadhyaya
3f5fe0e387 Increased default value of rpc.txfeecap to 5 2022-05-30 13:59:30 +05:30
SHIVAM SHARMA
4fb3f5ddee
Modifying miner.recommit flag and its adjustment function. (#370)
* changed min/max/current recommit values

* Remove Hardcoded min/max

* Code Sanitization

* Skipping tests for constant recommit interval

* Adding default miner.recommit value

* Minor Change
2022-05-27 21:07:55 +05:30
Manav Darji
2ba7c036a7 fix tests 2022-05-24 17:13:49 +05:30
Manav Darji
cb9d29151c add more tests 2022-05-24 16:29:39 +05:30
Manav Darji
9c861920d5 modularise fake chain validator in downloader 2022-05-24 15:41:26 +05:30
Manav Darji
c46a29340d handle all errors 2022-05-24 14:34:26 +05:30
Manav Darji
2b089ee6d3 fix: return value for no remote block 2022-05-24 14:33:45 +05:30
Evgeny Danienko
01117acbcc fmt 2022-05-19 14:41:49 +03:00
Evgeny Danienko
89fadee71e dont panic 2022-05-19 14:38:49 +03:00
Evgeny Danienko
fb46dd8cdf minor fixes 2022-05-19 10:23:34 +03:00
Evgeny Danienko
b1b0c0e2fb test ErrCheckpointMismatch 2022-05-18 17:21:51 +03:00
Evgeny Danienko
af2b5e06b0 wip 2022-05-17 19:24:16 +03:00
Evgeny Danienko
3dd7f59531 more tests 2022-05-17 19:23:57 +03:00
Manav Darji
bae9c4400b add unit tests for IsValidChain function 2022-05-12 14:49:48 +05:30
Manav Darji
a6ec55bb31 fix tests and format 2022-05-11 17:09:28 +05:30
Arpit Temani
2321e64ed7
V0.2.16 candidate (#373)
* merge geth v1.10.15

* fix: Removed FastSync from cli server

* fix: TestHeadersRLPStorage

* Added t.skip(ETH2 in bor)

* fix: flow in create consensus engine

* bumped version

* Fix typo

* increase block time

* remove file

* bumped version

* merge gethv1.10.17

* bumped version

* fix failing tests

* Bump Go version to v1.18 (#368)

* Bump Go version to v1.18.1

* 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.

* Fix meta

* Bump version

* Meta as stable

Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Sandeep Sreenath <sandeep.sreenath@gmail.com>
Co-authored-by: Victor Castell <victor@victorcastell.com>
2022-05-06 12:31:48 +02:00
Evgeny Danienko
aa3004b083 fix types 2022-05-05 18:08:31 +03:00
Evgeny Danienko
2cb82c991a extract whitelist interface 2022-05-05 17:00:24 +03:00
Manav Darji
cc7c5b3fd9 initial implementation for common ancestor approach 2022-05-02 16:57:02 +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
Manav Darji
a551f01ab8 merge gethv1.10.17 2022-04-04 16:39:55 +05:30
Manav Darji
08509c6882 fix: flow in create consensus engine 2022-02-02 16:42:22 +05:30
Shivam Sharma
672a15e339 Added t.skip(ETH2 in bor) 2022-02-02 15:49:57 +05:30
Shivam Sharma
a6c5473434 Merge branch 'master' into gethv1.10.15-merge 2022-02-02 12:58:44 +05:30
Shivam Sharma
6ab7515849 Merge branch 'master' into merge-subs2 2022-01-20 13:34:25 +00:00
SHIVAM SHARMA
2d84249492
fix for TestReorgSideEvent (#304)
* fix for TestReorgSideEvent

* Fix make test

* Disable specific tests and enable bor burn contract

* Fix more stuff

* More checks

Co-authored-by: Ferran Borreguero <ferranbt@protonmail.com>
2022-01-20 14:24:15 +01:00
Shivam Sharma
87362e4177 Merging feature-subs2 to master 2022-01-14 18:50:19 +05:30
Arpit Temani
3fb25179b6 merge geth v1.10.15 2022-01-12 13:00:32 +05:30
Alex
d7891c0d24
Bump maximum GPO price to 5000 Gwei 2022-01-05 10:09:10 +01:00
SHIVAM SHARMA
d51abdb487
removed errors in testcase (#258) 2022-01-03 10:48:17 +01:00
Shivam Sharma
3a6744785b Added chain2head event in Ethstats 2021-12-22 15:36:31 +05:30
Shivam Sharma
4488927e1f Connected chain2head protobuf 2021-12-02 12:28:26 +05:30
Sandeep Sreenath
983e32baf2 merged geth v1.10.10 2021-11-22 19:04:07 +05:30
Ferran Borreguero
e4eceefbb0 Merge conflicts 2021-10-14 12:50:41 +02:00
jwasinger
011fe3eb5e
core: remove unused error from TxPool.Pending (#23720) 2021-10-13 23:00:45 +02:00
Iskander (Alex) Sharipov
778ff94794
all: fix some go-critic linter warnings (#23709)
This doesn't fix all go-critic warnings, just the most serious ones.

Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-10-13 17:31:02 +02:00
noam-alchemy
633e7ef478
eth,rpc: allow for flag configured timeouts for eth_call (#23645)
* eth,rpc: allow for flag configured timeouts for eth_call

* lint: account for package-local import order

* cr: rename `rpc.calltimeout` to `rpc.evmtimeout`
2021-10-12 10:46:04 +02:00
Martin Holst Swende
6289137827
consensus/clique, core: API cleanup (#23100)
This removes some code:

- The clique engine calculated the snapshot twice when verifying headers/blocks.

- The method GetBlockHashesFromHash in Header/Block/Lightchain was only used by tests. It
  is now removed from the API.
  
- The method GetTdByHash internally looked up the number before calling GetTd(hash, num).
  In many cases, callers already had the number, and used this method just because it has a
  shorter name. I have removed the method to make the API surface smaller.
2021-10-11 23:16:46 +02:00
Marius van der Wijden
53b1420ede
params: changed CatalystBlock to TerminalTotalDifficulty (#23700)
* params: changed CatalystBlock to TerminalTotalDifficulty

* eth/catalyst: comment out unused code
2021-10-11 18:58:11 +03:00
aaronbuchwald
bcbd700367
eth/gasprice: avoid modifying TestChainConfig (#23204)
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-10-11 01:52:30 +02:00
Marius van der Wijden
ee120ef865
miner: fix data race during shutdown (#23435)
This fixes a data race on worker.current by moving the call to StopPrefetcher
into the main loop.

The commit also contains fixes for two other races in unit tests of unrelated packages.
2021-10-08 20:12:52 +02:00
Martin Holst Swende
28d30b51f8
eth: close miner on exit (instead of just stopping) (#21992)
This ensures that all miner goroutines have exited before stopping the blockchain. 

Co-authored-by: Felix Lange <fjl@twurst.com>
2021-10-08 18:36:58 +02:00
Sina Mahmoodi
48496e0675
internal/ethapi: use correct signer when serving old blocks (#23683)
Fixes #23681

After the fix I get the address 0x6d6d02e83c4ced98204e20126acf27e9d87b8af2 for the
tx mentioned in the ticket, which agrees with etherscan.
2021-10-07 15:51:14 +02:00
Martin Holst Swende
307156cc46
eth/api: add rpc method to obtain which states are accessible (#23646)
This PR adds a method to the debug namespace, to iterate over the blocks and check where we have the roots on disk.
2021-10-05 08:13:00 +02:00
Ferran Borreguero
0dbb3b1601
eth/protocols/eth: replace array with counter in txn broadcaster (#23656) 2021-10-04 16:10:51 +02:00