Skip to content

Instantly share code, notes, and snippets.

View AskAlexSharov's full-sized avatar

Alex Sharov AskAlexSharov

View GitHub Profile
@AskAlexSharov
AskAlexSharov / elias-fano-panic.go
Last active November 3, 2021 03:38
EliasFano test
func TestEliasFano2(t *testing.T) {
v := []uint64{
0x6d,
0xd4,
0x125,
0x18b,
0x227,
0x28c,
0x2f3,

Keybase proof

I hereby claim:

  • I am askalexsharov on github.
  • I am askalexsharov (https://keybase.io/askalexsharov) on keybase.
  • I have a public key ASCUoRVLdG2NG49YtnF6gU_qCUdWuy4dGsLAd8bTSUaCxgo

To claim this, I am signing this object:

// Happening when sync node from scratch (happening with different nodes and not reproducable yet)
// branch: trie_invalidate_self_destruct
// command: INTERMEDIATE_TRIE_CACHE=true go run ./cmd/geth --port 30307 --remote-db-listen-addr localhost:9997 --rpcport 8544 --rpc --rpcapi eth,debug --trie-cache-gens 64 --verbosity=2 --datadir /Users/alex.sharov/Library/Ethereum/geth-remove-me3
ERROR[02-09|17:19:11.250]
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 EIP2027: <nil> Byzantium: 4370000 Constantinople: 7280000 Petersburg: 7280000 Istanbul: 9069000, Muir Glacier: 9200000, Engine: ethash}
Number: 6639
Hash: 0x93cc6ca0ae529c0c62918a0879fa698cea219ade9cdf1e304cdbc0199f9fc279
// From geth sync:
ERROR[02-09|11:33:33.450]
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 EIP2027: <nil> Byzantium: 4370000 Constantinople: 7280000 Petersburg: 7280000 Istanbul: 9069000, Muir Glacier: 9200000, Engine: ethash}
Number: 6639
Hash: 0x93cc6ca0ae529c0c62918a0879fa698cea219ade9cdf1e304cdbc0199f9fc279