Commit graph

13620 commits

Author SHA1 Message Date
Marcello Ardizzone
7f9b3ebea2 Merge branch 'develop' into mardizzone/pos-398 2022-07-06 10:54:22 +02:00
Marcello Ardizzone
1f5880fea5 new: dev: pos-398 instructions for local run - retesteth bor 2022-07-06 10:54:05 +02:00
Evgeny Danilenko
f28f384b72
Mining benchmark (#439)
* mining benchmark

* mining benchmark

* prepare for enabling fork tests

* linters

* logs
2022-07-05 21:51:54 +03:00
Jerry
5f69302b3a
Merge pull request #442 from maticnetwork/v0.3.0-candidate
Merge fixes from v0.3.0-candidate to develop
2022-06-30 12:07:06 -07:00
Jerry
f90faf0687 Match default parameters to mainnet 2022-06-30 10:36:44 -07:00
Pratik Patil
657d262def
Merge pull request #435 from maticnetwork/POS-553
Adding correct miner address on API at the RPC level (POS-553)
2022-06-29 11:02:08 +05:30
Pratik Patil
473e09cd2d removed check from consensus, handelling everything in api.go 2022-06-28 21:03:36 +05:30
Pratik Patil
de03f3fb6a reverted back and made changes in the getAuthour API 2022-06-28 19:02:47 +05:30
Pratik Patil
c0ad424824 addressed comments, Author() never returns error, returns 0x0 insted 2022-06-28 18:34:29 +05:30
Arpit Temani
a73b0f70bf change version 2022-06-28 00:46:51 +05:30
Pratik Patil
0173d61d9f modified Authour() function in bor.go 2022-06-25 10:20:29 +05:30
Pratik Patil
9b29d13a5d removed lint error 2022-06-24 19:31:44 +05:30
Pratik Patil
1b941f3274 getAuthor returns 0x0 for genesis block 2022-06-24 13:29:02 +05:30
Pratik Patil
1970743f9d modified comment 2022-06-24 13:28:22 +05:30
Jerry
88dbfa1c13
Merge pull request #433 from cffls/develop
Merge branch 'v0.3.0-dev' into develop
2022-06-22 12:03:40 -07:00
Jerry
1daa659aa5 Merge remote-tracking branch 'upstream/develop' into develop 2022-06-22 00:08:02 -07:00
Pratik Patil
fea935fff2 Merge branch 'develop' of https://github.com/maticnetwork/bor into POS-553 2022-06-22 12:30:58 +05:30
Pratik Patil
aec6d05255 minor fix 2022-06-22 12:13:43 +05:30
Marcello Ardizzone
44105e1136 new: dev: pos-398 remove unused part 2022-06-21 16:15:49 +02:00
Marcello Ardizzone
ea0f553d24 new: dev: pos-398 instructions for retesteth bor 2022-06-21 16:14:27 +02:00
Krishna Upadhyaya
3bb14803e2
Merge pull request #437 from maticnetwork/krishna/reproducible-build-test
Added reproducible build test to CI
2022-06-21 18:26:05 +05:30
Krishna Upadhyaya
fbaeaa2247 Added reproducible build test to CI 2022-06-21 16:42:56 +05:30
Marcello Ardizzone
9e7f70822f new: dev: pos-398 install testdata as submodule 2022-06-21 12:46:18 +02:00
Pratik Patil
b3c02842b9 modified GetBlockByNumber and GetBlockByHash function to call getHeaderWithAuthor function 2022-06-21 11:34:00 +05:30
Pratik Patil
b9d1869d95 added getHeaderWithAuthor function to change the coinbase filed in header with actual miner address 2022-06-21 11:32:19 +05:30
Jerry
9592534a69 Integration tests 2022-06-20 11:25:39 -07:00
Jerry
9ec673870a Set Heimdall client to nil when 'withoutheimdall' is set 2022-06-16 10:28:28 -07:00
Jerry
9bc9a45758 Merge branch 'v0.3.0-dev' into develop 2022-06-15 11:58:04 -07:00
Jerry
33e646eea1 Add keystore option to cli 2022-06-15 11:30:47 -07:00
Evgeny Danilenko
342bf3089e
Merge develop branch into v0.3.0-dev (#430)
* 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

* initial implementation for common ancestor approach

* extract whitelist interface

* fix types

* fix tests and format

* add unit tests for IsValidChain function

* more tests

* wip

* test ErrCheckpointMismatch

* minor fixes

* fix test

* dont panic

* fmt

* Limit state sync by gas

* Added logging for state-sync total gas usage

* Added number of event-records in log

* Minor Changes

* Minor Fix

* Adding individual gasUsed

* Minor Fix

* fix: return value for no remote block

* handle all errors

* modularise fake chain validator in downloader

* add more tests

* fix tests

* 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

* Increased default value of rpc.txfeecap to 5

* add debug rpc endpoints for checkpoint whitelist service

* minor fixes and enhancements

* avoid capping warnings for gas set by internal system transactions

* use typed mocks

* fix

* fix

* fix

* fix close

* fix

* Create stale.yml

* Fix bor consensus checkpoint bug

Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
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>
Co-authored-by: Ferran <ferranbt@protonmail.com>
Co-authored-by: Krishna Upadhyaya <krishnau1604@gmail.com>
Co-authored-by: Karlo <karlonovak@gmail.com>
Co-authored-by: Sandeep Sreenath <ssandeep@users.noreply.github.com>
Co-authored-by: Jerry <jerrycgh@gmail.com>
2022-06-15 09:02:01 +03:00
Arpit Temani
8ebac951a9
Merge pull request #424 from maticnetwork/stale-workflows
Create stale.yml
2022-06-09 13:48:18 +05:30
Arpit Temani
edd21b3950
Merge pull request #421 from karlonovak/master
avoid capping warnings for gas set by internal system transactions
2022-06-09 13:48:00 +05:30
Evgeny Danilenko
9c8bf51f57
Prepare Bor package for testing (#416)
* Limit state sync by gas

* Added logging for state-sync total gas usage

* Added number of event-records in log

* Minor Changes

* Minor Fix

* Adding individual gasUsed

* Minor Fix

* it works

* fix tests

* log wiggle and delay with block number

* log delays as numbers

* linters

* fix tests

* restore linters for the project

* fix linters

* fix

* fix

* fix

* linters

* generation

* fix tests

* remove heimdall wrapper response

* linters

* remove possible collisions

* remove possible collisions

* remove possible collisions

* tests for unique address generation

* generalize set

* bor miner tests got restored

* fixes after CR

* final step and mining test

* fix

* fix e2e

* more tests for Heimdall requests

* fix linters

Co-authored-by: Ferran <ferranbt@protonmail.com>
Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
2022-06-08 16:39:30 +03:00
Sandeep Sreenath
c3a0c20303
Create stale.yml 2022-06-08 15:09:42 +05:30
Arpit Temani
ed2d9ae58f
Merge pull request #386 from maticnetwork/rfc35/common-ancestor-approach-units
RFC35/Common Ancestor Approach
2022-06-08 13:59:15 +05:30
Jerry
8808c231df
Merge pull request #419 from cffls/v0.3.0-dev-flags
CLI improvements
2022-06-06 20:00:31 -07:00
Manav Darji
0d2b1d0630
internal/cli: add block tracing (#397)
* bad block tracing

* Add debug env framework

* add implementation of custom block tracing

* add few comments

* use tar name fn

* wip: add unit tests for block tracing

* complete test for block tracer

* fix: close grpc server

* refactor cli tests

* fix: change condition for parsing args

* Fix port binding for test server

* add helper for creating and closing mock server for tests

* consume mock server in tests

* fixes due to geth merge

* fix: handle port selection for http server

* update help and markdown for debug command

* update docs

* update debug synopsis

* fix: use chunked encoder to handle large data over grpc

* fix prints

* lint

* rm unused function, rename fn to TraceBorBlock

Co-authored-by: Ferran Borreguero <ferranbt@protonmail.com>
2022-06-06 14:54:05 +05:30
Evgeny Danienko
b4872cacc4 fix 2022-06-03 14:31:41 +03:00
Evgeny Danienko
f8a56b8188 fix close 2022-06-03 14:30:58 +03:00
Evgeny Danienko
208133b6da fix 2022-06-03 14:15:56 +03:00
Evgeny Danienko
01b6d6cb72 fix 2022-06-03 13:48:08 +03:00
Evgeny Danienko
494687fc48 fix 2022-06-03 13:47:22 +03:00
Evgeny Danienko
c9a3b9971b use typed mocks 2022-06-03 12:31:48 +03:00
Karlo
57e829fae9 avoid capping warnings for gas set by internal system transactions 2022-06-03 11:07:36 +02:00
Jerry
4ffdbfe60d
Merge pull request #417 from cffls/v0.3.0-dev-lint
Fix default Dockerfile for new CLI
2022-06-02 08:47:58 -07: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
Jerry
96ac8d16d4 Overwrite default config with CLI input even when the input value is considered as empty
This change will fix two issues:
1. When CLI sets a flag to an empty value in Go, e.g. 0 as to Uint64, the flag will be skipped and never set correctly. This problem could be solved by using option "WithOverwriteWithEmptyValue" when merge two configs.
2. The default non-empty value in server config will be overwritten to an empty value after flag initialization. This problem is solved by explicitly providing default value to all flags that have a default value option.
2022-05-31 20:30:40 -07:00
Jerry
4cec5f01c3 Add ability to parse legacy genesis file 2022-05-31 20:30:40 -07:00