Commit graph

886 commits

Author SHA1 Message Date
Arpit Temani
5fc30aeaac
Revert "Consistent" 2024-01-19 17:19:12 +05:30
Leo Lim
937dd6aa66
internal/ethapi: fix signer in GetTransactionReceiptsByBlock method (#1107)
* fix: from address

* add: unit test for GetTransactionReceiptsByBlock
2023-12-21 10:04:45 +05:30
Pratik Patil
8b2f02419d
test all default flags added via config file (#1105) 2023-12-15 12:49:11 +05:30
Arpit Temani
2be2789ebb
Merge pull request #1085 from bbaktaeho/fix/eth_api
internal/ethapi: fix GetTransactionReceiptsByBlock method
2023-12-12 10:57:53 +05:30
Arpit Temani
7006addb59 Merge tag 'v1.1.0' of github.com:maticnetwork/bor into arpit/1.2.0 2023-11-22 11:41:34 +05:30
Pratik Patil
923c192c7d
Added cache.blocklogs (FilterLogCacheSize) flag (#1083)
* added cache.blocklogs (FilterLogCacheSize) flag

* updated docs

* minor fix

Co-authored-by: Mael Regnery <mael@mqli.fr>

---------

Co-authored-by: Mael Regnery <mael@mqli.fr>
2023-11-20 10:18:11 +05:30
bbaktaeho
18c880280b fix: lint 2023-11-17 19:34:50 +09:00
bbaktaeho
7714cd88c1 fix GetTransactionReceiptsByBlock 2023-11-16 23:04:53 +09:00
Arpit Temani
384383c1eb
Merge pull request #968 from maticnetwork/arpit/pos-1731
Geth Merge v1.12.2
2023-11-10 15:11:26 +05:30
Arpit Temani
3c97a5b7a0 Revert "aded blobpool related flags"
This reverts commit 15f0c41d2c.
2023-11-10 14:37:26 +05:30
Shivam Sharma
5b5ea8cf37 add : mainnet Agra block 2023-11-09 17:25:05 +05:30
Pratik Patil
15f0c41d2c
aded blobpool related flags 2023-11-09 15:04:28 +05:30
Pratik Patil
368ae246fd
added p2p v4 discovery flag wrt geth v1.12.2 merge 2023-11-08 17:44:35 +05:30
Pratik Patil
6aed36d9d1
removed --cache.trie.journal and --cache.trie.rejournal wrt geth v1.12.2 merge 2023-11-08 17:11:54 +05:30
Léo Vincent
22a2b63df6
chore: improve bor server --help (#1063)
* chore: update `txarrivalwait` flag description

* chore: update docs

* chore: update other flags

* fix: doc generation is now deterministic

* chore: remove debug

* feat: sort options in `bor server --help`

* fix: prealloc array

* fix: lint issues

* internal/cli: remove nolint

---------

Co-authored-by: marcello33 <marcelloardizzone@hotmail.it>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2023-11-07 10:57:18 +05:30
Arpit Temani
1483c960ed merge develop 2023-11-03 10:10:02 +05:30
Manav Darji
260deb873d
eth: handle nil blocks and state when pending is not available (#1053)
* eth: handle nil blocks and state when pending is not available

* internal/ethapi: handle nil state and err in send condtional tx api
2023-10-20 15:22:05 +05:30
Manav Darji
adfd428bc0
internal/cli: set default value for keystore (#1051)
* internal/cli: set default valuee for keystore

* internal/cli: add tests

* internal/cli: fix tests
2023-10-18 12:16:34 +05:30
Shivam Sharma
cefca4ff42 chg : agra mumbai hf blockNumber to 41874000 2023-10-17 14:42:36 +05:30
Arpit Temani
3d8ee19c4c merge develop 2023-10-17 11:32:30 +05:30
Arpit Temani
48f6200449 merge shanghai tests 2023-10-16 23:23:13 +05:30
Shivam Sharma
808c41d7a8 add : mumbai newBurnContract Address 2023-10-16 17:38:16 +05:30
Shivam Sharma
d65fda705f fix : indentation 2023-10-16 14:04:29 +05:30
Shivam Sharma
6ba40bd9ee fix : spelling 2023-10-16 14:02:22 +05:30
Shivam Sharma
60899e3148 add : additional agra HF configs 2023-10-16 13:57:23 +05:30
Arpit Temani
75eea85168 fix testcase 2023-10-09 16:05:14 +05:30
Arpit Temani
3c666fde68 merge develop 2023-10-09 15:34:18 +05:30
marcello33
ac25ecfa3d Merge branch 'master' into backport/master-develop 2023-10-06 10:38:33 +02:00
SHIVAM SHARMA
784be5f72a
fix : wrong chainID on rpc (#1030) 2023-10-06 13:42:54 +05:30
marcello33
53f28f2f29 Merge branch 'master' into backport/master-to-develop 2023-10-05 19:31:51 +02:00
Manav Darji
d639bb818c
Add more mainnet bootnodes (#1026)
* update mainnet bootnodes

* internal/cli/server: handle nil chain case for tests
2023-10-05 18:31:26 +05:30
SHIVAM SHARMA
d233e4f869
fix : borTx chainID (#1021) 2023-10-04 12:22:08 +05:30
Arpit Temani
08b4937cb6 fix lint 2023-09-23 16:26:23 +05:30
Arpit Temani
7f727cb65d skip tests 2023-09-22 17:03:17 +05:30
Arpit Temani
766a84558a fix tests 2023-09-22 15:03:56 +05:30
Arpit Temani
4e3bcbc90d fix testcases 2023-09-21 21:07:50 +05:30
Manav Darji
8613ff1c06
internal/cli: add support to overwrite config.toml values via cli flags (#1008)
* internal/cli: add support to overwrite config.toml via cli flags

* fix lint and refactor

* add extensive tests for flagset

* fix type conversion for big.Int

* add more tests for coverage

* add t.parallel

* internal/cli/flagset: handle flag conversion using interface

* internal/cli/flagset: fix test
2023-09-21 12:52:59 +05:30
Arpit Temani
cc2c27dbd3 fix linters 2023-09-21 10:50:01 +05:30
Arpit Temani
046030df1f merge latest develop 2023-09-20 21:56:08 +05:30
Arpit Temani
8653c83007 fix test-integration 2023-09-20 21:44:07 +05:30
Arpit Temani
3626e5f7e4 fix testcase syntax 2023-09-20 15:57:37 +05:30
Jerry
5fcd45eaf3 Add read header timeout 2023-09-15 08:17:55 -07:00
Jerry
ec6b09240e Enable prometheus in bootnode 2023-09-15 08:17:55 -07:00
Arpit Temani
feea10a820 fix todos 2023-09-13 14:26:54 +05:30
Pratik Patil
67fc4d87fb
Added a new RPC endpoint (bor_sendRawTransactionConditional) to support EIP-4337 Bundled Transactions (#945)
* added new api to support conditional transactions (EIP-4337) (#700)

* Refactored the code and updated the miner to check for the validity of options (#793)

* refactored the code and updated the miner to check for the validity of options

* added new errors -32003 and -32005

* added unit tests

* addressed comments

* Aa 4337 update generics (#799)

* poc

* minor bug fix

* use common.Hash

* updated UnmarshalJSON function (reference - tynes)

* fix

* done

* linters

* with test

* undo some unintentional changes

---------

Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>

* handelling the block range and timestamp range, also made timestamp a pointer

---------

Co-authored-by: Evgeny Danilenko <6655321@bk.ru>

* Added filtering of conditional transactions in txpool (#920)

* added filtering of conditional transactions in txpool

* minor fix in ValidateKnownAccounts

* bug fix

* Supporting nil knownAccounts

* lints

* bundled transactions are not announced/broadcasted to the peers

* fixed after upstream merge

* few fixes

* sentry reject conditional transaction

* Changed the namespace of conditional transaction API from `eth` to `bor` (#985)

* added conditional transaction to bor namespace

* test comit

* test comit

* added conditional transaction

* namespapce changed to bor

* cleanup

* cleanup

* addressed comments

* reverted changes in ValidateKnownAccounts

* addressed comments and removed unwanted code

* addressed comments

* bug fix

* lint

* removed licence from core/types/transaction_conditional_test.go

---------

Co-authored-by: Evgeny Danilenko <6655321@bk.ru>
2023-09-13 08:28:00 +05:30
Pratik Patil
3442c0336d
Merge pull request #998 from maticnetwork/v1.0.0-beta-candidate
V1.0.0 beta candidate
2023-09-12 21:41:19 +05:30
Vaibhav Jindal
43d54c4456 Implemented the GetVoteOnHash under Bor namespace 2023-09-12 16:39:08 +05:30
rroblak
ebc7dc231a
Add CLI flags to config LevelDB table/total sizes (#981)
* Add CLI flags to config LevelDB table/total sizes

I wired up CLI flags to allow configuring LevelDB table and total sizes:
  - `--leveldb.compaction.table.size`, LevelDB SSTable file size factor in MiB (default: 2)
  - `--leveldb.compaction.table.multiplier`, multiplier on LevelDB SSTable file size (default: 1)
  - `--leveldb.compaction.total.size`, total size factor in MiB of LevelDB levels (default: 10)
  - `--leveldb.compaction.total.multiplier`, multiplier on LevelDB total level size (default: 10)

N.B. that the default values for these configs are exactly the same as
before this changset and so Bor behavior should not change unless these
flags are deliberately overridden. Bor/Geth inherited the default values
from [the `goleveldb`
defaults](126854af5e/leveldb/opt/options.go).

We (Alchemy) found it necessary to override these configs as follows to
keep Bor archive nodes tracking the canonical chain:
  - `--leveldb.compaction.table.size=4`
  - `--leveldb.compaction.total.size=20`

These overrides double the size of LevelDB SSTable files (2 MiB -> 4
MiB) and also the total amount of data in each level (100 MiB -> 200
MiB, 1,000 MiB -> 2,000 MiB, etc.). The idea is to have LevelDB read and
write data in larger chunks while keeping the proportional frequency of
compaction operations the same as in the original defaults defined by
Dean and Ghemawat.

Without these overrides we found that our archive nodes would tend to
fall into a "LevelDB compaction loop of death" where the incoming stream
of blockchain data could not be flowed into LevelDB's structure quickly
enough, resulting in the node blocking writes for long periods of time
while LevelDB's single-threaded compaction organized the data.  Over
time the nodes would fall farther and farther behind the canonical chain
head, metaphorically dying a slow node's death.

These configs can be changed on existing node databases (resyncing is
not necessary). LevelDB appears to work correctly with SSTable files of
different sizes. Note that the database does not undergo any sort of
migration when changing these configs. Only newly-written files (due to
new data or compaction) are affected by these configs.

* Update docs

* Adjust line spacing for linter

* Replace map with `ExtraDBConfig`

* Rename `LevelDbConfig` to `ExtraDBConfig`

* Regenerate docs
2023-09-12 12:09:26 +02:00
Jerry
07d7c6c6e2
Update mumbai bootnodes 2023-09-11 11:44:36 -07:00
Jerry
d75081df72
Update mainnet bootnodes 2023-09-11 11:09:52 -07:00