Skip to content
Snippets Groups Projects
  1. Jan 14, 2025
    • PG Herveou's avatar
      [pallet-revive-eth-rpc] persist eth transaction hash (#6836) · 023763da
      PG Herveou authored
      
      Add an option to persist EVM transaction hash to a SQL db.
      This should make it possible to run a full archive ETH RPC node
      (assuming the substrate node is also a full archive node)
      
      Some queries such as eth_getTransactionByHash,
      eth_getBlockTransactionCountByHash, and other need to work with a
      transaction hash indexes, which are not stored in Substrate and need to
      be stored by the eth-rpc proxy.
      
      The refactoring break down the Client into a `BlockInfoProvider` and
      `ReceiptProvider`
      - BlockInfoProvider does not need any persistence data, as we can fetch
      all block info from the source substrate chain
      - ReceiptProvider comes in two flavor, 
        - An in memory cache implementation - This is the one we had so far.
      - A DB implementation - This one persist rows with the block_hash, the
      transaction_index and the transaction_hash, so that we can later fetch
      the block and extrinsic for that receipt and reconstruct the ReceiptInfo
      object.
      
      This PR also adds a new binary eth-indexer, that iterate past and new
      blocks and write the receipt hashes to the DB using the new
      ReceiptProvider.
      
      ---------
      
      Co-authored-by: default avatarGitHub Action <action@github.com>
      Co-authored-by: command-bot <>
  2. Dec 17, 2024
  3. Sep 18, 2024
  4. Dec 13, 2023
  5. Dec 01, 2023
  6. Oct 17, 2023
  7. Oct 13, 2023
    • Dónal Murray's avatar
      Remove clippy clone-double-ref lint noise (#1860) · 1f28cddd
      Dónal Murray authored
      The lint `clippy::clone_double_ref` was renamed to
      `suspicious_double_ref_op` in [this
      commit](https://github.com/rust-lang/rust/commit/5c99175a9efcaa3d65712c119f361add22e3a859)
      (thanks @liamaharon) and now generates a lot of noise in the terminal
      when run both in CI and locally with 1.73.
      
      This renames the lint in line with this, but does not change
      functionality.
      
      May cause issues for people running earlier versions locally - @altaua
      requesting review to get your opinion on this.
  8. Oct 11, 2023
  9. Aug 25, 2023
  10. Aug 14, 2023
  11. May 06, 2023