Giter Site home page Giter Site logo

consensys / linea-besu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperledger/besu

54.0 5.0 53.0 78.42 MB

Linea implementation based on Besu

Home Page: https://www.hyperledger.org/projects/besu

License: Apache License 2.0

Shell 0.26% JavaScript 0.05% Java 99.52% Dockerfile 0.02% Solidity 0.14% Smarty 0.01% Batchfile 0.01%

linea-besu's Introduction

Besu Ethereum Client

CircleCI Documentation Status CII Best Practices License Discord Twitter Follow

Download

Besu is an Apache 2.0 licensed, MainNet compatible, Ethereum client written in Java.

Useful Links

Issues

Besu issues are tracked in the github issues tab. See our guidelines for more details on searching and creating issues.

If you have any questions, queries or comments, Besu channel on Hyperledger Discord is the place to find us.

Besu Users

To install the Besu binary, follow these instructions.

Besu Developers

Development

Instructions for how to get started with developing on the Besu codebase. Please also read the wiki for more details on how to submit a pull request (PR).

Release Notes

Release Notes

Special thanks

YourKit for providing us with a free profiler open source license.

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.

YourKit Logo

linea-besu's People

Contributors

abdelstark avatar ahamlat avatar ajsutton avatar atoulme avatar cjhare avatar daniellehrner avatar diega avatar errorific avatar fab-10 avatar gabriel-trintinalia avatar garyschulte avatar gfukushima avatar iikirilov avatar jflo avatar jframe avatar joshuafernandes avatar lucassaldanha avatar macfarla avatar madelinemurray avatar mark-terry avatar matkt avatar matthew1001 avatar mbaxter avatar nicolasmassart avatar pinges avatar rain-on avatar ratanrsur avatar shemnon avatar siladu avatar usmansaleem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

linea-besu's Issues

besu node rpc returns data exception

os: ubuntu 22.04
network: mainnet
bin: ./besu-24.3.0/bin/besu --config-file=/node/full/linea/bin/config-mainnet.toml

There is a problem with besu software debug_traceBlockByHash debug_traceBlockByNumber. Compared with geth, the data returned is abnormally large at certain times.
besu returns 200MB+ data (Some blocks are even larger)
geth returns 92KB data

curl --location --request POST '127.0.0.1:8545' \
--header 'Content-Type: application/json' \
--data-raw '{"method":"debug_traceBlockByHash","params":["0x908dc81be1f01948e7c002407e36c8401bf301d48e979e04a512e7513af79d13", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'

image

Troubleshooting Errors When Configuring the MERGE Protocol in zkBESU Repository

Description

Hi there, I want to explore and become a contributor, I've cloned the repo from zkbesu and I'm trying to create the new network with a new genesis file using the protocol MERGE (reference: consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge ) at the place of ibft2, by supposing the besu prerequisites, but it causes an error, genesis file and the error is in the following:

Genesis

{
  "config" : {
    "chainId" : 1234,
    "berlinBlock" : 0,
    "merge" : {
      "blockperiodseconds" : 2,
      "epochlength" : 30000,
      "requesttimeoutseconds" : 4
    }
  },
  "nonce" : "0x0",
  "timestamp" : "0x58ee40ba",
  "gasLimit" : "0x47b760",
  "difficulty" : "0x1",
  "mixHash" : "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
  "coinbase" : "0x00000000000000000000000000000000000000000",
  "alloc" : {
    "0x00000000000000000000000000000000000000000" : {
      "balance" : "90000000000000000000000"
    },
    "0x00000000000000000000000000000000000000000" : {
      "balance" : "90000000000000000000000"
    }
  },
  "extraData" : "0xf87ea00000000000000000000000000000000000000000000000000000000000000000f854943a7289574dbc5bcf27e3ac4e6bf97bf5f5c8dc3294a9>
}

Error

By running the following command:
besu --data-path=data --genesis-file=../genesis.json --rpc-http-enabled --rpc-http-api=ETH,NET --host-allowlist="*" --rpc-http-cors-origins="all"


2023-10-09 14:09:48.106+08:00 | main | INFO  | Besu | Starting Besu
2023-10-09 14:09:48.673+08:00 | main | INFO  | Besu | 
####################################################################################################
#                                                                                                  #
# Besu version 23.7.4-dev-90bdd3cb                                                                 #
#                                                                                                  #
# Configuration:                                                                                   #
# Network: Custom genesis file specified                                                           #
# Network Id: 2626                                                                                 #
# Data storage: Forest                                                                             #
# Sync mode: Full                                                                                  #
# RPC HTTP APIs: ETH,NET                                                                           #
# RPC HTTP port: 8545                                                                              #
# Using LAYERED transaction pool implementation                                                    #
#                                                                                                  #
# Host:                                                                                            #
# Java: openjdk-java-17                                                                            #
# Maximum heap size: 3.91 GB                                                                       #
# OS: linux-x86_64                                                                                 #
# glibc: 2.31                                                                                      #
# jemalloc: 5.2.1-0-gea6b3e973b477b8061e0076bb257dbd7f3faa756                                      #
# Total memory: 15.62 GB                                                                           #
# CPU cores: 8                                                                                     #
#                                                                                                  #
####################################################################################################
2023-10-09 14:09:48.675+08:00 | main | INFO  | Besu | Connecting to 0 static nodes.
2023-10-09 14:09:48.676+08:00 | main | INFO  | Besu | Security Module: localfile
2023-10-09 14:09:48.716+08:00 | main | INFO  | Besu | Using the native implementation of alt bn128
2023-10-09 14:09:48.751+08:00 | main | INFO  | Besu | Using the native implementation of modexp
2023-10-09 14:09:48.752+08:00 | main | INFO  | Besu | Using the native implementation of the signature algorithm
2023-10-09 14:09:48.756+08:00 | main | INFO  | Besu | Using the native implementation of the blake2bf algorithm
2023-10-09 14:09:48.920+08:00 | main | ERROR | Besu | Failed to start Besu
picocli.CommandLine$ExecutionException: Unknown consensus mechanism defined
        at org.hyperledger.besu.cli.BesuCommand.buildController(BesuCommand.java:2232)
        at org.hyperledger.besu.cli.BesuCommand.initController(BesuCommand.java:2218)
        at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:1494)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:62)
        at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:33)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1660)
        at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1454)
        at org.hyperledger.besu.Besu.main(Besu.java:39)
Caused by: java.lang.IllegalArgumentException: Unknown consensus mechanism defined
        at org.hyperledger.besu.controller.BesuController$Builder.fromGenesisConfig(BesuController.java:374)
        at org.hyperledger.besu.controller.BesuController$Builder.fromEthNetworkConfig(BesuController.java:324)
        at org.hyperledger.besu.cli.BesuCommand.getControllerBuilder(BesuCommand.java:2244)
        at org.hyperledger.besu.cli.BesuCommand.buildController(BesuCommand.java:2230)
        ... 18 more

Unknown consensus mechanism defined
And when I use MERGE in the command it gives me such an error.

besu --data-path=data --genesis-file=../genesis.json --rpc-http-enabled --rpc-http-api=ETH,NET,MERGE --host-allowlist="*" --rpc-http-cors-origins="all"


2023-10-09 14:14:38.584+08:00 | main | INFO  | Besu | Starting Besu
2023-10-09 14:14:38.796+08:00 | main | ERROR | Besu | Failed to start Besu
picocli.CommandLine$ParameterException: Invalid value for option '--rpc-http-api': invalid entries found [MERGE]
        at org.hyperledger.besu.cli.BesuCommand.validateRpcOptionsParams(BesuCommand.java:1999)
        at org.hyperledger.besu.cli.BesuCommand.validateOptions(BesuCommand.java:1848)
        at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:1491)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:62)
        at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:33)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1660)
        at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1454)
        at org.hyperledger.besu.Besu.main(Besu.java:39)
Invalid value for option '--rpc-http-api': invalid entries found [MERGE]

I also have used some of the flags, by supposing that it will work and enable the zk protocol, that are listed below, but all in vain.

_--zk-evm-enabled=true_
_--zk-evm-max-proof-size=100000000
--zk-evm-log-level=DEBUG_

Is there any kind of change in flags or in the main command that I'm using to run the network node, which I haven't noticed or is there any eligibility criteria for the network or something else?

Any help or suggestion would be appreciated!

block time not stable

Besu is configured with a block time of 4s, but more than 4s ellapse between two blocks. It seems that the timer for block creation does not start right after the previous block was produced as shown in these logs:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.