Skip to content

Instantly share code, notes, and snippets.

@garyschulte
garyschulte / gist:38ba756f6bec1dc67a54d8f28049a16d
Created October 13, 2023 16:56
snap sync fail with sorted map
Genesis: {
"config": {
"ethash": {},
"chainID": 19763,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0
},
@garyschulte
garyschulte / genesis.json
Created June 10, 2022 21:02
palm-dev besu config
{
"config" : {
"chainId": 2021,
"homesteadBlock": 0,
"daoForkBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
➜ test cat pi-oom.txt
[Fri Jun 10 06:27:02 2022] systemd[1]: systemd-journald.service: Service has no hold-off time (RestartSec=0), scheduling restart.
[Fri Jun 10 06:27:15 2022] systemd[1]: systemd-journald.service: Scheduled restart job, restart counter is at 28.
[Fri Jun 10 06:33:01 2022] systemd[1]: Stopped Journal Service.
[Fri Jun 10 06:36:27 2022] systemd[1]: Starting Journal Service...
[Fri Jun 10 06:41:56 2022] systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
[Fri Jun 10 06:42:07 2022] systemd[1]: Started Cleanup of Temporary Directories.
[Fri Jun 10 07:05:10 2022] systemd[1]: systemd-journald.service: Start operation timed out. Terminating.
[Fri Jun 10 07:10:50 2022] systemd[1]: systemd-journald.service: Main process exited, code=killed, status=15/TERM
[Fri Jun 10 07:11:11 2022] systemd[1]: systemd-journald.service: Failed with result 'timeout'.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffdeef170bc, pid=8936, tid=6908
#
# JRE version: OpenJDK Runtime Environment (17.0.2+8) (build 17.0.2+8-86)
# Java VM: OpenJDK 64-Bit Server VM (17.0.2+8-86, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# V [jvm.dll+0x2c70bc]
#
{"timestamp":"2021-11-10T15:42:07,292","level":"ERROR","thread":"EthScheduler-Workers-0","class":"MainnetTransactionProcessor","message":"Critical Exception Processing Transaction","throwable":" java.lang.IndexOutOfBoundsException: index (268435487) must be less than size (32)
at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:1347)
at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:1329)
at org.apache.tuweni.bytes.ArrayWrappingBytes.get(ArrayWrappingBytes.java:60)
at org.apache.tuweni.bytes.Bytes.shiftRight(Bytes.java:1183)
at org.apache.tuweni.bytes.Bytes32.shiftRight(Bytes32.java:317)
at org.apache.tuweni.bytes.Bytes32.shiftRight(Bytes32.java:24)
at org.hyperledger.besu.evm.operation.ShrOperation.executeFixedCostOperation(ShrOperation.java:46)
at org.hyperledger.besu.evm.operation.AbstractFixedCostOperation.execute(AbstractFixedCostOperation.java:65)
at org.hyperledger.besu.evm.EVM.lambda$executeNextOperation$0(EVM.java:86)
### Keybase proof
I hereby claim:
* I am garyschulte on github.
* I am garythehuman (https://keybase.io/garythehuman) on keybase.
* I have a public key ASDOeGPWksCSngSIfsY3TWc7jLGZ7mRrAQXEoODSoILUKQo
To claim this, I am signing this object:
# This test looks for a few possible problem states with timestamps:
#
# 1. A block with the same timestamp as the parent is invalid
# 2. A block with a timestamp prior to its parent is invalid
# 3. A block with a timestamp one microsecond after its parent is valid
#
# All three conditions come from inequality (49) of the yellow paper
# (https://ethereum.github.io/yellowpaper/paper.pdf, p. 7)
#
# Note that as this test includes blocks that create exceptions, it cannot be
@garyschulte
garyschulte / genesis.json
Created July 22, 2021 17:32
example 1559 genesis config
{
"config":{
"chainId":7882,
"constantinoplefixblock": 0,
"aleutblock": 10,
"londonblock": 10,
"clique":{
"blockperiodseconds":15,
"epochlength":30000
}
09:36:15.571 INFO - Slot Event *** Slot: 1218179, Block: 64283b..24a5, Epoch: 38068, Finalized checkpoint: 38066, Finalized root: 361ad6..e051, Peers: 74
09:36:27.617 INFO - Slot Event *** Slot: 1218180, Block: 921f2c..9dea, Epoch: 38068, Finalized checkpoint: 38066, Finalized root: 361ad6..e051, Peers: 74
09:36:39.567 INFO - Slot Event *** Slot: 1218181, Block: 36b8c4..856b, Epoch: 38068, Finalized checkpoint: 38066, Finalized root: 361ad6..e051, Peers: 74
09:36:51.572 INFO - Slot Event *** Slot: 1218182, Block: d74150..529c, Epoch: 38068, Finalized checkpoint: 38066, Finalized root: 361ad6..e051, Peers: 74
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000007f996b8c0c, pid=3164, tid=3218
#
# JRE version: OpenJDK Runtime Environment (11.0.9+11) (build 11.0.9+11-Ubuntu-0ubuntu1.18.04.1)
@garyschulte
garyschulte / snippet-besu-ohio-mainnet-20.10.2-fast-sync
Last active May 20, 2021 20:58
snippets for bonsai vs forest comparison
{"timestamp":"2021-05-20T20:41:06,601","level":"INFO","thread":"EthScheduler-Workers-2","class":"PersistBlockTask","message":"Imported #12,473,483 / 146 tx / 0 om / 14,972,969 (99.9%) gas / (0x6dc4c501ac876117974f9c08cd2b5e7ffc4e2e5134b71d7b25c287bb1978ea64) in 4.437s. Peers: 26","throwable":""}
{"timestamp":"2021-05-20T20:41:06,601","level":"INFO","thread":"EthScheduler-Workers-2","class":"BlockPropagationManager","message":"Imported 1 pending blocks","throwable":""}
{"timestamp":"2021-05-20T20:41:14,139","level":"INFO","thread":"nioEventLoopGroup-3-2","class":"BlockPropagationManager","message":"Saving announced block 12473485 (0xcee34c1b972f1c5007feb93121e496a61d870ddf746cc2ddaa04166aa339de10) for future import","throwable":""}
{"timestamp":"2021-05-20T20:41:14,139","level":"INFO","thread":"nioEventLoopGroup-3-2","class":"GetBlockFromPeerTask","message":"Failed to download block 0xcee34c1b972f1c5007feb93121e496a61d870ddf746cc2ddaa04166aa339de10 from peer Peer 0x480ba2a9b7f69569ee....","throwable":""}
{"tim