Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Being skeptical of status feature.

Noel Maersk veox

💭
Being skeptical of status feature.
View GitHub Profile
@veox
veox / fee-window.js
Last active Oct 16, 2018
Get basic info on specific Augur fee/dispute window, based on time[stamp]
View fee-window.js
// get fee window info based on timestamp
// date (EDIT to change)
var dat = 'Wed, 05 Sep 2018 13:37:00 UTC';
// universe (EDIT to change)
var uni = "0xe991247b78f937d7b69cfc00f1a487a293557677";
var Augur = require("augur.js");
var augur = new Augur();
@veox
veox / ethstats.service
Created Sep 17, 2018
systemd service files to run Trinity as user
View ethstats.service
[Unit]
Description=ethstats snitch
After=network.target
Requires=trinity.service jsonrpcproxy.service
[Service]
Type=forking
WorkingDirectory=/home/veox/src/eth-net-intelligence-api
ExecStart=/home/veox/src/eth-net-intelligence-api/node_modules/pm2/bin/pm2 start processes.json
ExecReload=/home/veox/src/eth-net-intelligence-api/node_modules/pm2/bin/pm2 reload all
View trace.txt
================================================================================================================== FAILURES ===================================================================================================================
____________________________ test_rpc_against_fixtures[/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json:RevertInCreateInInit_d0g0v0_Byzantium-Chain] ____________________________
chain = None, ipc_server = <trinity.rpc.ipc.IPCServer object at 0x7ff88a7a1048>
chain_fixture = {'_info': {'comment': '', 'filledwith': 'cpp-1.3.0+commit.d9483255.Linux.g++', 'lllcversion': 'Version: 0.4.20-develop...80850a00000000808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0', ...}
fixture_data = ['/home/veox/src/py-evm/fixtures/BlockchainTests/GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_Byzantium']
def test_rpc_against_fixtures(
View pytest-out.py
% pytest -vvvvv --capture=no -k "test_state_fixtures[/home/veox/src/py-evm/fixtures/GeneralStateTests/stReturnDataTest/modexp_modsize0_returndatasize.json:modexp_modsize0_returndatasize:Byzantium:4]"
========================================================================================= test session starts =========================================================================================
platform linux -- Python 3.7.0, pytest-3.6.4, py-1.6.0, pluggy-0.7.1 -- /home/veox/src/py-evm/.virtualenv/py-evm/bin/python
cachedir: .pytest_cache
rootdir: /home/veox/src/py-evm, inifile: pytest.ini
plugins: xdist-1.18.1, cov-2.5.1, asyncio-0.9.0, asyncio-network-simulator-0.1.0a2, hypothesis-3.69.5
collected 82815 items / 82814 deselected / 1 skipped
tests/json-fixtures/test_state.py::test_state_fixtures[/home/veox/src/py-evm/fixtures/GeneralStateTests/stReturnDataTest/m
View ls.txt
total 2856
24248951 drwxr-x--- 706 veox veox 36864 Aug 31 14:47 .
24248935 drwxr-x--- 5 veox veox 4096 Aug 31 14:02 ..
24248959 drwxr-x--- 3 veox veox 4096 Aug 9 20:00 01CMFT2YE6RZK205XH2X92PSSG
24249472 drwxr-x--- 3 veox veox 4096 Aug 12 00:01 01CMNCN9WM8MYK22ZBPRK3V2KB
24249482 drwxr-x--- 3 veox veox 4096 Aug 14 06:01 01CMV61YXMTMFS488E20DV3PWY
24250931 drwxr-x--- 3 veox veox 4096 Aug 16 12:01 01CN0ZE8WDJQDZ5CYERV4MSXZ1
24250937 drwxr-x--- 3 veox veox 4096 Aug 18 18:01 01CN6RV2N8GTJR6BDMC3C0WYXR
25297013 drwxr-x--- 3 veox veox 4096 Aug 21 00:01 01CNCJ7PF23SW8X87KBP2JT22Q
25297019 drwxr-x--- 3 veox veox 4096 Aug 23 06:01 01CNJBM6B29DB0JQCTTSSQ381M
View merges
691680aa7fca44a77447ee701a78ed0062837218 Merge pull request #491 from ethereum/create2
980b4771fbe8ed4a5429e0feeadf4ae07a2b8929 Merge pull request #490 from ethereum/morestorage
e25d2306414373a82dbd561a7bfe84b794ba2aaa Merge pull request #486 from ethereum/create2
ad2184adca367c0b68c65b44519dba16e1d0b9e2 Merge pull request #485 from ethereum/fixrlptest
35cab46758b1674c88efc5a49a6860f3200ee6d2 Merge pull request #482 from ethereum/sar
aebb8e9eb44611767dc847e90e64fbc4365c1223 Merge pull request #481 from ethereum/sar
78dd0693f037e35557ac123dccb2bd06015f8866 Merge pull request #479 from ethereum/fixsar
e69e2e741303152866b9afdae995247615f8c75a Merge pull request #478 from hamdiallam/develop
24316a75fd13bc7f63d8f4a47218972bc3aa9f62 Merge pull request #477 from ethereum/retesteth
b1ec6cea390b358249b949d08db4ec609d25b4b4 Merge pull request #475 from ethereum/create
View checkfail.sh
#!/bin/sh
# simple wrapper for py-evm git bisection of submodule
# RUN AS:
# cd fixtures
# git bisect start develop 47b09f42c0681548a00da5ab1c98808b368af49a --
# git bisect run ../checkfail.sh
# <elevator music>
# git bisect log
# git bisect reset
# NOTE: assuming already in virtualenv!
View lastfailed
{
"tests/json-fixtures/test_state.py::test_state_fixtures[/home/veox/src/py-evm/fixtures/GeneralStateTests/stArgsZeroOneBalance/expNonConst.json:expNonConst:Byzantium:0]": true,
"tests/json-fixtures/test_state.py::test_state_fixtures[/home/veox/src/py-evm/fixtures/GeneralStateTests/stCallCreateCallCodeTest/createNameRegistratorPerTxsNotEnoughGas.json:createNameRegistratorPerTxsNotEnoughGas:Frontier:0]": true,
"tests/json-fixtures/test_state.py::test_state_fixtures[/home/veox/src/py-evm/fixtures/GeneralStateTests/stDelegatecallTestHomestead/callOutput1.json:callOutput1:Homestead:0]": true,
"tests/json-fixtures/test_state.py::test_state_fixtures[/home/veox/src/py-evm/fixtures/GeneralStateTests/stDelegatecallTestHomestead/callOutput2.json:callOutput2:Homestead:0]": true,
"tests/json-fixtures/test_state.py::test_state_fixtures[/home/veox/src/py-evm/fixtures/GeneralStateTests/stDelegatecallTestHomestead/callOutput3.json:callOutput3:Homestead:0]": true,
"tests/json-fixtures/test_state.py::test_state_fix
@veox
veox / 0-journalctl-captured-stdout-info.py
Last active Aug 15, 2018
py-evm issue 1168: SUCCESS trinity start
View 0-journalctl-captured-stdout-info.py
Starting trinity ethereum node...
INFO 08-15 16:50:41 main
______ _ _ __
/_ __/____(_)___ (_) /___ __
/ / / ___/ / __ \/ / __/ / / /
/ / / / / / / / / / /_/ /_/ /
/_/ /_/ /_/_/ /_/_/\__/\__, /
/____/
INFO 08-15 16:50:41 main Trinity/eth-0.2.0a31/linux/cpython3.7.0
INFO 08-15 16:50:41 main Trinity DEBUG log file is created at /home/veox/.local/share/trinity/ropsten/logs/trinity.log
@veox
veox / 0-journalctl-captured-stdout-info.py
Last active Aug 15, 2018
py-evm issue 1168: FAILED trinity start
View 0-journalctl-captured-stdout-info.py
Starting trinity ethereum node...
INFO 08-15 16:46:17 main
______ _ _ __
/_ __/____(_)___ (_) /___ __
/ / / ___/ / __ \/ / __/ / / /
/ / / / / / / / / / /_/ /_/ /
/_/ /_/ /_/_/ /_/_/\__/\__, /
/____/
INFO 08-15 16:46:17 main Trinity/eth-0.2.0a31/linux/cpython3.7.0
INFO 08-15 16:46:17 main Trinity DEBUG log file is created at /home/veox/.local/share/trinity/ropsten/logs/trinity.log