I hereby claim:
- I am bogatyy on github.
- I am bogatyy (https://keybase.io/bogatyy) on keybase.
- I have a public key ASDGBlJ6ivkzQFAtjKcvQ7nUuj3gQdR83LolcBxVXfkGaQo
To claim this, I am signing this object:
{ | |
"logging": { | |
"level": "info", | |
"enableConsoleLog": true, | |
"enableConsoleColors": true, | |
"logFile": "", | |
"logBaseDirectory": "", | |
"perPoolLogFile": false | |
}, | |
"banning": { |
from collections import defaultdict | |
GETH_LOGFILE = 'geth-log.txt' | |
def extract_parameter(source_str, before_str, after_str): | |
start_pos = source_str.find(before_str) + len(before_str) | |
return source_str[start_pos:source_str.find(after_str, start_pos)] | |
diff --git a/eth/fetcher/block_fetcher.go b/eth/fetcher/block_fetcher.go | |
index 3177a877e..6b77b3e58 100644 | |
--- a/eth/fetcher/block_fetcher.go | |
+++ b/eth/fetcher/block_fetcher.go | |
@@ -97,6 +97,9 @@ type chainInsertFn func(types.Blocks) (int, error) | |
// peerDropFn is a callback type for dropping a peer detected as malicious. | |
type peerDropFn func(id string) | |
+// peerStatsUpdateFn is a callback type for reporting peer events for stats update. | |
+type peerStatsUpdateFn func(peer string, event string) |
I hereby claim:
To claim this, I am signing this object:
def handle_transaction(tx): | |
# if(tx[u'to'] == KITTY_AUCTION): | |
# kitty_frontrun(tx) | |
if (tx[u'to'] == KITTY_CORE_CONTRACT): | |
kitty_instabid(tx) | |
def kitty_instabid(tx): | |
if (get_tx_method(tx) == CREATE_SALE_AUCTION): |
$ pip install requests | |
$ python | |
import json | |
import requests | |
def get_transaction(tx_hash): | |
url = 'http://localhost:8545' | |
headers = {'content-type': 'application/json'} | |
request = { |
$ curl -X POST --data \ | |
'{"jsonrpc":"2.0","method":"eth_getTransactionByHash", \ | |
"params":["0x314e0246cfc55bc0882cbf165145c168834e99924e3ff7619ebd8290e713386d"], \ | |
"id":123}' localhost:8545 | |
{"jsonrpc":"2.0","id":123, "result":{ | |
"blockHash":"0x42ea1578c23b159186853961dfbdfcdec6b40d23d8f1d971827412bc6948386b", | |
"blockNumber":"0x3dfb88", | |
"From":"0xcaf82fcb3a0323566c0f306684376e3e66d6284b", | |
# this is the Bancor Purchase contract address |
pragma solidity 0.4.13; | |
contract UberToken { | |
string public constant name = "IC3 2017 bootcamp UberToken"; | |
string public constant symbol = "UT3"; | |
uint8 public constant decimals = 18; | |
uint256 public total_supply; | |
mapping(address => uint256) public balances; |