SHIVAM SHARMA
95f551eccc
Merge pull request #502 from maticnetwork/shivam/txpool-pricelimit
...
Changing default txpool pricelimit to 1
2022-08-24 10:47:53 +05:30
Shivam Sharma
057f50eb6c
fix : TestConfigLegacy
2022-08-23 19:13:01 +05:30
Shivam Sharma
324187776a
chg : txpool.pricelimit to 1
2022-08-23 18:35:24 +05:30
Manav Darji
f574c4a3c6
consensus/bor/heimdall: add new meter and timer metrics in heimdall client ( #459 )
...
* heimdall client: add new meter and timer metrics
* fix: error in handling valid and invalid request metric
* use ctx outside of request
* add separate metrics for each request
* fix: modify metric name
* fix: renmae metric name by removing hyphen
* use ctx value for request type
* fix linters
* fix panic on using string as key for ctx and on nil return
* refactor
* refactor
* rm comment
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-08-23 18:00:54 +05:30
Manav Darji
2a92cb1ecc
fix: whitelist/requiredblocks regression ( #496 )
2022-08-17 21:12:06 +05:30
Manav Darji
9f1feac053
eth, cli: prevent snap sync mode migration - v0.3.x ( #494 )
...
* handle snap sync mode switches
* fix linters
2022-08-17 15:18:16 +05:30
Pratik Patil
0be4ea342c
updated config.toml in builder/files, added all fields and commented those which are not used ( #491 )
2022-08-17 12:01:53 +05:30
Evgeny Danilenko
3c94dfb25f
A thread safe way to take a free port ( #485 )
...
* initial commit
* safe latest error
* remove json listener
* fix: debug block unit test
* remove jsonrpc listener from server
* fix: consume network's find port in heimdall client test
* update key in log while startup
* linters
* fix
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-08-16 18:43:18 +03:00
Krishna Upadhyaya
72aa44efe6
Fix EOF error in gRPC state-sync ( #489 )
...
* Fix EOF error in gRPC state-sync
* linters
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-08-11 20:40:08 +03:00
Manav Darji
1d1f00cbe7
eth: fix multiple checkpoint fetch logic ( #465 )
...
* fix: handle checkpoint ordering
* create checkpoint verifier, add unit tests
* fix: remove mutex
* address comment for default checkpoint verifier
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-08-11 16:00:33 +03:00
Evgeny Danilenko
e699254142
Use atomic pointer in go 1.19 ( #446 )
...
* use atomic pointer
* golang version
* golang version
* go1.19
* linters
* Bump golangci-lint
* linters
* linters
* linters after merge
* generic logger
* generic logger
* logger
* logger
* linters
* bump toml
* linters1
* linters
* linters
* linter
* linter
* linters
* linters
* linters
2022-08-09 22:11:09 +03:00
Manav Darji
ac559bcd16
internal/cli: add support for removedb ( #478 )
...
* internal/cli: add support for removedb
* update docs
* internal/cli: use constant path, handle err
2022-08-09 09:16:42 +05:30
Pratik Patil
16408ba324
internal/cli, cmd/geth: replaced package naoina/toml with BurntSushi/toml and updated config name-tags ( #486 )
...
* removed package naoina/toml from dumpconfig and added BurntSushi/toml
* updated cmd/gethconfig.go
2022-08-05 14:56:41 +05:30
SHIVAM SHARMA
d8d9360dfe
Merge pull request #480 from maticnetwork/shivam/POS-705
...
Fixed GetTransactionByBlockNumberAndIndex and added testcase around it.
2022-08-04 00:27:53 +05:30
Shivam Sharma
6b651f4956
rm : t.parallel()
2022-08-03 23:26:45 +05:30
Krishna Upadhyaya
f42a70f592
Merge pull request #468 from maticnetwork/POS-648
...
Implemented gRPC client for heimdall
2022-08-03 18:01:01 +05:30
Shivam Sharma
460bd4dde7
fix : tests
2022-08-03 16:42:01 +05:30
Shivam Sharma
d5e51c9f76
add : more comments
2022-08-03 16:05:45 +05:30
Shivam Sharma
57e1282caf
fix : lint
2022-08-03 15:56:36 +05:30
Shivam Sharma
d3231c0884
fix :GetTransactionByBlockNumberAndIndex + testGetTransactionByBlockNumberAndIndex
2022-08-03 15:29:24 +05:30
Shivam Sharma
938578c2e2
fix : minor change
2022-08-03 01:07:15 +05:30
Shivam Sharma
85cdd9d281
Initial Setup
2022-08-03 01:06:18 +05:30
SHIVAM SHARMA
65875c629d
Merge pull request #477 from maticnetwork/shivam/POS-695
...
Fix getTransactionReceiptsByBlock and TestGetTransactionReceiptsByBlock
2022-08-03 00:33:23 +05:30
Shivam Sharma
a69109ce5e
fix : removed debug logs
2022-08-02 10:34:25 +05:30
Shivam Sharma
423734c0d4
fix : deferred close() + lint
2022-08-02 01:19:42 +05:30
Shivam Sharma
b18370be6a
fix : TestGetTransactionReceiptsByBlock
2022-08-02 00:57:42 +05:30
Wany
aecdd74dc8
fix GetTransactionReceiptsByBlock bug
...
fix fields transactionHash
2022-07-31 16:54:13 +05:30
Jerry
7e79f82a31
Merge pull request #475 from cffls/develop
...
Add 'bor' user during package installation
2022-07-29 13:57:36 -07:00
Pratik Patil
b64af9b843
fixed the bug caused by fillBigInt and FillTime.Duration functions ( #474 )
2022-07-29 17:30:25 +05:30
Jerry
cd04702345
Add 'bor' user during package installation
2022-07-28 12:33:23 -07:00
Krishna Upadhyaya
fb17cdaf38
Merge branch 'develop' into POS-648
2022-07-28 19:33:11 +05:30
Krishna Upadhyaya
0c0fb63491
Implemented retry middleware in heimdall gRPC
2022-07-28 18:11:59 +05:30
Manav Darji
6e8428bfaa
consensus/ethhash: skip TestRemoteMultiNotifyFull in sealer test ( #470 )
...
* skip test in sealer test for ethhash consensus
* add a todo and test skip reason
2022-07-27 22:29:07 +05:30
Manav Darji
8f08503a5a
Makefile: copy bor binary to go bin ( #469 )
2022-07-27 22:27:26 +05:30
Krishna Upadhyaya
75bb3bdeb1
Merge branch 'develop' into POS-648
2022-07-27 19:09:04 +05:30
Krishna Upadhyaya
f55f816351
fixed context in gRPC code
2022-07-27 19:07:48 +05:30
Pratik Patil
71980bf5b1
internal/cli: use config file for flags in new-cli, builder/files: update defaults ( #457 )
...
* updated simple.json and simple.hcl
* added annotations for developer and grpc block
* added toml tags and simple.toml file
* added support for toml config files
* updated simple files toml, hcl, json
* added config.toml in builder/files and updated bor.service
* add dumpconfig command in cli for exporting configs
* update docs
* updated .goreleaser.yml (POS-651)
* changed --config to -config
* added test config for tests and fixed lint errors
* made fields of type big.int and time.Duration private, removed merge from dumpconfig, setting up default values to the Raw fields in dumpconfig, and fixed one lint error
* fixed lint errors (strange)
* lint fix
* private no-more, using '-' in name tags to ignore
* updated name tags, made c.configFile as a stringFlag (only one config file supported) and updated the merge logic in command.go -> Run()
* fix: set method for big.Int flags, added a TODO
* handeled bigInt and timeDuration type, bug fix in config_legacy, lint fix
* updated flags, consistent across flags.go and config.go
* fixed config test and updated test hcl, json config files
* updated config legacy test
* added test to check values of cmd flags, restructured Run in command.go, linter fix
* fix linters
* lint again
* changed 2 flags and assert -> require
* changed the 2 flags back
* updated correct congig.toml path and made mainnet default
* updated config.toml with new flags
* added sample config (toml) file
* removed sample-config.toml and added it in docs/config.md
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-07-27 12:28:26 +05:30
Krishna Upadhyaya
00c2b3329c
fix lint
2022-07-26 18:15:21 +05:30
Krishna Upadhyaya
8de8a6815c
Integrated heimdall gRPC server flow
2022-07-26 18:08:25 +05:30
Krishna Upadhyaya
dbbacb8b19
Using polyproto v0.0.2 and removed type utils
2022-07-26 11:16:11 +05:30
Jerry
9dcc993566
Merge pull request #467 from cffls/develop
...
Fix "Signer 0x... is not a part of the producer set at block xxxx"
2022-07-25 21:18:20 -07:00
Krishna Upadhyaya
385aff85f0
Implemented heimdall gRPC client
2022-07-26 02:18:37 +05:30
Jerry
c50ff82ab1
Fix "Signer 0x... is not a part of the producer set at block xxxx"
...
The validator set json loaded from database will have an empty map. This change will recompute the validator map based on validator set.
2022-07-25 10:19:39 -07: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
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
Jerry
4089c24ae2
Remove 'edit' from github CI workflow
2022-07-21 09:30:34 -07:00
Shivam Sharma
68f440a35f
fix : integration test package
2022-07-20 16:58:40 +05:30
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