Skip to content

Instantly share code, notes, and snippets.

@otherview
otherview / simulator.go
Created July 11, 2025 14:27
AllowConsecutive vs NoDoubleBlock Comparison
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"math/rand"
"sort"
@otherview
otherview / sync_logdb_benchmark_test.go
Created June 23, 2025 14:53
sync_logdb_benchmark
package main
import (
cryptorand "crypto/rand"
"math/big"
"math/rand"
"reflect"
"testing"
"github.com/vechain/thor/v2/logdb"
@otherview
otherview / simulator.go
Created May 27, 2025 15:20
Adversarial Stake
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"math/rand"
"sort"
@otherview
otherview / simulator.go
Created May 23, 2025 15:22
Weight Based Scheduler
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"math/rand"
"sort"
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "f84edb3a-05c8-4fa5-acdb-f7afe353c577",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""