Marius van der Wijden
22d71afc95
params: set sepolia mergeNetsplitBlock to 1735371 ( #25372 )
2022-07-23 09:54:11 +02:00
Martin Holst Swende
62306a5ebe
deps: update goleveldb
2022-07-23 09:46:28 +02:00
SHIVAM SHARMA
f184772b4d
Merge pull request #456 from maticnetwork/shivam/pos-636
...
Cover Bor Filters with testcases
2022-07-22 15:06:57 +05:30
Nikhil Suri
ba3919cac6
signer/core: add canonical TypedData hashing methods ( #25283 )
2022-07-22 09:53:35 +02:00
Marius van der Wijden
1764f8f559
params: set goerli TTD to 10_790_000 ( #25324 )
2022-07-22 09:52:12 +02:00
jwasinger
b214c49952
cmd/puppeth: remove support for exporting non-Geth genesis configurations ( #25329 )
...
* cmd/puppeth: remove support for exporting non-Geth genesis configurations
* remove unused function
2022-07-22 09:51:01 +02:00
Sylvain Laurent
dbf08033ee
typo: README ( #463 )
2022-07-22 11:36:41 +05:30
Jerry
9119b4b483
Merge pull request #462 from cffls/develop
...
Remove 'edit' from github CI workflow
2022-07-21 22:23:31 -07:00
Zachinquarantine
a22fb936bb
params: change Merge config to print simpler message
...
This fixes #25366
2022-07-21 16:37:08 -04:00
Jerry
4089c24ae2
Remove 'edit' from github CI workflow
2022-07-21 09:30:34 -07:00
Arpit Temani
062ea8b505
sprint type change
2022-07-21 17:20:15 +05:30
Shivam Sharma
68f440a35f
fix : integration test package
2022-07-20 16:58:40 +05:30
Guillaume Ballet
89b138cf2f
params: Add Shanghai and Cancun blocks ( #25305 )
...
* params: Add Shangai and Cancun blocks
* fix copy/paste error
Co-authored-by: Martin Holst Swende <martin@swende.se>
* fix typo in Shanghai name
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-07-19 14:50:17 +02:00
Shivam Sharma
4e189689b0
add : mock database in eth/filters
2022-07-19 17:21:11 +05:30
Manav Darji
bf60c6ce06
consensus/bor: add mock heimdall rest-server, tests for timeout and cancellation ( #458 )
...
* add: mock heimdall rest-server, tests for timeout and cancellation
* fix: use mux for route handling
2022-07-19 16:22:41 +05:30
Guillaume Ballet
e73e8bc706
accounts/abi: substitude arg%d to the range keyword ( #25307 )
...
* accounts/abi: substitude arg%d to the range keyword
* support more keywords
* review feedback
2022-07-19 11:44:48 +02:00
Shivam Sharma
58ef6fdbb7
fix : lint
2022-07-19 14:39:26 +05:30
Shivam Sharma
8a6c16dcde
add : bor_filter_test.go + mock backend
2022-07-19 14:07:19 +05:30
Manav Darji
b382111b87
github: add new issue templates ( #455 )
...
* add: new issue templates
* github: add version commands and file paths
2022-07-18 20:09:15 +05:30
Guillaume Ballet
a7d47ee77b
cmd/geth: remove redundant 0x in dbGet/dbDelete ( #25315 )
2022-07-18 13:22:56 +02:00
Shivam Sharma
43b18b7038
chg : moved TestBorFilters to tests/bor
2022-07-18 13:43:36 +05:30
Ha ĐANG
a9ef135e2d
p2p/discover: apply netrestrict in discv5 response handler ( #25304 )
2022-07-15 18:37:51 +02:00
Felix Lange
e3df3d34cf
trie: fix 'gosimple' lint issue ( #25309 )
2022-07-15 18:36:05 +02:00
Marius van der Wijden
a54a230a08
tests: only activate merge on london rules ( #25239 )
2022-07-15 15:01:07 +03:00
rjl493456442
1657e43931
core, les, eth: port snap sync changes ( #24898 )
...
core, eth, les, trie: rework snap sync
2022-07-15 14:55:51 +03:00
Lee Bousfield
1c9afc56ae
core: prevent negative fee during RPC calls ( #25214 )
...
During RPC calls such as eth_call and eth_estimateGas, st.evm.Config.NoBaseFee is set
which allows the gas price to be below the base fee. This results the tip being negative,
and balance being subtracted from the coinbase instead of added to it, which results in a
potentially negative coinbase balance interestingly. This can't happen during normal chain
processing as outside of RPC calls the gas price is required to be at least the base fee,
as NoBaseFee is false.
This change prevents this behavior by disabling fee payment when the fee is not set.
Co-authored-by: lightclient@protonmail.com <lightclient@protonmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-07-15 11:32:54 +02:00
Shivam Sharma
9aad8bf928
fix : remove temp dir
2022-07-15 13:12:39 +05:30
Shivam Sharma
73054f8608
Merge branch 'develop' of https://github.com/maticnetwork/bor into shivam/pos-636
2022-07-15 12:05:13 +05:30
Manav Darji
c44693706a
RFC35/Common Ancestor: Modifying the forkchoice rule ( #425 )
...
* initial
* update
* fix: add validator to NewBlockchain function calls
* handle past chain reorg
* fix: only check with last checkpoint
* rm logs
* add: handle future chain import case
* fix: handle single block case
* add unit tests for past and future chain
* modularise forker tests
* minor fixes
* add: overlapping chain test case, minor fixes
* minor fixes
* add: isolated unit test for IsValidChain
* add more test case for IsValidChain
* fix: use index for header time
* add: fetch last N checkpoints in first run
* fix: change checkpoint count to int64
* fix: handle edge case
* fix: handle no checkpoint case separately
* fix: consider offset for future chain calculation
* re-write test case for split chain
* fix: typo
* add: split chain properties test
* separate reorg checks, validate chain before inserting
* fix: handle err incase of invalid chain
* fix: use error from whitelist service
* split chain property tests
* remove duplicate test cases
* cleanup
* clean up
* fix linters
* fix: fetch checkpoint count bug, add tests
* fix more linters
* fix: handle nil chain validator in downloader
* fix: mock bor tests
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-07-15 10:37:35 +05:30
Pratik Patil
3df1d6f017
Change diverged flags back to Geth's convention (POS-602) ( #451 )
...
* changed name -> identity
* changed no-snapshot -> snapchot=true/false
* changed jsonrpc.corsdomain -> http.corsdomain
* changed jsonrpc.vhosts -> http.vhosts
* changed http/ws.modules to http/ws.api
* updated readme
* updated config_test
* make docs
* handelling string array flag, overwrite insted of append
* added 'Default' to SliceStringFlag
* added separate flags for corsdomain and vhosts for http, ws, graphql
* modified tests
2022-07-14 22:36:18 +05:30
Arpit Temani
7b25997830
Reciept e2e test ( #431 )
...
* initial
* fixed tests
* eip155 tests
* progress
* fix
* fix TestFetchStateSyncEvents*
* debug
* fixed with updated list of validators
* fix
* a bit more stable
* optimize allocations
* linters
* fix vals copy
* a bit of refactoring
* update TestGetTransactionReceiptsByBlock
* remove logs from TestGetTransactionReceiptsByBlock in favour of checks
* comments
* Linters
* linters
* fixes after merge
* fixes after merge
* fixes after merge
* fixes after merge
* fail fast
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-07-14 19:28:56 +03:00
Shivam Sharma
0610c6a692
chg : use memory db
2022-07-14 18:28:21 +05:30
henridf
4766b1107f
core: remove lock in BlockChain.ExportN ( #25254 )
...
* Remove locking in (*BlockChain).ExportN
Since ExportN is read-only, it shouldn't need the lock. (?)
* Add hash check to detect reorgs during export.
* fix check order
* Update blockchain.go
* Update blockchain.go
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2022-07-14 15:55:54 +03:00
Shivam Sharma
e47a2df17b
fix : lint
2022-07-14 17:49:55 +05:30
Shivam Sharma
3811496280
fix : remove debug logs
2022-07-14 17:41:38 +05:30
Shivam Sharma
e670a8a0a1
add : bor_filter_test
2022-07-14 17:39:29 +05:30
lightclient
434ca026c9
internal/ethapi: error if tx args includes chain id that doesn't match local ( #25157 )
...
* internal/ethapi: error if tx args includes chain id that doesn't match local
* internal/ethapi: simplify code a bit
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2022-07-14 13:17:25 +03:00
Péter Szilágyi
b53d38246e
Merge pull request #25096 from lightclient/remove-version-field
...
all: remove version field
2022-07-14 12:13:59 +03:00
Jens W
5b5dfba70a
accounts/abi/bind/backends: return hash of new blocks ( #25163 )
...
Co-authored-by: Jens <jmw.1906@gmx.de>
2022-07-14 10:34:16 +02:00
Ikko Ashimine
93f981bb61
accounts/abi: fix typo in comment ( #25271 )
2022-07-14 10:29:05 +02:00
Péter Szilágyi
e108d36575
Merge pull request #25293 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.18.4
2022-07-14 10:30:53 +03:00
SHIVAM SHARMA
1147994c65
Added valSet testcases ( #452 )
...
* Added valSet testcases
* Added Negative Assertions
* Minor Changes
* Added varying valset length
* Minor changes
* Linting
2022-07-13 12:21:29 +03:00
Evgeny Danilenko
3c42bfc633
add context to Fetch* methods ( #445 )
...
* add context
* fix mocks
* fixes after CR
* fixes
* fix
* Linters
2022-07-13 09:07:32 +03:00
Marius Kjærstad
9f9657850f
build: upgrade -dlgo version to Go 1.18.4
2022-07-12 23:19:41 +02:00
marcello33
c3d62b8ea1
Merge pull request #436 from maticnetwork/mardizzone/pos-398
...
new: dev: pos-398 restore geth tests
2022-07-12 19:53:15 +02:00
Marcello Ardizzone
2a1a7d1b18
new: dev: pos-398 remove duplicate git submodule
2022-07-12 17:37:44 +02:00
Marcello Ardizzone
752878d3c2
new: dev: pos-398 update testdata and skip last failing tests
2022-07-12 14:29:56 +02:00
Marcello Ardizzone
a76923cb8a
new: dev: pos-398 restore legacy tests
2022-07-12 14:22:18 +02:00
Péter Szilágyi
d740d6e741
Merge pull request #25290 from karalabe/tar-archive-folder-time
...
internal/build: add a timestamp to the tar archive folder
2022-07-12 14:39:05 +03:00
Péter Szilágyi
68cd0cda4a
internal/build: add a timestamp to the tar archive folder
2022-07-12 14:35:35 +03:00