Commit graph

15628 commits

Author SHA1 Message Date
Shivam Sharma
e8939bc12e chg : withdrawals check in bor consensus 2023-10-17 12:43:58 +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
Shivam Sharma
c119871659 add : agra HF mumbai block 2023-10-16 13:46:30 +05:30
Arpit Temani
61c0b81b1f fix testcase 2023-10-09 14:34:00 +05:30
Arpit Temani
095a06b051 generics 2023-10-09 14:24:58 +05:30
Arpit Temani
dbb2c35ee0 added testcase 2023-10-09 14:16:30 +05:30
Arpit Temani
40760f00d4
Update bor_test.go 2023-10-09 14:13:09 +05:30
Arpit Temani
5af7192f03
Update config.go 2023-10-09 14:10:23 +05:30
Shivam Sharma
ee0907a493 update : gen_config.go 2023-10-09 13:12:19 +05:30
Shivam Sharma
1fc6354ab1 clean : shanghai changes 2023-10-06 12:06:46 +05:30
Shivam Sharma
558bb5433f fix : config and forkId tests 2023-10-05 14:39:43 +05:30
Shivam Sharma
2b1bd0997b Merge branch 'develop' into shivam/POS-1733 2023-10-05 12:14:31 +05:30
Anshal Shukla
5e43bdb30e
Merge pull request #1015 from maticnetwork/discord
readme: update discord links
2023-10-05 11:52:06 +05:30
Anshal Shukla
043b71d466 merge develop 2023-10-05 11:23:19 +05:30
Arpit Temani
bd124e639c burn contract testing 2023-10-04 15:28:51 +05:30
Anshal Shukla
da58cbc660 update discord links 2023-09-21 22:12:55 +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
Pratik Patil
ef38194156
Merge pull request #1013 from maticnetwork/master-to-develop
Backport master to develop after v1.0.4
2023-09-21 11:05:14 +05:30
Pratik Patil
2943db974d
Merge pull request #1010 from maticnetwork/v1.0.2-beta-candidate
1.0.2 beta candidate to master
2023-09-20 18:40:20 +05:30
Pratik Patil
70255b74ec
Merge branch 'master' into v1.0.2-beta-candidate 2023-09-20 17:38:09 +05:30
Arpit Temani
1918b4163a
Merge pull request #1009 from maticnetwork/develop
develop to v1.0.2-beta-candidate
2023-09-20 17:35:50 +05:30
Pratik Patil
18b3e1af05
version bump to v1.0.4 2023-09-20 17:30:21 +05:30
Pratik Patil
e901cc25c6
version bump to 1.0.4-beta 2023-09-19 11:51:19 +05:30
Pratik Patil
33c0b5dd69
added mutex to trie.tracer (#1007) 2023-09-18 10:43:16 +05:30
Jerry
fbb9020bec
Stop execution pool in rpc handler (#1005)
* Stop execution pool in rpc handler

All execution pools need to be closed properly. This fixes a potential goroutine leak caused by metric goutine created by each execution pool.

* Cancel only once
2023-09-15 13:06:47 -07:00
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
Manav Darji
71326b501b Simplify readme (#979)
* README: remove unnecessary info from readme and simplify

* more changes

* more changes

* more changes

* add contribution guidelines

* add test command

* README: add release tag info
2023-09-15 08:17:55 -07:00
Manav Darji
a54aadae4d
Simplify readme (#979)
* README: remove unnecessary info from readme and simplify

* more changes

* more changes

* more changes

* add contribution guidelines

* add test command

* README: add release tag info
2023-09-14 15:47:50 +05:30
Pratik Patil
bd4d85e3d3
version bump to v1.0.3-beta 2023-09-14 11:29:05 +05:30
Krishna Upadhyaya
11d19e12c4
Use borLogs instead of default (#1000) 2023-09-14 09:50:20 +05:30
Pratik Patil
8f6bb5c248
added RLock on pool.pendingMu in validateTxBasics() (#1001) 2023-09-14 09:48:30 +05:30
Pratik Patil
1f9c6bb045
version bump to 1.0.2-beta 2023-09-13 15:36:31 +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
47ad9e4c6f Rmv:Removed GetVoteOnHash() fn from consensus/bor/api.go 2023-09-12 16:39:08 +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
marcello33
3344026585 internal/ethapi: sort imports in api_test 2023-09-11 10:29:18 +02:00
marcello33
c1aa41d28c internal/ethapi: fix linter 2023-09-11 09:50:44 +02:00
marcello33
76ef290edc internal/ethapi: use model for check 2023-09-11 09:15:23 +02:00
marcello33
eab7c9de0d internal/ethapi: use receipt inner field for check and implement tests 2023-09-11 09:06:06 +02:00
SHIVAM SHARMA
2077d5c1b0
Merge pull request #996 from maticnetwork/v0.5.0-beta-candidate-2
Merge v0.5.0 into master
2023-09-11 12:02:35 +05:30
SHIVAM SHARMA
38295bdde5
Merge pull request #995 from maticnetwork/revert-982-v0.5.0-beta-candidate-2
Revert "Merge v0.5.0 into master"
2023-09-11 12:00:01 +05:30
SHIVAM SHARMA
f29eb2f5cc Revert "Merge v0.5.0 into master (#982)"
This reverts commit d42de35c67.
2023-09-11 11:58:40 +05:30