Skip to content

Instantly share code, notes, and snippets.

View gavofyork's full-sized avatar

Gavin Wood gavofyork

View GitHub Profile
➜ parity git:(master) ✗ ./target/release/parity --ui-no-validation --dapps-apis-all --chain ~/Downloads/chain\ \(1\).json
2017-03-02 13:50:32 Starting Parity/v1.6.0-unstable-31302e0-20170302/x86_64-macos/rustc1.15.1
2017-03-02 13:50:32 State DB configuration: fast
2017-03-02 13:50:32 Operating mode: active
2017-03-02 13:50:32 Moved 1 keys from /Users/gav/Library/Application Support/io.parity.ethereum/keys to /Users/gav/Library/Application Support/io.parity.ethereum/keys/Kovan
2017-03-02 13:50:32 Configured for Kovan using AuthorityRound engine
2017-03-02 13:50:32 *** INSECURE *** Running Dapps with all APIs exposed.
2017-03-02 13:50:32 If you do not intend this, exit now.
2017-03-02 13:50:32 *** INSECURE *** Running Trusted Signer with no origin validation.
2017-03-02 13:50:32 If you do not intend this, exit now.
{
"name": "Ropsten",
"dataDir": "test",
"engine": {
"Ethash": {
"params": {
"gasLimitBoundDivisor": "0x0400",
"minimumDifficulty": "0x020000",
"difficultyBoundDivisor": "0x0800",
"durationLimit": "0x0d",
root@parity-update-server:~# cat .pm2/logs/psh-release-out-32.log
2017-02-10 23:17 +00:00: push-release service listening at http://:::1337
2017-02-12 02:27 +00:00: Pushing commit: 5f154b9f4bb660aecf9e1ea20e5af10cc74c0dc0 (tag: nightly)
2017-02-12 02:27 +00:00: Track: nightly => nightly (3) [enabled: undefined]
2017-02-12 02:50 +00:00: BUILD: x86_64-unknown-linux-gnu/5f154b9f4bb660aecf9e1ea20e5af10cc74c0dc0 -> 9e9b21bdaf87e5c0fecd266b1198ffa3d6797a2555fc06450f8ca95266552d73/nightly/parity [http://d1h4xl4cr1h0mo.cloudfront.net/nightly/x86_64-unknown-linux-gnu/parity]
2017-02-12 02:50 +00:00: Track: nightly => nightly (3) [enabled: false]
2017-02-12 03:07 +00:00: BUILD: x86_64-apple-darwin/5f154b9f4bb660aecf9e1ea20e5af10cc74c0dc0 -> 6b16e96d46003eb9a180652007cd6122004f01015b2e0ab5915e0e824b5f72b7/nightly/parity [http://d1h4xl4cr1h0mo.cloudfront.net/nightly/x86_64-apple-darwin/parity]
2017-02-12 03:07 +00:00: Track: nightly => nightly (3) [enabled: false]
2017-02-12 03:09 +00:00: BUILD: x86_64-unknown-debian-gnu
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
<div>
The news.
</div>
2016-12-29 20:24:13 UTC #471387 1/ 1/25 peers 55 MiB db 3 MiB chain 0 bytes queue 626 KiB sync
2016-12-29 20:24:23 UTC Syncing #2899425 ff47…4598 0 blk/s 0 tx/s 0 Mgas/s 0+ 0 Qed #2899425 1/ 1/25 peers 55 MiB db 3 MiB chain 0 bytes queue 626 KiB sync
2016-12-29 20:24:28 UTC Syncing #2899425 ff47…4598 0 blk/s 0 tx/s 0 Mgas/s 0+ 0 Qed #2899425 2/ 2/25 peers 55 MiB db 3 MiB chain 0 bytes queue 626 KiB sync
2016-12-29 20:24:33 UTC Syncing #2899425 ff47…4598 0 blk/s 0 tx/s 0 Mgas/s 0+ 0 Qed #2899423 2/ 2/25 peers 55 MiB db 3 MiB chain 0 bytes queue 626 KiB sync
2016-12-29 20:24:38 UTC Syncing #2899425 ff47…4598 0 blk/s 0 tx/s 0 Mgas/s 0+ 0 Qed #2899423 2/ 2/25 peers 55 MiB db 3 MiB chain 0 bytes queue 626 KiB sync
2016-12-29 20:24:43 UTC Syncing #2899425 ff47…4598 0 blk/s 0 tx/s 0 Mgas/s 0+ 0 Qed #2899423 2/ 2/25 peers 55 MiB db 3 MiB cha
JSON.stringify(web3.eth.traceSendRawTransaction('0xf9016982014f8506fc23ac0083057e4080888ac7230489e80000b9010c6000607f5359610043806100135939610056566c010000000000000000000000007fee098e6c2a43d9e2c04f08f0c3a87b0ba59079d4d53532071d6cd0cb86facd5605ff6100008061003f60003961003f565b6000f35b816000f0905050596100718061006c59396100dd5661005f8061000e60003961006d566000603f5359610043806100135939610056566c010000000000000000000000007fee098e6c2a43d9e2c04f08f0c3a87b0ba59079d4d53532071d6cd0cb86facd5605ff6100008061003f60003961003f565b6000f35b816000f0905050fe5b6000f35b816000f0905060405260006000600060006000604051620249f0f15061000080610108600039610108565b6000f31ca0a60dfc91177abdd56588f74b71aa2093d886312c36f9f2ef8883910348b4c47fa03f79616eca429fbe7109f0d8454bf2b2b3298ec13cbafed01e6e3f7ac2174f75', ['vmTrace']).vmTrace)
"{"code":"0x6000607f5359610043806100135939610056566c010000000000000000000000007fee098e6c2a43d9e2c04f08f0c3a87b0ba59079d4d53532071d6cd0cb86facd5605ff6100008061003f60003961003f565b6000f35b816000f0905050596100718061006c5939
JSON.stringify(web3.eth.getBlock(2675119).transactions.map(t => web3.eth.getTransactionReceipt(t)))
"[{"blockHash":"0x8ca3da3430ac1c58b494637df16c26db4fba646a27c2450ef90b1210990f867a","blockNumber":2675119,"contractAddress":null,"cumulativeGasUsed":21000,"gasUsed":21000,"logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","root":"0x1645ba8745dc50b4e4dd5d712b540f4fd94a6bcd161850472658501382ead990","transactionHash":"0x89fd378ff56871e367d165bd5d88541d61084ead071857d33d0637da1739a2bb","transactionIndex":0},{"blockHash":"0x8ca3da3430ac1
JSON.stringify(web3.eth.traceReplayTransaction('0xb8e4e44315c077d7044edacfcde78bc897704a4e085a30caf92a37c03624c38f', ['vmTrace']).vmTrace)
"{"code":"0x6000605f535961002880610013593961003b566100168061000e6000396100245673be68ac75b1776a44b886779043e90abaa215c1efff5b6000f35b816000f090506020526000600060006000600060205161c350f150fe61000080610066600039610066565b6000f3","ops":[{"cost":3,"ex":{"mem":null,"push":["0x0"],"store":null,"used":161133},"pc":0,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x5f"],"store":null,"used":161130},"pc":2,"sub":null},{"cost":12,"ex":{"mem":{"data":"0x00","off":95},"push":[],"store":null,"used":161118},"pc":4,"sub":null},{"cost":2,"ex":{"mem":null,"push":["0x60"],"store":null,"used":161116},"pc":5,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x28"],"store":null,"used":161113},"pc":6,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x28","0x28"],"store":null,"used":161110},"pc":9,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x13"],"store":null,"used":161107},"pc":10,"sub":null},