Skip to content

Instantly share code, notes, and snippets.

View allada's full-sized avatar

Nathan (Blaise) Bruer allada

View GitHub Profile
#[repr(u8)]
#[derive(Copy, Clone, Debug, PartialEq)]
enum PriorityActionStage {
// Note: These are ordered by priority with the items that need to be
// processed first at the top (highest number).
Unknown = 0,
CompletedFromCache = 1,
Completed = 2,
Executing = 3,
@allada
allada / cla
Last active May 10, 2024 19:09
Trace Machina Individual Contributor License Agreement
In order to clarify the intellectual property license granted with Contributions
from any person or entity, Trace Machina, Inc. ("Trace Machina") must have a
Contributor License Agreement ("CLA") on file that has been signed by each
Contributor, indicating agreement to the license terms below. This license is
for your protection as a Contributor as well as the protection of Trace
Machina; it does not change your rights to use your own Contributions for any
other purpose.
diff --git a/Cargo.lock b/Cargo.lock
index e563095..c0e1fee 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1915,6 +1915,7 @@ dependencies = [
"serde_json5",
"shlex",
"tokio",
+ "tokio-fork",
"tokio-stream",
{
"stores": {
"AC_MAIN_STORE": {
"fast_slow": {
"fast": {
"memory": {
"eviction_policy": {
"max_bytes": 1000000
}
}
use blake3;
use sha2;
use rand;
use sha2::Digest;
use rand::RngCore;
use std::time::Duration;
const RUN_COUNT: usize = 10;
const HASH_DATA_SIZE: usize = 1024 * 1024 * 1024; // 1 GB
TRAINING_DATA_DIR = glob(["training/**"]);
TRAINING_SIZE = 10000
[genrule(
name = "sliced_training_" + i,
srcs = TRAINING_DATA_DIR,
outs = ["model_" + i + ".mdl"],
cmd = "./$(location train.py) --save_mode_to $@",
tools = ["train.py"],
find . -type f -print0 | xargs -0 ls -l | awk '{print $5}' | \
awk '
#! /bin/env awk
# PWLF Interpolation function, take a value, and two arrays for X & Y
function pwlf(x, ny) {
return ny[int(length(ny) * x) / 100]
}
# Read f Input in yy array, setup xx
{ yy[n] = $1 ; n++ }
erigon_1 | [INFO] [06-27|23:25:30.866] [13/16 LogIndex] DONE in=14h58m10.810846887s
erigon_1 | [INFO] [06-27|23:25:30.884] [snapshots] Retire Blocks range=18500k-19000k
erigon_1 | [INFO] [06-27|23:25:30.884] Timings (slower than 50ms) Unwind HashState=51m23.87s Unwind Execution=51m34.323s Unwind Senders=211ms Unwind Headers=39.576s IntermediateHashes=1h35m59.714s CallTraces=9h18m10.893s AccountHistoryIndex=5h51m44.878s StorageHistoryIndex=22h43m40.543s LogIndex=14h58m10.81s
erigon_1 | panic: runtime error: invalid memory address or nil pointer dereference
erigon_1 | [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe43fe9]
erigon_1 |
erigon_1 | goroutine 52924266 [running]:
erigon_1 | github.com/ledgerwatch/erigon-lib/compress.(*Getter).nextPos(0xc110c54f50?, 0x47?)
erigon_1 | github.com/ledgerwatch/erigon-lib@v0.0.0-20220620073929-46bebb3317d9/compress/decompress.go:312 +0x29
erigon_1 | github.com/ledgerwat
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Bar {
#[prost(bytes="bytes", tag="1")]
pub bar: ::prost::bytes::Bytes,
}
/// Generated client implementations.
pub mod foo_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
fatal error: concurrent map read and map write
goroutine 2197 [running]:
runtime.throw(0x15a54b3, 0x21)
runtime/panic.go:774 +0x54 fp=0x402ffd01e0 sp=0x402ffd01b0 pc=0x446d3c
runtime.mapaccess2(0x1326760, 0x402933c960, 0x402ffd02f0, 0x282d140, 0x40ba090d00)
runtime/map.go:470 +0x258 fp=0x402ffd0230 sp=0x402ffd01e0 pc=0x4259f0
github.com/ethereum/go-ethereum/trie.(*Database).commit(0x402feba000, 0x69ac0cabd078f198, 0xa9374ccefdd64cf4, 0x68d95ec392b54be3, 0x291993f7f835a42b, 0x1abb260, 0x420b665400, 0x0, 0x0, 0xa04ac27bb3efc701, ...)
github.com/ethereum/go-ethereum@/trie/database.go:790 +0x64 fp=0x402ffd03d0 sp=0x402ffd0230 pc=0x74e01c
github.com/ethereum/go-ethereum/trie.(*Database).commit.func1(0x69ac0cabd078f198, 0xa9374ccefdd64cf4, 0x68d95ec392b54be3, 0x291993f7f835a42b)