This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.22; | |
contract Foo { | |
function bar() public pure { | |
assembly { | |
mstore(0x08, 0x01000000000000000000000000000000000000000000000000000000000000FF) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"peer_id": "16Uiu2HAkzG8D5PVPfZZBq3hvjKX2QyFfpVjCR2y5Te4Dff2xLckp", | |
"addresses": [ | |
"/ip4/83.150.19.30/tcp/9001/p2p/16Uiu2HAkzG8D5PVPfZZBq3hvjKX2QyFfpVjCR2y5Te4Dff2xLckp" | |
], | |
"client_info": { | |
"kind": "Unknown", | |
"version": "unknown", | |
"os_version": "unknown", | |
"protocol_version": "unknown", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::{stdin, BufRead}; | |
type Number = i64; | |
fn main() { | |
let mut nums: Vec<Number> = vec![]; | |
loop { | |
if let Some(Ok(line)) = stdin().lock().lines().next() { | |
if let Ok(num) = line.parse::<Number>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{ | |
io::{stdout, Write}, | |
str::FromStr, | |
}; | |
use clap::Parser; | |
use multiaddr::Multiaddr; | |
fn print_bytes(bytes: Vec<u8>) { | |
stdout() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn main() void { | |
if (std.os.argv.len < 2) { // usage | |
std.os.exit(1); | |
} | |
var rnd = RndGen.init(0); | |
const n: usize = std.fmt.parseInt(usize, std.mem.sliceTo(std.os.argv[1], 0), 10) catch @panic("Invalid integer"); | |
var alloc: Allocator = Allocator{ | |
.ptr = undefined, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/beacon_node/lighthouse_network/src/config.rs b/beacon_node/lighthouse_network/src/config.rs | |
index d8c3f619d..22ee558c0 100644 | |
--- a/beacon_node/lighthouse_network/src/config.rs | |
+++ b/beacon_node/lighthouse_network/src/config.rs | |
@@ -16,6 +16,11 @@ use std::sync::Arc; | |
use std::time::Duration; | |
use types::{ForkContext, ForkName}; | |
+pub const DEFAULT_IPV4_ADDRESS: Ipv4Addr = Ipv4Addr::UNSPECIFIED; | |
+pub const DEFAULT_UDP_DISC_PORT: u16 = 9000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cargo run --bin lighthouse -- beacon_node --execution-endpoint http://localhost:8551 --execution-jwt ~/.local/share/reth/mainnet/jwt.hex --http --http-address 0.0.0.0 --http-port 8080 --network holesky | |
Finished dev [unoptimized + debuginfo] target(s) in 0.49s | |
Running `target/debug/lighthouse beacon_node --execution-endpoint 'http://localhost:8551' --execution-jwt /home/jmcph4/.local/share/reth/mainnet/jwt.hex --http --http-address 0.0.0.0 --http-port 8080 --network holesky` | |
Sep 15 06:09:44.253 INFO Logging to file path: "/home/jmcph4/.lighthouse/holesky/beacon/logs/beacon.log" | |
Sep 15 06:09:44.255 INFO Lighthouse started version: Lighthouse/v4.4.1-e4ed317 | |
Sep 15 06:09:44.255 INFO Configured for network name: holesky | |
Sep 15 06:09:44.255 INFO Data directory initialised datadir: /home/jmcph4/.lighthouse/holesky | |
Sep 15 06:09:44.255 INFO Deposit contract address: 0x4242424242424242424242424242424242424242, d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loop { | |
{ | |
#[doc(hidden)] | |
mod __tokio_select_util { | |
pub(super) enum Out<_0, _1> { | |
_0(_0), | |
_1(_1), | |
Disabled, | |
} | |
pub(super) type Mask = u8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/beacon_node/network/src/sync/manager.rs b/beacon_node/network/src/sync/manager.rs | |
index b910f7b33..731809043 100644 | |
--- a/beacon_node/network/src/sync/manager.rs | |
+++ b/beacon_node/network/src/sync/manager.rs | |
@@ -359,6 +359,7 @@ impl<T: BeaconChainTypes> SyncManager<T> { | |
/// - If there is no range sync and no required backfill and we have synced up to the currently | |
/// known peers, we consider ourselves synced. | |
fn update_sync_state(&mut self) { | |
+ self.range_sync.any_over(); | |
let new_state: SyncState = match self.range_sync.state() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const Allocator = std.mem.Allocator; | |
const ArrayList = std.ArrayList; | |
const expect = std.testing.expect; | |
const PATH_SEPARATOR: c_char = '/'; | |
const Protocol = enum { | |
dccp, |