Skip to content

Instantly share code, notes, and snippets.

@reductionista
reductionista / eip234examples.txt
Last active May 13, 2018 19:45
Demonstration of EIP-234 functionality
Invalid request example (both blockHash and fromBlock specified):
$ echo '{ "jsonrpc": "2.0", "id": 1, "method": "eth_getLogs", "params": [{"blockHash": "0x49fadedef0b16edc03500ecc6228f14422ffcd54d1302b6107b71768f89829b2", "fromBlock" : "0x5"}]}' | nc -U geth.ipc
{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 0: cannot specify both BlockHash and FromBlock/ToBlock, choose one or the other"}}
Request for non-existent blockhash example:
$ echo '{ "jsonrpc": "2.0", "id": 1, "method": "eth_getLogs", "params": [{"blockHash": "0xdeadbeef00000000000000000000000000000000000000000000000000000000" }]}' | nc -U geth.ipc
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"Block with hash 0xdeadbeef00000000000000000000000000000000000000000000000000000000 was not found"}}
@reductionista
reductionista / statesync-deadlock-noshutdown.txt
Created April 20, 2018 20:31
A backtrace of a deadlock that happens during state sync. After trying to shut it down gently, it still remains deadlock and has to be forced to die. This backtrace was printed after sending it 10 kill signals which forced a panic. This was during a sync with Ropsten network using an SSD drive on OSX with latest unstable geth checkout (1.8.5) fr…
INFO [04-20|12:11:31] Imported new state entries count=1812 elapsed=13.379ms processed=13987626 pending=21375 retry=82 duplicate=0 unexpected=336
INFO [04-20|12:11:32] Imported new state entries count=1510 elapsed=10.866ms processed=13989136 pending=23401 retry=82 duplicate=0 unexpected=336
INFO [04-20|12:11:33] Imported new state entries count=302 elapsed=24.360ms processed=13989438 pending=25127 retry=0 duplicate=0 unexpected=336
WARN [04-20|12:11:33] Rolled back headers count=676 header=3075276->3074600 fast=3075205->3074600 block=0->0
ERROR[04-20|12:14:02] Failed to unregister sync peer peer=865a63255b3bb680 err="peer is not registered"
INFO [04-20|12:19:40] Got interrupt, shutting down...
INFO [04-20|12:19:40] WebSocket endpoint closed url=ws://127.0.0.1:8546
INFO [04-20|12:19:40] HTTP endpoint closed url=http://127.0.0.1:8545
INFO [04-20|12:19:40] IPC endpoint closed
@reductionista
reductionista / keybase.md
Created April 4, 2018 18:00
Keybase proof of identity

Keybase proof

I hereby claim:

  • I am reductionista on github.
  • I am reductionista (https://keybase.io/reductionista) on keybase.
  • I have a public key ASBhnGGiHuSLZkWCUcxyyEs6gbQ38iWE8U-7uDX4qp4HaQo

To claim this, I am signing this object: