Difference between revisions of "Lighthouse beacon node"

From wikieduonline
Jump to navigation Jump to search
 
(53 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
  lighthouse bn  
+
  [[lighthouse]] [[bn]]
  [[lighthouse bn --help]]
+
  [[lighthouse beacon_node --help]]
  [[lighthouse beacon node --staking]]
+
  [[lighthouse beacon_node --execution-endpoint]]
 +
[[lighthouse beacon_node --staking]]
 +
[[lighthouse beacon_node --allow-insecure-genesis-sync]]
 +
[[lighthouse beacon_node --checkpoint-sync-url]]
 +
[[lighthouse checkpoint sync]]
  
 +
Start a beacon node:
 +
* <code>[[lighthouse beacon_node --execution-endpoint http://127.0.0.1:8551 --execution-jwt ~/Library/Ethereum/geth/jwtsecret --allow-insecure-genesis-sync]]</code>
 +
 +
[[lighthouse bn --checkpoint-sync-url=https://mainnet-checkpoint-sync.attestant.io --purge-db]]  2>&1 | egrep --line-buffered -v "Not ready for|Failed to "
 +
 +
[[5052]] port for [[metrics]]
 +
[[9000]] port
 +
 +
== Options ==
 
  [[--execution-endpoint]]
 
  [[--execution-endpoint]]
 
  [[--http-address]]
 
  [[--http-address]]
 
  [[--staking]]
 
  [[--staking]]
 
  [[--http]]
 
  [[--http]]
 +
[[--http-port]]
 +
[[--http-address]]
 +
[[--http-allow-origin]]
 +
[[--eth1-endpoints]]
 +
[[--datadir]]
 +
[[lighthouse --network|--network]]
 +
[[--disable-upnp]]
 +
[[--disable-enr-auto-update]]
 +
[[--target-peers]]
 +
[[--discovery-ports]]
 +
[[--enr-address]]
 +
[[--enr-tcp-ports]]
 +
[[--enr-udp-port]]
 +
[[--subcribe-all-subnets]]
 +
[[--import-all-attestations]]
 +
[[--validator-monitor-auto]]
 +
[[--metrics-ports]]
 +
[[--metrics-address]]
 +
[[--builder]] <builder/YOUR_SERVICE_URL> The [[URL]] of a service compatible with the [[MEV-boost]] API.
 +
 +
== Examples ==
 +
 +
Example from [[genesis]] with error:
 +
lighthouse bn
 +
May 31 09:44:11.980 INFO Logging to file                        path: "[[~/.lighthouse/mainnet/beacon/logs/beacon.log]]"
 +
May 31 09:44:11.984 INFO Lighthouse started                      version: Lighthouse/v5.1.3
 +
May 31 09:44:11.984 INFO Configured for network                  name: mainnet
 +
May 31 09:44:11.984 INFO Data directory initialised              datadir: [[~/.lighthouse/mainnet]]
 +
May 31 09:44:11.988 INFO [[Deposit contract]]                        address: 0x00000000219ab54xxxxxxxxxx, deploy_block: 11184524
 +
May 31 09:44:12.042 INFO [[Blob DB]] initialized                    oldest_blob_slot: Some(Slot(8626176)), path:
 +
"[[~/.lighthouse/mainnet/beacon/]]blobs_db", service: [[freezer_db]]
 +
May 31 09:44:12.042 INFO Starting from known [[genesis]] state      service: beacon
 +
May 31 09:44:12.048 [[CRIT]] [[Failed to start beacon node]]            reason: Syncing from [[genesis]] is insecure and incompatible with data
 +
availability checks. You should instead perform a [[checkpoint sync]] from a [[trusted node]] using the [[--checkpoint-sync-url]] option. For a list of public endpoints, see: https://eth-clients.github.io/checkpoint-sync-endpoints/ Alternatively, use [[--allow-insecure-genesis-sync]] if the risks are understood.
 +
May 31 09:44:12.048 INFO Internal shutdown received              reason: [[Failed to start beacon node]]
 +
May 31 09:44:12.048 INFO Shutting down..                        reason: Failure("Failed to start beacon node")
 +
Failed to start beacon node
 +
 +
== Errors ==
 +
* [[CRIT Failed to start beacon node]]
 +
* [[Error updating deposit contract cache]]
 +
* [[Not ready for merge]]
  
 +
== Related ==
 +
* <code>[[lighthouse account validator create]]</code>
 +
* [[5052]]
 +
* [[8551]], [[8545]]
 +
* [[Attestation effectiveness]]
 +
* [[Lighthouse beacon node logs]]
 +
* [[Checkpoint]]
 +
* <code>[[~/.lighthouse/]]</code>
 +
* [[Prysm]]: <code>[[beacon-chain]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{lighthouse bn}}
 
* {{lighthouse}}
 
* {{lighthouse}}
* {{Ethereum}}
+
* {{Ethereum Beacon Chain}}
 +
* {{Beacon Chain}}
 +
 
  
 
[[Category:Ethereum]]
 
[[Category:Ethereum]]
 
[[Category:Lighthouse]]
 
[[Category:Lighthouse]]

Latest revision as of 15:32, 28 July 2024

lighthouse bn 
lighthouse beacon_node --help
lighthouse beacon_node --execution-endpoint
lighthouse beacon_node --staking
lighthouse beacon_node --allow-insecure-genesis-sync
lighthouse beacon_node --checkpoint-sync-url
lighthouse checkpoint sync

Start a beacon node:

lighthouse bn --checkpoint-sync-url=https://mainnet-checkpoint-sync.attestant.io --purge-db  2>&1 | egrep --line-buffered -v "Not ready for|Failed to "
5052 port for metrics
9000 port

Options[edit]

--execution-endpoint
--http-address
--staking
--http
--http-port
--http-address
--http-allow-origin
--eth1-endpoints
--datadir
--network
--disable-upnp
--disable-enr-auto-update
--target-peers
--discovery-ports
--enr-address
--enr-tcp-ports
--enr-udp-port
--subcribe-all-subnets
--import-all-attestations
--validator-monitor-auto
--metrics-ports
--metrics-address
--builder <builder/YOUR_SERVICE_URL> The URL of a service compatible with the MEV-boost API.

Examples[edit]

Example from genesis with error:

lighthouse bn
May 31 09:44:11.980 INFO Logging to file                         path: "~/.lighthouse/mainnet/beacon/logs/beacon.log"
May 31 09:44:11.984 INFO Lighthouse started                      version: Lighthouse/v5.1.3
May 31 09:44:11.984 INFO Configured for network                  name: mainnet
May 31 09:44:11.984 INFO Data directory initialised              datadir: ~/.lighthouse/mainnet
May 31 09:44:11.988 INFO Deposit contract                        address: 0x00000000219ab54xxxxxxxxxx, deploy_block: 11184524
May 31 09:44:12.042 INFO Blob DB initialized                     oldest_blob_slot: Some(Slot(8626176)), path: 
"~/.lighthouse/mainnet/beacon/blobs_db", service: freezer_db
May 31 09:44:12.042 INFO Starting from known genesis state       service: beacon
May 31 09:44:12.048 CRIT Failed to start beacon node             reason: Syncing from genesis is insecure and incompatible with data 
availability checks. You should instead perform a checkpoint sync from a trusted node using the --checkpoint-sync-url option. For a list of public endpoints, see: https://eth-clients.github.io/checkpoint-sync-endpoints/ Alternatively, use --allow-insecure-genesis-sync if the risks are understood.
May 31 09:44:12.048 INFO Internal shutdown received              reason: Failed to start beacon node
May 31 09:44:12.048 INFO Shutting down..                         reason: Failure("Failed to start beacon node")
Failed to start beacon node

Errors[edit]

Related[edit]

See also[edit]

Advertising: