Skip to content

Instantly share code, notes, and snippets.

View ferranbt's full-sized avatar

Ferran Borreguero ferranbt

View GitHub Profile
/Users/ferranbt/.playground/lighthouse-v5.2.1 bn --datadir local-testnet/data_beacon_node --testnet-dir local-testnet/testnet --enable-private-discovery --disable-peer-scoring --staking --http-allow-sync-stalled --enr-address 127.0.0.1 --enr-udp-port 9000 --enr-tcp-port 9000 --enr-quic-port 9100 --port 9000 --quic-port 9100 --http-port 3500 --disable-packet-filter --target-peers 0 --execution-endpoint http://localhost:8551 --execution-jwt local-testnet/jwtsecret --builder http://localhost:5555 --builder-fallback-epochs-since-finalization 0 --builder-fallback-disable-checks --always-prepare-payload --prepare-payload-lookahead 8000Jul 31 17:23:03.414 INFO Logging to file path: "local-testnet/data_beacon_node/beacon/logs/beacon.log"
Jul 31 17:23:03.432 INFO Lighthouse started version: Lighthouse/v5.2.1-9e12c21
Jul 31 17:23:03.433 INFO Configured for network name: custom (local-testnet/testnet)
Jul 31 17:23:03.434 INFO Data directory initialised
#!/usr/bin/env bash
echo "🆙 Starting Suaveup..."
while [[ -n $1 ]]; do
case $1 in
-v | --version)
shift
VERSION=$1
echo "Found --version flag with value: $VERSION"
;;
package main
import (
"context"
"crypto/rand"
"crypto/sha512"
"encoding/hex"
"encoding/json"
"flag"
"fmt"
@ferranbt
ferranbt / beacon
Created May 17, 2022 14:47
validator
time="2022-05-17 14:32:19" level=warning msg="Running on Ethereum Consensus Mainnet" prefix=flags
time="2022-05-17 14:32:19" level=warning msg="Using end-to-end testing config" prefix=node
time="2022-05-17 14:32:19" level=warning msg="Using Disable Sync flag, using this flag on a live network might lead to adverse consequences." prefix=flags
time="2022-05-17 14:32:19" level=error msg="There were some issues parsing the config from a yaml file" error="yaml: unmarshal errors:
line 114: cannot unmarshal !!float `1157920...` into uint64"
time="2022-05-17 14:32:19" level=debug msg="Config file values: &{GenesisSlot:0 GenesisEpoch:0 FarFutureEpoch:18446744073709551615 FarFutureSlot:18446744073709551615 BaseRewardsPerEpoch:4 DepositContractTreeDepth:32 JustificationBitsLength:0 PresetBase:mainnet ConfigName:xxx TargetCommitteeSize:128 MaxValidatorsPerCommittee:2048 MaxCommitteesPerSlot:64 MinPerEpochChurnLimit:4 ChurnLimitQuotient:65536 ShuffleRoundCount:90 MinGenesisActiveValidatorCount:1 MinGenesisTime:0 TargetA
```
2022-05-03 23:38:21.451 DEBUG - Setting Max URL length to 65535
2022-05-03 23:38:21.516 FATAL - Teku failed to start
java.util.concurrent.CompletionException: java.util.NoSuchElementException: No value present
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$UniRun.tryFire(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture.complete(Unknown Source) ~[?:?]
at tech.pegasys.teku.infrastructure.async.SafeFuture.lambda$propagateResult$3(SafeFuture.java:147) ~[teku-infrastructure-async-22.4.0.jar:22.4.0]
#!/bin/bash
tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
URL=http://localhost:7071
STATUS_CODE=$(wget --spider -S "$URL" 2>&1 | grep "HTTP/" | awk '{print $2}')
if [[ -z $STATUS_CODE ]]; then
echo "Pprof server not found at $URL. Are you running Bor with --pprof?"
exit 1
@ferranbt
ferranbt / Tesera CLA
Created December 9, 2020 14:47
Tesera Contributor License Agreement
Tesera Individual Contributor License Agreement
Thank you for your interest in contributing to Tesera ("We" or "Us").
This contributor agreement ("Agreement") documents the rights granted by contributors to Us.
This is a legally binding document, so please read it carefully before agreeing to it.
The Agreement may cover more than one software project managed by Us.
1. Definitions
"You" means the individual who Submits a Contribution to Us.
package main
import (
"context"
"fmt"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
Minimal Individual Contributor License Agreement
Thank you for your interest in contributing to Minimal ("We" or "Us").
This contributor agreement ("Agreement") documents the rights granted by contributors to Us.
This is a legally binding document, so please read it carefully before agreeing to it.
The Agreement may cover more than one software project managed by Us.
1. Definitions
"You" means the individual who Submits a Contribution to Us.