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

Merged ledgerwatch/erigon v2.48.1 #51

Open
wants to merge 627 commits into
base: firehose-v2
Choose a base branch
from
Open
This pull request is big! We’re only showing the most recent 250 commits.

Commits on May 11, 2023

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

Commits on May 12, 2023

  1. params: new sepolia bootnodes (erigontech#7502)

    New sepolia bootnodes managed by EF devops. Cherry pick
    ethereum/go-ethereum#27099
    
    Co-authored-by: Parithosh Jayanthi <[email protected]>
    yperbasis and parithosh authored May 12, 2023
    Configuration menu
    Copy the full SHA
    9e2bf15 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2023

  1. Configuration menu
    Copy the full SHA
    233a06a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cf2b42 View commit details
    Browse the repository at this point in the history
  3. Allow ephemeral ports for p2p (erigontech#7503)

    Currently, the p2p ports require an explicit enumeration of ports to
    pick. Sometimes, for instance when writing integration tests utilizing
    an Erigon binary the particular p2p port does not matter and trying to
    pick non-allocated port ranges is fragile.
    
    This small PR simply checks to see if the enumerated port is '0', in
    which case it disables the probing check which would otherwise cause
    Erigon not to try binding to an ephemeral port.
    
    Co-authored-by: Jason Yellick <[email protected]>
    jyellick and jyellick authored May 13, 2023
    Configuration menu
    Copy the full SHA
    a709279 View commit details
    Browse the repository at this point in the history
  4. [devnet tool] Side-quest: logging step 7 (erigontech#7506)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 13, 2023
    Configuration menu
    Copy the full SHA
    bc16917 View commit details
    Browse the repository at this point in the history
  5. [caplin] pkg refactor (erigontech#7507)

    Co-authored-by: Giulio <[email protected]>
    elee1766 and Giulio2002 authored May 13, 2023
    Configuration menu
    Copy the full SHA
    cda1444 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2023

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

Commits on May 15, 2023

  1. Configuration menu
    Copy the full SHA
    7a4114d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ab48c0 View commit details
    Browse the repository at this point in the history
  3. e2: ReadAhead of blocks, senders accounts, code (erigontech#7501)

    It improves performance of initial sync (stage exec) by 5-20% when
    blocks snapshots are mounted to high-latency drive and when chaindata is
    on high-latency drive. And improving cold-start performance.
    
    Current implementation using 2 goroutines for ReadAhead. It also
    producing more garbage, can improve it later (here are dashboard with
    impact).
    ```
    mainnet2-1: with ReadAhead
    mainnet2-3: no ReadAhead
    ```
    
    <img width="949" alt="Screenshot 2023-05-12 at 09 24 31"
    src="https://github.com/ledgerwatch/erigon/assets/46885206/b90b1fa8-9099-48ff-95b3-86e864a36d46">
    
    <img width="845" alt="Screenshot 2023-05-12 at 09 24 13"
    src="https://github.com/ledgerwatch/erigon/assets/46885206/39d90c0c-a9d5-4735-8c03-da1455b147aa">
    AskAlexSharov authored May 15, 2023
    Configuration menu
    Copy the full SHA
    b3aca15 View commit details
    Browse the repository at this point in the history
  4. [devnet tool] separate logging (erigontech#7510)

    Co-authored-by: Alex Sharp <[email protected]>
    Co-authored-by: Alexey Sharp <[email protected]>
    3 people authored May 15, 2023
    Configuration menu
    Copy the full SHA
    5d6b0ea View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4cbbe65 View commit details
    Browse the repository at this point in the history
  6. [devnet tool] fixing port conflicts (erigontech#7520)

    Co-authored-by: Alexey Sharp <[email protected]>
    AlexeyAkhunov and Alexey Sharp authored May 15, 2023
    Configuration menu
    Copy the full SHA
    90cb6be View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6f758fd View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. [devnet tool] separate logging (erigontech#7525)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 16, 2023
    Configuration menu
    Copy the full SHA
    3f9ae3e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53b116c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ea9712f View commit details
    Browse the repository at this point in the history

Commits on May 17, 2023

  1. downloader: speedup "--downloader.verify" mode (erigontech#7529)

    deduplicate logic
    create more producer goroutines (torrent lib does limiting internally
    amount of consumers/disk-readers/hashers by 2, and it's enough because
    we can verify multiple files in parallel)
    move flag from "downloader torrent_hashes --verify" to "downloader
    --verify"
    AskAlexSharov authored May 17, 2023
    Configuration menu
    Copy the full SHA
    a2ad68d View commit details
    Browse the repository at this point in the history
  2. [devnet tool] separate logging (erigontech#7526)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 17, 2023
    Configuration menu
    Copy the full SHA
    e75ea78 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    02f2329 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c0096ee View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    10848ad View commit details
    Browse the repository at this point in the history
  6. [devnet tool] separare logging (erigontech#7531)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 17, 2023
    Configuration menu
    Copy the full SHA
    05597cb View commit details
    Browse the repository at this point in the history
  7. eth2 shuffle (erigontech#7522)

    moves eth2shuffle package to erigon.
    elee1766 authored May 17, 2023
    Configuration menu
    Copy the full SHA
    761524a View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

  1. go mod tidy

    AskAlexSharov committed May 18, 2023
    Configuration menu
    Copy the full SHA
    2f362f3 View commit details
    Browse the repository at this point in the history
  2. go mod tidy

    AskAlexSharov committed May 18, 2023
    Configuration menu
    Copy the full SHA
    b8d65f5 View commit details
    Browse the repository at this point in the history
  3. Fix trace_filter regression due to gasBailout argument (erigontech#7539

    …) (erigontech#7540)
    
    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 18, 2023
    Configuration menu
    Copy the full SHA
    685dee8 View commit details
    Browse the repository at this point in the history
  4. Introduce logger into etl (erigontech#7537)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 18, 2023
    Configuration menu
    Copy the full SHA
    b382f96 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2023

  1. [devnet] separate logging - p2p (erigontech#7547)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 19, 2023
    Configuration menu
    Copy the full SHA
    b0117a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65efc92 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7272c00 View commit details
    Browse the repository at this point in the history
  4. [devnet] separate logging p2p (erigontech#7549)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 19, 2023
    Configuration menu
    Copy the full SHA
    c919283 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2023

  1. [devnet] separare logging - headers download (erigontech#7551)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 20, 2023
    Configuration menu
    Copy the full SHA
    2a872b4 View commit details
    Browse the repository at this point in the history
  2. [devnet tool] Separate logging (erigontech#7553)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 20, 2023
    Configuration menu
    Copy the full SHA
    067f695 View commit details
    Browse the repository at this point in the history
  3. Args usage msg bug fix (erigontech#7554)

    ## What's this PR is about?
    Minor fix in args usage message of support flag. The current message
    says that the flag should be 'metrics.url' but it reality it should be
    'metrics.urls'
    anshulforyou authored May 20, 2023
    Configuration menu
    Copy the full SHA
    2c194e1 View commit details
    Browse the repository at this point in the history
  4. [devnet] separate logging (erigontech#7556)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 20, 2023
    Configuration menu
    Copy the full SHA
    c408281 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2023

  1. [devnet] log devnet tool output into a file (erigontech#7557)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 21, 2023
    Configuration menu
    Copy the full SHA
    cb04c20 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. move e2 snapshots management closer to e3: step 1 (erigontech#7543)

    - always RLock all snapshots - to guarantee consistency
    - introduce class View (analog of RoTx and MakeContext)
    - move read methods to View object
    - View object will be managed by temporal_tx
    
    ---------
    
    Co-authored-by: Alex Sharp <[email protected]>
    AskAlexSharov and Alex Sharp authored May 22, 2023
    Configuration menu
    Copy the full SHA
    2865b85 View commit details
    Browse the repository at this point in the history
  2. [devnet tool] Use logging instead of fmt.Printf (erigontech#7560)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 22, 2023
    Configuration menu
    Copy the full SHA
    a8ec9eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d0dee6 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. Configuration menu
    Copy the full SHA
    18990ff View commit details
    Browse the repository at this point in the history
  2. eth/backend, cmd/erigon-el/backend: start mining immediately (erigont…

    …ech#7424)
    
    When mining is enabled, it waits for either a new block event, or a tx
    notif or recommit interval before it starts mining the first block. This
    PR achieves the following things:
    
    - Start mining immediately (subsequent blocks will be mined via the new
    head channel or miner.recommit timer).
    - Modifies the conditions when it needs to look for new mining work
    - Don't start mining on arrival of new transactions as it can be too
    frequent (only for bor consensus as of now).
    - Reset timer only if some work was done previously
    manav2401 authored May 23, 2023
    Configuration menu
    Copy the full SHA
    d279c43 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    63afe65 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    696ccb6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    23bd147 View commit details
    Browse the repository at this point in the history
  6. Caplin: Adding SSZ generics (erigontech#7542)

    This PR makes the SSZ encodings less demented and more compact/flexible
    overall
    Giulio2002 authored May 23, 2023
    Configuration menu
    Copy the full SHA
    faf62a0 View commit details
    Browse the repository at this point in the history
  7. Skip gas limit checks for chains with gas limit contract (erigontech#…

    …7567)
    
    Dirty hack to fix Chiado until erigontech#7151 is properly implemented. Should fix
    the following error:
    ```
    [WARN] [05-23|17:07:39.303] Verification failed for header           hash=0x4eee718e5958a862746ea9a9531a16e6a404698d3a0e8120e8aff743b9f1e0a2 height=1 err="invalid gas limit: have 12500000, want 10000000 +-= 9764"
    ```
    yperbasis authored May 23, 2023
    Configuration menu
    Copy the full SHA
    319e99e View commit details
    Browse the repository at this point in the history

Commits on May 24, 2023

  1. consensus/bor: use current producers for extra data validation (erigo…

    …ntech#7564)
    
    Fixes issues with consensus validation. Compare against current producer
    set instead of whole validator set.
    manav2401 authored May 24, 2023
    Configuration menu
    Copy the full SHA
    ad5974d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    179b138 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb0434b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2181b6a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    31687be View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0c399e5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a79033c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    946b0e8 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2023

  1. Configuration menu
    Copy the full SHA
    000dda6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    111db5f View commit details
    Browse the repository at this point in the history
  3. Fix fork ID test for Chiado (erigontech#7576)

    Fix a test after PR erigontech#7575
    yperbasis authored May 25, 2023
    Configuration menu
    Copy the full SHA
    a47e49c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cfafa24 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

  1. Configuration menu
    Copy the full SHA
    eafb120 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    279e1be View commit details
    Browse the repository at this point in the history
  3. torrent-related goroutine leack (erigontech#7545)

    can't merge - because `torrent` lib dropped go1.19 support
    AskAlexSharov authored May 26, 2023
    Configuration menu
    Copy the full SHA
    ead4569 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    94ceb6f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3b7c603 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    14653bb View commit details
    Browse the repository at this point in the history

Commits on May 27, 2023

  1. receipts: less allocs in DeriveFields, use blockReader, remove ReadRe…

    …ceiptsByHash, gasPriceOracle don't read block twice and use blockLru (erigontech#7592)
    
    preparation for adding BlockID
    AskAlexSharov authored May 27, 2023
    Configuration menu
    Copy the full SHA
    3ec7d9b View commit details
    Browse the repository at this point in the history

Commits on May 28, 2023

  1. [caplin] incremental improvements to p2p layer (erigontech#7582)

    we update observability in the p2p layer for handlers, and also properly
    encode error codes, close streams.
    
    ---------
    
    Co-authored-by: Alex Sharov <[email protected]>
    Co-authored-by: Giulio <[email protected]>
    3 people authored May 28, 2023
    Configuration menu
    Copy the full SHA
    3c2b99e View commit details
    Browse the repository at this point in the history
  2. feature: support generate parse transaction input bytes codes in `abi…

    …gen` (erigontech#7593)
    
    feature: support generate parse transaction input bytes codes in
    `abigen`.
    
    
    It's easy to use abigen to generate code that help you parse the event
    log and call the payable method with the transactor.
    
    But parsing the transaction call data is missing. You can only send a
    transaction with a transactor. This PR aims to generate codes that help
    developer parse transaction calldata.
    
    abigen can generate code to parse the transaction call data.    
    
    With this PR, transaction parse codes are generated like this:   
    
    ```go
    // CollectParams is an auto generated read-only Go binding of transcaction calldata params
    type CollectParams struct {
    	Param_params INonfungiblePositionManagerCollectParams
    }
    
    // Parse Collect method from calldata of a transaction
    //
    // Solidity: function collect((uint256,address,uint128,uint128) params) payable returns(uint256 amount0, uint256 amount1)
    func ParseCollect(calldata []byte) (*CollectParams, error) {
    	if len(calldata) <= 4 {
    		return nil, fmt.Errorf("invalid calldata input")
    	}
    
    	_abi, err := abi.JSON(strings.NewReader(UniswapABI))
    	if err != nil {
    		return nil, fmt.Errorf("failed to get abi of registry metadata: %w", err)
    	}
    
    	out, err := _abi.Methods["collect"].Inputs.Unpack(calldata[4:])
    	if err != nil {
    		return nil, fmt.Errorf("failed to unpack collect params data: %w", err)
    	}
    
    	var paramsResult = new(CollectParams)
    	value := reflect.ValueOf(paramsResult).Elem()
    
    	if value.NumField() != len(out) {
    		return nil, fmt.Errorf("failed to match calldata with param field number")
    	}
    
    	out0 := *abi.ConvertType(out[0], new(INonfungiblePositionManagerCollectParams)).(*INonfungiblePositionManagerCollectParams)
    
    	return &CollectParams{
    		Param_params: out0,
    	}, nil
    }
    ```
    
    
    Example of using `Parse` Function above:  
    
    
    ```go
    package bin
    
    import (
    	"context"
    	"fmt"
    	"testing"
    
    	"github.com/ledgerwatch/erigon/common/hexutil"
    	"github.com/ledgerwatch/erigon/rpc"
    	"github.com/ledgerwatch/log/v3"
    )
    
    func TestOnParse(t *testing.T) {
    	cli, err := rpc.Dial("https://rpc.ankr.com/polygon", log.New(context.Background()))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var collectTx struct {
    		Input string `json:"input"`
    	}
    	err = cli.CallContext(context.Background(), &collectTx, "eth_getTransactionByHash", "0x741146cce64d873cfe82ade413651de355a6db92f992e5bfc4e1c58d92f5dd5b")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var increaseLiquidityTx struct {
    		Input string `json:"input"`
    	}
    	err = cli.CallContext(context.Background(), &increaseLiquidityTx, "eth_getTransactionByHash", "0x645ff650d7bfb9a74f573af474b9ebee48c3fadc7dac67257a8da6b55c71f338")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	fmt.Println(collectTx.Input)
    	fmt.Println(increaseLiquidityTx.Input)
    
    	collectBytes, _ := hexutil.Decode(collectTx.Input)
    
    	increaseLiquidityBytes, _ := hexutil.Decode(increaseLiquidityTx.Input)
    
    	collectInfo, err := ParseCollect(collectBytes)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	increaseLiquidityInfo, err := ParseIncreaseLiquidity(increaseLiquidityBytes)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	fmt.Printf("%+v\n", collectInfo)
    	fmt.Printf("%+v\n", increaseLiquidityInfo)
    }
    ```
    
    Output of code above:  
    
    
    &{Param_params:{TokenId:+894123
    Recipient:0x48B8e4ed457da9B64c33Ee50Fd5490614833A37D
    Amount0Max:+340282366920938463463374607431768211455
    Amount1Max:+340282366920938463463374607431768211455}}
    &{Param_params:{TokenId:+891904 Amount0Desired:+331092 Amount1Desired:+0
    Amount0Min:+331092 Amount1Min:+0 Deadline:+1685112789}}
    fenghaojiang authored May 28, 2023
    Configuration menu
    Copy the full SHA
    5554ff3 View commit details
    Browse the repository at this point in the history
  3. Caplin: Proper validator set (erigontech#7591)

    Adding proper flat buffer to Caplin
    Giulio2002 authored May 28, 2023
    Configuration menu
    Copy the full SHA
    2d3b3c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    027d83b View commit details
    Browse the repository at this point in the history

Commits on May 29, 2023

  1. Header downloader monitor for diagnostics system (erigontech#7590)

    ## What's this PR about?
    
    - Added states to be sent to diagnostics system for header downloader
    monitor
    - Added the code for sending the states through the tunnel
    - Code added for updating the states in the header_algos.go file
    
    ---------
    
    Co-authored-by: alex.sharov <[email protected]>
    anshulforyou and AskAlexSharov authored May 29, 2023
    Configuration menu
    Copy the full SHA
    1fb053f View commit details
    Browse the repository at this point in the history
  2. cmd/evm: support batched statetest-mode (erigontech#7598)

    This implements batched state-test exectution, similar to
    ethereum/go-ethereum#27318 .
    Some speedtests, executing a state-test twice on current master takes
    ~4-5 seconds, and scales linerarly.
    ```
    Doing 2 execs old style
    
    real    0m8.185s
    user    0m8.081s
    sys     0m0.110s
    ```
    Doing `100` executions on this PR -- a few seconds of ramp-up time, but
    very quick execution after that :
    ```
    Doing 100 execs v2
    
    real    0m5.009s
    user    0m4.560s
    sys     0m0.508s
    ```
    I also tested a version where I moved the db instantiation into the top
    callsite, with the `MustOpen` and `.Close` only performed once, instead
    of `100` times -- however, I noticed no additional speed gains from
    doing so (my branch `batched_evm_v2`).
    
    Therefore, I suspect that the slowdowns comes not from the db, but the
    kzg library initialization.
    holiman authored May 29, 2023
    Configuration menu
    Copy the full SHA
    c042afb View commit details
    Browse the repository at this point in the history
  3. PIP12: Implement time based StateSync confirmation delay (erigontech#…

    …7587)
    
    This PR implements [PIP
    12](https://github.com/maticnetwork/Polygon-Improvement-Proposals/blob/main/PIPs/PIP-12.md).
    It introduces time based state sync confirmation delay and adds Indore
    hard fork on polygon chains.
    
    The corresponding PR on erigon-lib can be found here:
    ledgerwatch/erigon-lib#1002.
    manav2401 authored May 29, 2023
    Configuration menu
    Copy the full SHA
    eb98a0a View commit details
    Browse the repository at this point in the history
  4. [devnet tool] single request generator (erigontech#7600)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 29, 2023
    Configuration menu
    Copy the full SHA
    708ea92 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. Configuration menu
    Copy the full SHA
    af83845 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3cba390 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    299c81e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0dc8e27 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c0042d5 View commit details
    Browse the repository at this point in the history
  6. [devnet] Remove dependency on rpctest (erigontech#7608)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 31, 2023
    Configuration menu
    Copy the full SHA
    f5bd806 View commit details
    Browse the repository at this point in the history
  7. [devnet] fix logging (erigontech#7611)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 31, 2023
    Configuration menu
    Copy the full SHA
    d66f9ce View commit details
    Browse the repository at this point in the history
  8. [sentry] initiate eth66 protocol under eth67 (erigontech#7612)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored May 31, 2023
    Configuration menu
    Copy the full SHA
    b359504 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. Configuration menu
    Copy the full SHA
    5a60ebe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c7da48 View commit details
    Browse the repository at this point in the history
  3. Downloader fix no race between .Download() and .Stats() (erigontech#7617

    )
    
    It fixing 1 case: when erigon start from scratch 
    - it did skip stage_snapshots because of race-condition and start
    printing `Waiting for Consensus Layer...` logs for long time - but
    actually Erigon just did download snapshots at this time and printed
    wrong logs.
    AskAlexSharov authored Jun 1, 2023
    Configuration menu
    Copy the full SHA
    4ddd2c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d54f604 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6c0b531 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c6b12ed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d77f057 View commit details
    Browse the repository at this point in the history
  8. Caplin: added tests (erigontech#7623)

    Added CL tests to have test coverage over 60% in all files covered by
    running ssh ./cl/coverage
    enriavil1 authored Jun 1, 2023
    Configuration menu
    Copy the full SHA
    94276de View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8bc1fda View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. Configuration menu
    Copy the full SHA
    7c89afc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2278bf5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3ccc7da View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d56d867 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5fb31ae View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b163d3a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    695b8e5 View commit details
    Browse the repository at this point in the history
  8. snapshots: DumpBodies - break dependency on body.BaseTxNum value in …

    …db (erigontech#7607)
    
    it's step towards saving canonical and non-canonical bodies in same
    table (and txs also in same own table). to reduce write amplification
    (cheaper re-orgs)
    
    PR change: reading BaseTxNum from existing snapshots instead of DB 
    DB will store in field body.BaseTxNum - non-canonical TxnID  
    Snapshots will store only canonical TxNum in field body.BaseTxNum
    AskAlexSharov authored Jun 2, 2023
    Configuration menu
    Copy the full SHA
    436656a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2c4f4d8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6439bdd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3750ee6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b2a90e0 View commit details
    Browse the repository at this point in the history
  13. Up version of diagnostics protocol (erigontech#7638)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored Jun 2, 2023
    Configuration menu
    Copy the full SHA
    5c1117d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    6602c89 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    91dd39a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    190bc9d View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2023

  1. Configuration menu
    Copy the full SHA
    d40317c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f54cc6 View commit details
    Browse the repository at this point in the history
  3. prune speedup. stage_senders: don't re-calc existing senders (erigont…

    …ech#7643)
    
    - stage_senders: don't re-calc existing senders
    - stage_tx_lookup: prune less blocks per iteration - because
    random-deletes are expensive. pruning must not slow-down sync.
    - prune data even if --snap.stop is set
    - "prune as-much-as-possible at startup" is not very good idea: at
    initialCycle machine can be cold and prune will cause big downtime, no
    reason to produce much freelist in 1 tx. People may also restart erigon
    - because of some bug - and it will cause unexpected downtime (usually
    Erigon startup very fast). So, I just remove all `initialSync`-related
    logic in pruning.
    - fix lost metrics about disk write byte/sec
    AskAlexSharov authored Jun 3, 2023
    Configuration menu
    Copy the full SHA
    ad72b71 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    63c9201 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    157b6de View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    569c120 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    999c0ba View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e11c819 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2023

  1. [caplin] record mode (erigontech#7651)

    interface for recording things
    elee1766 authored Jun 4, 2023
    Configuration menu
    Copy the full SHA
    2162565 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c8e717c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f70ceef View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    895e7dd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    feea6b9 View commit details
    Browse the repository at this point in the history
  6. refactor to allow switchable consensus and multiple communicating nod…

    …es (erigontech#7646)
    
    This branch is intended to allow the devnet to be used for testing
    multiple consents types beyond the default clique. It is initially being
    used to test Bor consensus for polygon.
    
    It also has the following refactoring:
    
    ### 1.  Network configuration
    
    The two node arg building functions miningNodeArgs and nonMiningNodeArgs
    have been replaced with a configuration struct which is used to
    configure:
    
    ```go
    network := &node.Network{
    		DataDir: dataDir,
    		Chain:   networkname.DevChainName,
    		//Chain:              networkname.BorDevnetChainName,
    		Logger:             logger,
    		BasePrivateApiAddr: "localhost:9090",
    		BaseRPCAddr:        "localhost:8545",
    		Nodes: []node.NetworkNode{
    			&node.Miner{},
    			&node.NonMiner{},
    		},
    	}
    ```
    and start multiple nodes
    
    ```go
    network.Start()
    ```
    Network start will create a network of nodes ensuring that all nodes are
    configured with non clashing network ports set via command line
    arguments on start-up.
    
    ### 2. Request Routing
    
    The `RequestRouter` has been updated to take a 'target' rather than
    using a static dispatcher which routes to a single node on the network.
    Each node in the network has its own request generator so command and
    services have more flexibility in request routing and
    `ExecuteAllMethods` currently takes the `node.Network` as an argument
    and can pick which node (node 0 for the moment) to send requests to.
    mh0lt authored Jun 4, 2023
    Configuration menu
    Copy the full SHA
    415cf86 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e45ed7d View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Configuration menu
    Copy the full SHA
    26f9c06 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f62b6fd View commit details
    Browse the repository at this point in the history
  3. Store Canonical/NonCanonical/Bad blocks/senders/txs in same tables. M…

    …ake re-org cheaper (erigontech#7648)
    
    - allow store non-canonical blocks/senders
    - optimize re-org: don't update/delete most of data
    - allow mark chain as `Bad` - will be not visible by eth_getBlockByHash,
    but can read if have hash+num
    AskAlexSharov authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    e14664d View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. Configuration menu
    Copy the full SHA
    3a8d5c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6c129e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bf9f506 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d703c3c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    250ecfc View commit details
    Browse the repository at this point in the history
  6. Added non root logger to bor.ValidatorSet (erigontech#7668)

    I've added a non root logger to bor.ValidatorSet validator set. This
    creates a signature change on a number of calling functions to propagate
    the logger. This is mostly constrained to the bor package but impacts a
    number of tests and utilities which call the validators set.
    mh0lt authored Jun 6, 2023
    Configuration menu
    Copy the full SHA
    37a8450 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5e682aa View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Configuration menu
    Copy the full SHA
    fa0cfcb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a74ee2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    07e2100 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Indore hardfork for polygon mumbai and fixes in bor consensus (erigon…

    …tech#7681)
    
    This PR does the following things:
    - Updates the hardfork number of the upcoming Indore hardfork schedule
    at block 36877056.
    - Refactoring to `CommitStates` method of bor consensus
    - Fixes a bug in triggering mining
    manav2401 authored Jun 8, 2023
    Configuration menu
    Copy the full SHA
    421ee91 View commit details
    Browse the repository at this point in the history
  2. added a listener for beacon api and added get genesis (erigontech#7659)

    Added two new flags beacon.api.port and beacon.api.addr
    
    Now we can listen for beacon api and get beacon genesis
    
    ---------
    
    Co-authored-by: Giulio <[email protected]>
    enriavil1 and Giulio2002 authored Jun 8, 2023
    Configuration menu
    Copy the full SHA
    1cb1c30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8f8da14 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7671f41 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. Configuration menu
    Copy the full SHA
    afa4f53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c39570 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddfe93b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1546a79 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    06af87d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    614769f View commit details
    Browse the repository at this point in the history
  7. 7667 cli params vhost (erigontech#7669)

    This change adds 'any' as an alternate wildcard to '*'.
    
    I have updated all doc references in the main erigon repo - let me know
    if there is anywhere else that needs changing.
    mh0lt authored Jun 9, 2023
    Configuration menu
    Copy the full SHA
    62b2375 View commit details
    Browse the repository at this point in the history
  8. [bor] Desambiguate the term checkpoint (erigontech#7698)

    I realised that the term `checkpoint` is used in 2 different meanings in
    the code, which are distinct. Renaming one of the to persistentSnapshots
    to reduce confusion
    AlexeyAkhunov authored Jun 9, 2023
    Configuration menu
    Copy the full SHA
    2ea9eb5 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2023

  1. rpc service and stageloop logger updates (erigontech#7696)

    This is another update to logging to replace the root logger with a
    contextual logger
    mh0lt authored Jun 10, 2023
    Configuration menu
    Copy the full SHA
    1e575ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8841055 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2023

  1. Configuration menu
    Copy the full SHA
    b7469d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b89ed8 View commit details
    Browse the repository at this point in the history
  3. e2: avoid do RestoreCodeHash twice (erigontech#7706)

    - do it only once in HistoryStateReader
    AskAlexSharov authored Jun 11, 2023
    Configuration menu
    Copy the full SHA
    4766cd8 View commit details
    Browse the repository at this point in the history
  4. eth_sendRawTransaction: remove logging, because we have `--txpool.tra…

    …ce.senders` which enabling more verbose logging for given senders list (erigontech#7686)
    
    When testing with `Bor` consensus turned on I discovered that
    `SendRawTransaction` returns a 0x000... hash when transactions are
    submitted during block transitions. This turns out to be spurious in the
    sense that the transaction insertion is successful.
    
    The cause is that `ReadCurrentBlockNumber` returns a nil block number.
    
    This in turn is caused by the following: In `accessors_chain.go` there
    are two methods: `WriteHeader` and `WriteHeadHeaderHash` when the first
    is called the block number is written for the header. The second writes
    the header has, but there is no guarantee when it does that the head
    header will have been written yet. In fact it seems to happen sometime
    later.
    
    The problem for `SendRawTransation` is that it begins a transaction
    after inserting into the txpool. And depending on timing this
    transaction may see only the `WriteHeadHeaderHash` insertion, and hence
    can't read the block number.
    
    I have mitigated this by opening the db transaction before calling the
    tx pool insertion, meaning that it is more likely to have a clean view
    of the DB.
    
    I have also moved the chain id check earlier in the code - as I think
    that if this is invalid the method should not try to insert transactions
    in the first place.
    
    The `ReadCurrentBlockNumber` is only used to produce a log message - so
    I've changed this to not fail the whole function but to just log an
    unknown sender. Which means that the hash is still returned to the
    sender after a successful txpool insertion
    mh0lt authored Jun 11, 2023
    Configuration menu
    Copy the full SHA
    f9acbff View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    afd8ea9 View commit details
    Browse the repository at this point in the history
  6. [Caplin] added deneb into converting payload to grpc (erigontech#7708)

    Added so now we can have version 3 payloads preparing for Deneb
    enriavil1 authored Jun 11, 2023
    Configuration menu
    Copy the full SHA
    eac9ead View commit details
    Browse the repository at this point in the history
  7. [Caplin] added configurations for beacon api (erigontech#7699)

    Now you can configure:
    
    Read timeout (default: 5s)
    Write timeout  (default: 5s)
    On/off (default: ON)
    Port (default:5555)
    Address (default:localhost)
    Protocol (default: tcp)
    
    erigontech#7684
    enriavil1 authored Jun 11, 2023
    Configuration menu
    Copy the full SHA
    e380ee4 View commit details
    Browse the repository at this point in the history
  8. [caplin] abstract transition (erigontech#7661)

    start of abstracting the transition layer. 
    
    incremental movements.
    elee1766 authored Jun 11, 2023
    Configuration menu
    Copy the full SHA
    4d35e77 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6300661 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Fix: typos (erigontech#7710)

    Fix: typos
    omahs authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    c21d77a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6c8b070 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    31be6f6 View commit details
    Browse the repository at this point in the history
  4. consensus/bor: optimise get span, fixes in header validation (erigont…

    …ech#7689)
    
    This PR does the following things. 
    
    - Optimises the get span for bor function. The function was responsible
    to fetch span from heimdall and store in cache. If not found, it would
    iterate back (or front) depending on the last found span in cache. In
    this iteration it would also fetch the span every time it moves front /
    back which is not necessary at all. As we know the `spanLength` we can
    leverage it to directly jump to the required span ID without fetching
    all the intermediate ones.
    - Adds a check for `number > 255` in validating producers from headers'
    extra data with ones in span. As bor fetches this data from contract, it
    used to give correct results for 0th span (i.e. 0-255 blocks) and hence
    no error occurs. Erigon on the other hand directly uses span to get
    producers for all blocks. Hence, the data in 0th span turns out to be
    wrong (as it's hardcoded in contract). We can skip validation for 0th
    span blocks until we start fetching data from contract.
    - As we're planning to use erigon as a validator, it will also be
    responsible for preparing headers. It used to write all the validators
    in the `header.Extra` field instead of just the selected producers. As
    we have `GetCurrentProducers` function available now, we can use it
    instead of `GetCurrentValidators`.
    manav2401 authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    5c0c9fd View commit details
    Browse the repository at this point in the history
  5. added --log.dir.prefix flag (erigontech#7714)

    This request adds an additional logging flag to change the name of the
    logfiles produced by erigon to be prefixed by a name other than
    'erigon'.
    
    This allows multiple nodes to log to the same directory without
    overwriting each others files. It is requires so that the devnet when
    running can maintain all of its log files in a single consolidated
    directory which survives devnet restarts.
    
    ---------
    
    Co-authored-by: Mark Holt <[email protected]>
    mholt-dv and mh0lt authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    e99269e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a45f6bd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cefbf18 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. Configuration menu
    Copy the full SHA
    ae1b193 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6121f63 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78d9e00 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    5ff8246 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4d8bd8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    226763b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8b312d5 View commit details
    Browse the repository at this point in the history
  5. ws unfreeze (erigontech#7724)

    attempt to address next issue: 
    
    > when I'm having a lot of websocket connections the node is freezing
    and then it needs like 10 mins to sync. Then if I keep pushing requests
    it falls out of sync all the time
    AskAlexSharov authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    1b14785 View commit details
    Browse the repository at this point in the history
  6. Move ChainID from CommonTx to DynamicFeeTransaction (erigontech#7732)

    For legacy transactions ChainID is optional (missing in
    pre-[EIP155](https://eips.ethereum.org/EIPS/eip-155) transactions) and
    is derived from `V` anyway.
    
    Also, cherry pick ethereum/go-ethereum#27452.
    yperbasis authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    862d7b6 View commit details
    Browse the repository at this point in the history
  7. Fix lint issues (erigontech#7733)

    Fix some issues introduced in PR erigontech#7715
    yperbasis authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    2dd7df9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4a2a199 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4f812ef View commit details
    Browse the repository at this point in the history
  10. Devnet scenarios (erigontech#7723)

    This is an update to the devnet code which introduces the concept of
    configurable scenarios. This replaces the previous hard coded execution
    function.
    
    The intention is that now both the network and the operations to run on
    the network can be described in a data structure which is configurable
    and composable.
    
    The operating model is to create a network and then ask it to run
    scenarios:
    
    ```go
    network.Run(
    		runCtx,
    		scenarios.Scenario{
    			Name: "all",
    			Steps: []*scenarios.Step{
    				&scenarios.Step{Text: "InitSubscriptions", Args: []any{[]requests.SubMethod{requests.Methods.ETHNewHeads}}},
    				&scenarios.Step{Text: "PingErigonRpc"},
    				&scenarios.Step{Text: "CheckTxPoolContent", Args: []any{0, 0, 0}},
    				&scenarios.Step{Text: "SendTxWithDynamicFee", Args: []any{recipientAddress, services.DevAddress, sendValue}},
    				&scenarios.Step{Text: "AwaitBlocks", Args: []any{2 * time.Second}},
    			},
    		})
    ```
    The steps here refer to step handlers which can be defined as follows:
    
    ```go
    func init() {
    	scenarios.MustRegisterStepHandlers(
    		scenarios.StepHandler(GetBalance),
    	)
    }
    
    func GetBalance(ctx context.Context, addr string, blockNum requests.BlockNumber, checkBal uint64) {
    ...
    ```
    This commit is an initial implementation of the scenario running - which
    is working, but will need to be enhanced to make it more usable &
    developable.
    
    The current version of the code is working and has been tested with the
    dev network, and bor withoutheimdall. There is a multi miner bor
    heimdall configuration but this is yet to be tested.
    
    Note that by default the scenario runner picks nodes at random on the
    network to send transactions to. this causes the dev network to run very
    slowly as it seems to take a long time to include transactions where the
    nonce is incremented across nodes. It seems to take a long time for the
    nonce to catch up in the transaction pool processing. This is yet to be
    investigated.
    mh0lt authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    f110102 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a588673 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Enforce blockReader interface (erigontech#7737)

    - breaks dependency from staged_sync to package with block_reader
    implementation
    - breaks dependency from snap_sync to package with block_reader
    implementation
    - breaks dependency from mining to txpool implementation
    AskAlexSharov authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    e502377 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    252e57b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d3c3be9 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2023

  1. Configuration menu
    Copy the full SHA
    a63b24b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94d592d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eae2d9a View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. faster opening of snapshots and indices (erigontech#7757)

    - mostly by MADV_SEQUENTIAL during opening 
    - see ledgerwatch/erigon-lib#1025
    AskAlexSharov authored Jun 19, 2023
    Configuration menu
    Copy the full SHA
    a77edd7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2adf258 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    86035ca View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9e96de6 View commit details
    Browse the repository at this point in the history
  5. save

    AskAlexSharov committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    6755f7e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e28fcc0 View commit details
    Browse the repository at this point in the history
  7. save

    AskAlexSharov committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    5be6851 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ec4281e View commit details
    Browse the repository at this point in the history
  9. Block Gas limit contract integration for Chiado (erigontech#7727)

    Changes summary:
    - Continue with the gasLimit check skip in ``verifyHeader`` of
    ``merge.go`` for unless pre-merge block and blockGasLimitContract
    present
    - Refactor ``aura.go`` a bit
    - Have ``sysCall`` method customized to be able to call state (contract)
    at a parent (or any other) header state
    somnathb1 authored Jun 19, 2023
    Configuration menu
    Copy the full SHA
    7123114 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. fix for test (erigontech#7765)

    Fixes test `TestExec22/UnwindExecutionStagePlainStatic`.
    awskii authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    932c2ac View commit details
    Browse the repository at this point in the history
  2. Update to latest erigon-lib (erigontech#7764)

    Co-authored-by: alex.sharov <[email protected]>
    AlexeyAkhunov and AskAlexSharov authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    6815323 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    880c939 View commit details
    Browse the repository at this point in the history
  4. Devnet diagnostics (erigontech#7762)

    Added support tunnel to the devnet cmd. In order to get this to run I
    made the following changes:
    
    * Create a public function 
    * Added non root logging
    
    I have also added commentary to the readme to explain the additional
    command line arguments needed to integrate with diagnostics. In summary,
    if you set the --diagnostics.url the devenet will wait for diagnostic
    requests rather than exiting
    
    ---------
    
    Co-authored-by: alex.sharov <[email protected]>
    mh0lt and AskAlexSharov authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    051cad0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3542298 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. Configuration menu
    Copy the full SHA
    7bad6d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    951ebd2 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Configuration menu
    Copy the full SHA
    141c4ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f8a5c8c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9f5808b View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. Configuration menu
    Copy the full SHA
    ded166d View commit details
    Browse the repository at this point in the history
  2. Fix subscription closing race (erigontech#7788)

    `go test -p 1 -race -count=100 -run='TestFiltersDeadlock_Test'
    ./turbo/rpchelper/...`
    AskAlexSharov authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    f8cb4d6 View commit details
    Browse the repository at this point in the history
  3. enable cli RPCGlobalTxFeeCapFlag (erigontech#7775)

    enable -rpc.txfeecap flag on the RPC daemon in the default sets of CLI
    flags
    sonicWhale authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    1f9bec2 View commit details
    Browse the repository at this point in the history
  4. Fix withdrawalContractAddress for Gnosis Chain (erigontech#7789)

    Correction to PR erigontech#7784. Kudos to Somnath for spotting this error!
    yperbasis authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    32bc5c1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    108ca8a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5dd6b77 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a24eae8 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Configuration menu
    Copy the full SHA
    fb94eee View commit details
    Browse the repository at this point in the history
  2. change --db.pagesize default to 8KB (erigontech#7798)

    reasons:
    - mainnet: even nodes with small FreeList - still have millions of pages
    there `GC: 46446830 5.8%`. Probability of getting into state where space
    re-use will be slower than free-list grow is > 0% (we now using db
    version which limiting freelist-overhead, but increasing such
    probability)
    - polygon: size is > 8Tb
    - hardware slowly moving towards bigger pageSizes (because for
    OS/Hardware) maintenance of pages metadata is also not free (metadata,
    lists, LRU, etc...). Macbook's default pagesize now is 16Kb. Network
    disks in cloud are also likely working with 16Kb pages.
    
    pros:
    - less db fragmentation (better FS-level compression)
    - less overflow pages in DB (which also reducing free-list overhead)
    - smaller free-list 
    - bigger key-size-limit 
    - no 8Tb db size limit
    - can setup FS - to also use bigger pagesize - it will reduce FS
    overhead also
    - reducing amount of page-faults during batch-reads (if FS pagesize
    match)
    - less write syscalls during commit (when WriteMap disabled)
    
    cons:
    - ~10% more IO: because of more RAM waste and just because need
    read/write bigger pages (not all updates are co-located).
    AskAlexSharov authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    1a1ca49 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. Configuration menu
    Copy the full SHA
    a2dd5da View commit details
    Browse the repository at this point in the history
  2. [bor] Implement bor_getSnapshotProposerSequence RPC method (erigontec…

    …h#7770)
    
    Implements `bor_getSnapshotProposerSequence` RPC method which returns an
    ordered set of validators (selected to mine) for a given block number.
    
    ```
    > curl http://localhost:8545 -X POST --data '{"jsonrpc":"2.0","method":"bor_getSnapshotProposerSequence","params":["0x235A310"],"id":1}' -H "Content-Type: application/json"
    
    {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "Signers": [
          {
            "Signer": "0xcfef2a3dc244ef7d0fb93c45e762d671445c4569",
            "Difficulty": 5
          },
          {
            "Signer": "0x3a22c8bc68e98b0faf40f349dd2b2890fae01484",
            "Difficulty": 4
          },
          {
            "Signer": "0xbe188d6641e8b680743a4815dfa0f6208038960f",
            "Difficulty": 3
          },
          {
            "Signer": "0xc26880a0af2ea0c7e8130e6ec47af756465452e8",
            "Difficulty": 2
          },
          {
            "Signer": "0xc275dc8be39f50d12f66b6a63629c39da5bae5bd",
            "Difficulty": 1
          }
        ],
        "Diff": 5,
        "Author": "0xcfef2a3dc244ef7d0fb93c45e762d671445c4569"
      }
    }
    ```
    manav2401 authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    6f0a02a View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Fix typo in db_walkthrough.MD (erigontech#7810)

    recepient -> recipient
    eltociear authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    c9aa54f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e490630 View commit details
    Browse the repository at this point in the history
  3. Cleaned up error handling in network and node start-up (erigontech#7811)

    The check in catches errors in the node start-up code and makes sure
    that the network is stopped if any node fails to start cleanly, and
    that5 it returns an error - so that any calling code can take
    appropriate action.
    mh0lt authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    bcc2a4a View commit details
    Browse the repository at this point in the history
  4. Fixed for the devnet runner (erigontech#7808)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    0a1229b View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Configuration menu
    Copy the full SHA
    affef54 View commit details
    Browse the repository at this point in the history
  2. crypto: a few extra tests (erigontech#7795)

    * crypto: keccak256 tests
    * crypto: ecies decrypt test
    battlmonstr authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    ecc1514 View commit details
    Browse the repository at this point in the history
  3. Rename StageLoopStep to StageLoopIteration (erigontech#7820)

    Rename for clarity to highlight that not only one stage is executed, but
    the entire loop.
    yperbasis authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    1f7de0e View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    e18db89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83f5917 View commit details
    Browse the repository at this point in the history
  3. Stable modifications

    AlexeyAkhunov committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    084acc1 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Fix Gnosis sync from scratch (erigontech#7890)

    Fix an issue with historical block execution introduced by PR erigontech#7727
    yperbasis authored and Alex Sharp committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    4c461ac View commit details
    Browse the repository at this point in the history
  2. Bump patch version in stable to v2.48.1 (erigontech#7895)

    Co-authored-by: Alex Sharp <[email protected]>
    AlexeyAkhunov and Alex Sharp authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    674b77f View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    52f021c View commit details
    Browse the repository at this point in the history
  2. fixed compilation errors

    ohmpatel1997 committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    9b69cbd View commit details
    Browse the repository at this point in the history
  3. fixed []byte type

    ohmpatel1997 committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    8c1cd01 View commit details
    Browse the repository at this point in the history
  4. fixed compilation issues

    ohmpatel1997 committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    d9bc6ce View commit details
    Browse the repository at this point in the history
  5. fixed compilation issue

    ohmpatel1997 committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    416ccb8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9a0bf9b View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. lintfix

    dhyaniarun1993 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    6369db5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    637b01b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5976279 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f70b9cf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    010043d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ab7f27d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    141936d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2d6e66b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cb6622d View commit details
    Browse the repository at this point in the history
  10. added debug logs

    ohmpatel1997 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    50053c7 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Configuration menu
    Copy the full SHA
    143db27 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1571f7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aafd511 View commit details
    Browse the repository at this point in the history
  4. bor merge bugfix

    dhyaniarun1993 committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    1004ddb View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. error handling

    dhyaniarun1993 committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    fff8069 View commit details
    Browse the repository at this point in the history