Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.2 beta candidate to master #1010

Merged
merged 58 commits into from
Sep 20, 2023
Merged

1.0.2 beta candidate to master #1010

merged 58 commits into from
Sep 20, 2023

Commits on Jul 27, 2023

  1. Configuration menu
    Copy the full SHA
    669f6e7 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Fixing copy name of the bor_bootnode.service file and updating the bo…

    …r_bootnode.service file for what is the current values
    djpolygon committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    49da26c View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Merge pull request #950 from maticnetwork/djpolygon/bootnode_package_…

    …updates
    
    Fixes for bootnode
    djpolygon committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    d495949 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. graphql: dev: chg: avoid greedy allocation on graphql blocks call (#958)

    * dev: chg: avoid greedy allocation on graphql blocks call
    
    * dev: fix: linter issues
    marcello33 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    b4cc1f6 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. Configuration menu
    Copy the full SHA
    30e37c5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b58ce59 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. fix : lint

    0xsharma committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    d43ad03 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. exempt draft PRs (#962)

    temaniarpit27 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    e3ad905 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. add db.engine flag

    anshalshukla committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    d342e65 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Configuration menu
    Copy the full SHA
    3fa0fec View commit details
    Browse the repository at this point in the history
  2. Merge pull request #960 from ForwardSlashBack/patch-1

    fix: Improve RETESTBOR.md document formatting
    temaniarpit27 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    58729e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18dd5dc View commit details
    Browse the repository at this point in the history
  4. Merge pull request #964 from maticnetwork/pebble

    internal/cli: add db.engine flag
    anshalshukla committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    d0f0cef View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. Configuration menu
    Copy the full SHA
    bebd296 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Merge pull request #947 from maticnetwork/shivam/POS-1608

    add : statesync execution verbosity
    0xsharma committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    66e8296 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. Configuration menu
    Copy the full SHA
    c7561db View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. Configuration menu
    Copy the full SHA
    3d7639c View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Configuration menu
    Copy the full SHA
    9eb9bfe View commit details
    Browse the repository at this point in the history
  2. remove indore hf logs

    manav2401 committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    e502a81 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b38412d View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. all: implement milestones (#961)

    * Milestone Implementation
    
    * Merge branch 'POS-347' into reciept-e2e-test
    
    * Changes for testing, will be removed after testing
    
    * Debugged the error
    
    * Just for testing purpose
    
    * refactor debug api methods, rename whitelist -> checkpoint
    
    * remove first iteration based vars
    
    * fix linters
    
    * Rewind Changes
    
    * Error changes
    
    * RewindBack function in bor_checkpoint_verifier
    
    * Testcases
    
    * Added the fetch test for milestone and checkpoint
    
    * Debugged the lint changes
    
    * Debugged the lint changes
    
    * Debugged the lint changes
    
    * Debugged the lint changes
    
    * Improved the error in Miner test file
    
    * Improved the error of pointing to the wrong function
    
    * Locking the sprint after the vote has been made on it.
    
    * Adding more logs for testing
    
    * Adding more logs for testing
    
    * Adding more logs for testing
    
    * Implemented the NoAckMilestone fetching mechanism
    
    * Testcases for milestone implementation
    
    * Testing code  for fetchNoAckMilestone and fetchLastNoAckMilestone
    
    * Testing changes
    
    * refactor else-if
    
    * Corrected the number of params in bor_ext.go
    
    * Dummy API for testing
    
    * Defined the GetVoteOnRootHash in interface
    
    * Defined the GetVoteOnRootHash in interface
    
    * Made changes in the web3ext file
    
    * Added the GetVoteOnRootHash in PublicBlockChain API
    
    * Added the GetVoteOnRootHash in filterBackend
    
    * Added the log of Root and RooHash
    
    * Removed the 0x from rootHash
    
    * Just for testing purpose
    
    * "GetVoteOnRootHash" mock implementation
    
    * bor_test.go
    
    * Added the test for milestone implementation
    
    * Added service for fetching milestone by ID
    
    * Improved the comments
    
    * Removed the duplicate code
    
    * use setter for borVerifier
    
    * use setter for borVerifier
    
    * refactor handleNoAckMilestone
    
    * remove code repetition with retry function
    
    * Converged the repetitive code
    
    * after CR
    
    * persistence
    
    * persistence implementation
    
    * feature flag
    
    * Persistence Changes
    
    * cr
    
    * initial
    
    * fix
    
    * fix
    
    * Whitelist Flag
    
    * 1 Add:Included the milestone flag  2.Add:Hardlimit the rewind to maximum of 255 blocks
    
    * Chg:Updated go.mod file
    
    * Remove:Dubai Hardfork code
    
    * Add:checked errors for call functions to the Db, Rmv: Remote Header variable from the IsValidPeer() function
    
    * Fix:Linting issues'
    
    * Add:MilestoneGRPC functions
    
    * Fix:Lint issues
    
    * Fix:Lint issues
    
    * Fix: TestFetchMilestoneFromMockHeimdall
    
    * Fix:Integrations tests
    
    * Add:Test for sprint length and milestone changes
    
    * Add:Functionality to fetch the finalized block
    
    * Chg:Changed default val of TriesInmemory to 1024
    
    * fix:Some functions of heimdallGRPC client
    
    * Restored the GRPC functionality, was commented out for  developing purpose
    
    * Fix:Bor_checkpoint_Verfier function
    
    * Test:Added the chain Rewinding test
    
    * Test:Added the Sprint Length + Milestone merge test
    
    * Add:Implemented the future milestone
    
    * Add:Future milestone changes
    
    * Add:Future milestone changes
    
    * Chg: Voting on endBlockHash rather than rootHash
    
    * Chg: Changed the logic of future milestone from rootHash checking to endBlockHash checking
    
    * Fix:Using endBockHash while verifying the incoming milestone
    
    * Chg:Variable names for better readiblity
    
    * Fix:Testing changes
    
    * Add:metrics for milestone implementation
    
    * Add:Metrics for milestone implementatian
    
    * Fix:Order of statements in a function for better optimization
    
    * Chg:Removed unrequired file
    
    * Fix:new variable intialization
    
    * Add:Comment to increase readiblity
    
    * Fix:Logs
    
    * Chg:Name of GetVoteOnRootHash to GetVoteOnHash
    
    * Fix:Linting issues
    
    * Fixed linting issues
    
    * Rmv: Unnecessary logs and Add:Skip test for long tests
    
    * Fix:Checking current chain with whitelisted milestone or checkpoint in Finalized block function
    
    * Fix:Test
    
    * Fix:Whitelisting of Milestone and Checkpoint process
    
    * Fix: Milestone JSON structure
    
    * Chg:Testcases changes
    
    * Fix:Change from VoteOnRootHash to VoteOnHash
    
    * Fix:Variable name fix
    
    * Fix:Finalized API
    
    * internal/jsre/deps: update web3.js bundle
    
    * Fix:milestone verifier
    
    * Chg:Handling the long future chain import issue
    
    * Fix:Lint issues
    
    * Fix:TestLowDiffLongChain and TestPrunedImportSide tests, used hardcoded value 128 instead of DefaultTriesInMemory value
    
    * Chg:Testcode for producing metrics
    
    * Chg:Milestong polling value to 32 secs
    
    * Add:Testcases
    
    * Add:Implemented the check to fetch the milestoneId from heimdall before locking the fork
    
    * Added GRPC method for FetchMilestoneID
    
    * Fix:lint issue
    
    * Fix:lint issue
    
    * Skiped out the tests which were mainly used to produce the supporting data
    
    * remove vcs build when running snyk
    
    * Add:Improved the logs and comments
    
    * fix linters
    
    * Skipped some test as they are panic due to timeout issue in github
    
    * Chg:Variable name LockerSprintNumber to LockedMilestoneNumber for better readablity and clarity
    
    * Chg:Conflicting variable names in milestone test file
    
    * Chg:Conflicting function names in milestone test file
    
    * fix : minor fix in TestInsertingSpanSizeBlocks
    
    * Fix:Mocking issue in TestInsertingSpanSizeBlocks
    
    * Fix:GRPC Polyproto Version
    
    * eth/downloader: skip peer drop due to whitelisting err
    
    * eth, tests/bor: bug fixes and minor refactor
    
    * Add:Implemented the milestone related functions in the HeimdallApp
    
    * Fix:Lint Errors & Remove:Redundant Code
    
    * Fix:Testing Errors
    
    * Fix:Bor integeration tests
    
    * Fix:Test errors
    
    * update heimdall client mock files
    
    * remove unused arguments
    
    * remove redundant code
    
    * Chg:Changed the milestone polling intervals
    
    * Add: added block finality from whitelisted checkpoint
    
    * skip future chain validation
    
    * Add:confirmation check of 16 blocks over the end block while voting for the milestone in GetVoteHash() function
    
    * Chg:Included endBlockNum in UnlockMutex function
    
    * Add:Property based test for milestone
    
    * Fix:Opening the lock while processing future milestone
    
    * Add:Property based test for futureMilestone
    
    * Defined the value of TempTriesInMemory
    
    * Fixed the finalized api
    
    * Fixed lint issues
    
    * eth: add logs while fetching and rewinding
    
    * fix linters: use default returns instead of recursive calls
    
    * Fix:Milestone intergration test
    
    * Add:GetVoteHash fn in mock backend
    
    * tests/bor: fix mock span
    
    * tests/bor: remove t.Parallel()
    
    * use bor namespace in ethclient, fix mock function
    
    ---------
    
    Co-authored-by: Vaibhav Jindal <vaibhavjindal29@gmail.com>
    Co-authored-by: VaibhavJindal <74560896+VAIBHAVJINDAL3012@users.noreply.github.com>
    Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
    Co-authored-by: Evgeny Danienko <6655321@bk.ru>
    Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
    Co-authored-by: Anshal Shukla <shukla.anshal85@gmail.com>
    7 people committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    b48b89f View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Configuration menu
    Copy the full SHA
    f105179 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b32521d View commit details
    Browse the repository at this point in the history
  3. Merge pull request #978 from maticnetwork/arpit/merge-latest-branch

    Arpit/merge latest branch
    temaniarpit27 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    40f329f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bf3df86 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Configuration menu
    Copy the full SHA
    1beedc7 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Configuration menu
    Copy the full SHA
    aea4881 View commit details
    Browse the repository at this point in the history
  2. miner/worker :: add : start commit work only after connecting to peers (

    #977)
    
    * add : start commit work only after connecting to peers
    
    * fix : chainconfig fix
    
    * chg : change test and unitTest chainconfigs chainID from 80001
    
    * fix : p2p server deadlock
    0xsharma committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    4d96b14 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. .github/workflows: run more parallel CI jobs (#976)

    * .github/workflows: run parallel CI jobs
    
    * undo
    manav2401 committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    530a233 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Configuration menu
    Copy the full SHA
    c5e6c79 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #987 from maticnetwork/raneet10/pos-1781

    CI: Increase smoke test timeout
    Raneet10 committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    50d4f10 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Configuration menu
    Copy the full SHA
    1982695 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Configuration menu
    Copy the full SHA
    fca0d89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eab7c9d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    76ef290 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c1aa41d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3344026 View commit details
    Browse the repository at this point in the history
  6. Update mainnet bootnodes

    cffls committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    d75081d View commit details
    Browse the repository at this point in the history
  7. Update mumbai bootnodes

    cffls committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    07d7c6c View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. 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](https://github.com/syndtr/goleveldb/blob/126854af5e6d8295ef8e8bee3040dd8380ae72e8/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
    rroblak committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    ebc7dc2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43d54c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47ad9e4 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #998 from maticnetwork/v1.0.0-beta-candidate

    V1.0.0 beta candidate
    pratikspatil024 committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    3442c03 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Added a new RPC endpoint (bor_sendRawTransactionConditional) to sup…

    …port 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>
    pratikspatil024 and JekaMas committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    67fc4d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f9c6bb View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Configuration menu
    Copy the full SHA
    8f6bb5c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11d19e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bd4d85e View commit details
    Browse the repository at this point in the history
  4. 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
    manav2401 committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    a54aada View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. 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
    manav2401 authored and cffls committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    71326b5 View commit details
    Browse the repository at this point in the history
  2. Enable prometheus in bootnode

    cffls committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    ec6b092 View commit details
    Browse the repository at this point in the history
  3. Add read header timeout

    cffls committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    5fcd45e View commit details
    Browse the repository at this point in the history
  4. 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
    cffls committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    fbb9020 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Configuration menu
    Copy the full SHA
    33c0b5d View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Configuration menu
    Copy the full SHA
    e901cc2 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    18b3e1a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1009 from maticnetwork/develop

    develop to v1.0.2-beta-candidate
    temaniarpit27 committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    1918b41 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70255b7 View commit details
    Browse the repository at this point in the history