Skip to content

Instantly share code, notes, and snippets.

View CJentzsch's full-sized avatar

Christoph Jentzsch CJentzsch

View GitHub Profile
contract Refund {
address public mother = 0xbb9bc244d798123fde783fcc1c72d3bb8c189413;
mapping (address => bool) public blackList;
uint public totalSupply = 12000000000000000000000000000; // to be replaced with the exact number
uint public totalWeiSupply = 12000000000000000000000000000; // to be replaced with the exact number
uint public multiplier = 1;
uint public divisor = 1;
uint public attackTime = 0;
uint public fixChildDAOsListTime = 0;
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"open","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"proposalHash","type":"bytes32"},{"name":"proposalDeposit","type":"uint256"},{"name":"newCurator","type":"bool"},{"name":"yea","type":"uint256"},{"name":"nay","type":"uint256"},{"name":"creator","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"minTokensToCreate","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"rewardAccount","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"daoCreator","outputs":
[ { "constant": true, "inputs": [ { "name": "", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": "", "template": "elements_input_uint" } ], "name": "proposals", "outputs": [ { "name": "recipient", "type": "address", "value": "0x0000000000000000000000000000000000000000", "displayName": "recipient" }, { "name": "amount", "type": "uint256", "value": "0", "displayName": "amount" }, { "name": "description", "type": "string", "value": "", "displayName": "description" }, { "name": "votingDeadline", "type": "uint256", "value": "0", "displayName": "voting Deadline" }, { "name": "open", "type": "bool", "value": false, "displayName": "open" }, { "name": "proposalPassed", "type": "bool", "value": false, "displayName": "proposal Passed" }, { "name": "proposalHash", "type": "bytes32", "value": "0x0000000000000000000000000000000000000000000000000000000000000000", "displayName": "proposal Hash" }, { "name": "proposalDeposit", "type": "uint256", "value": "0", "displayName": "proposal Deposit" }, { "name":
[ { "constant": true, "inputs": [ { "name": "", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": "", "template": "elements_input_uint" } ], "name": "proposals", "outputs": [ { "name": "recipient", "type": "address", "value": "0x0000000000000000000000000000000000000000", "displayName": "recipient" }, { "name": "amount", "type": "uint256", "value": "0", "displayName": "amount" }, { "name": "description", "type": "string", "value": "", "displayName": "description" }, { "name": "votingDeadline", "type": "uint256", "value": "0", "displayName": "voting Deadline" }, { "name": "open", "type": "bool", "value": false, "displayName": "open" }, { "name": "proposalPassed", "type": "bool", "value": false, "displayName": "proposal Passed" }, { "name": "proposalHash", "type": "bytes32", "value": "0x0000000000000000000000000000000000000000000000000000000000000000", "displayName": "proposal Hash" }, { "name": "proposalDeposit", "type": "uint256", "value": "0", "displayName": "proposal Deposit" }, { "name":
[ { "constant": true, "inputs": [ { "name": "", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": "", "template": "elements_input_uint" } ], "name": "proposals", "outputs": [ { "name": "recipient", "type": "address" }, { "name": "amount", "type": "uint256" }, { "name": "description", "type": "string" }, { "name": "votingDeadline", "type": "uint256" }, { "name": "open", "type": "bool" }, { "name": "proposalPassed", "type": "bool" }, { "name": "proposalHash", "type": "bytes32" }, { "name": "proposalDeposit", "type": "uint256" }, { "name": "newServiceProvider", "type": "bool" }, { "name": "yea", "type": "uint256" }, { "name": "nay", "type": "uint256" }, { "name": "creator", "type": "address" } ], "type": "function", "displayName": "proposals" }, { "constant": false, "inputs": [ { "name": "_spender", "type": "address", "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;spender", "template": "elements_input_address" }, { "name": "_amount", "t
@CJentzsch
CJentzsch / gist:fc26f98bbd41e85cb882
Created February 16, 2016 16:52
json-interface
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"openToVote","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"numberOfVotes","type":"uint256"},{"name":"proposalHash","type":"bytes32"},{"name":"proposalDeposit","type":"uint256"},{"name":"newServiceProvider","type":"bool"},{"name":"creator","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"rewardAccount","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_description","type":"string"},{"name":"_transactionBytecode","type":"by
I1104 09:36:11.922294 296 blockchain.go:1142] imported 256 block(s) (0 queued 0 ignored) including 106 txs in 14.205531936s. #86656 [31d934c7 / 706c539d]
I1104 09:36:24.870644 296 blockchain.go:1142] imported 256 block(s) (0 queued 0 ignored) including 110 txs in 12.692113664s. #86912 [26a5e74e / 43e6078c]
I1104 09:36:33.737653 296 blockchain.go:1142] imported 256 block(s) (0 queued 0 ignored) including 85 txs in 8.855269421s. #87168 [83be7d9e / 6fccf6de]
I1104 09:36:41.251881 296 blockchain.go:1142] imported 256 block(s) (0 queued 0 ignored) including 90 txs in 7.50227369s. #87424 [fbeae087 / 62b1606f]
I1104 09:36:48.583026 296 blockchain.go:1142] imported 256 block(s) (0 queued 0 ignored) including 58 txs in 7.320141882s. #87680 [92612ac9 / 2b372d10]
I1104 09:36:58.574871 296 blockchain.go:1142] imported 256 block(s) (0 queued 0 ignored) including 61 txs in 9.726053939s. #87936 [11cbb9e5 / dbdb6ab6]
I1104 09:37:06.548692 296 blockchain.go:1142] imported 256 block(s) (0 queued 0 i
⧎ ✘ 11:04:49|p2p|e5733842…|Geth/v1.2.2/linux/go1.5 Error sending: Broken pipe
⧎ ✘ 11:04:49|p2p|e5733842…|Geth/v1.2.2/linux/go1.5 Error reading - Abrupt peer disconnect: End of file
⧎ ✘ 11:04:50|p2p Session already exists for peer with id ##a6b1df9e…
> [New Thread 0x7fffb8723700 (LWP 4205)]
⧎ ✘ 11:06:09|p2p|d2e489b2…|Geth/v1.0.1/linux/go1.4.2 Error sending: Operation canceled
⧎ ✘ 11:09:51|p2p Session already exists for peer with id ##d2e489b2…
⧎ ✘ 11:11:49|p2p Session already exists for peer with id ##d2e489b2…
⧎ ✘ 11:12:30|p2p|97d7c247…|Geth/v1.1.0/linux/go1.4.2 Error reading - Abrupt peer disconnect: End of file
⧎ ✘ 11:13:35|p2p Session already exists for peer with id ##d2e489b2…
⧎ ✘ 11:14:41|p2p Session already exists for peer with id ##d2e489b2…
def f(diff, n):
"""
This function returns the new difficulty.
"""
period_count = (n + 1) // 100000
return max(diff + 2**(period_count - 1), 5000)
diff = 6232935860523 # starting diffculty
blocknumber = 200000 # starting blocknumber
numberOfBlocks2years = 2*365*24*60*60/15
⧎ ◌ 11:24:16|p2p|529e282b…|Geth/HopeNode/v0.9.39-a87ac65a/linux/go1.4.2 BlockHashes ( 1 entries)
⧎ ○ 11:24:16|p2p|529e282b…|Geth/HopeNode/v0.9.39-a87ac65a/linux/go1.4.2 Ignoring new hashes since we're already downloading.
⧎ ◌ 11:24:19|p2p|93a91455…|Geth/v0.9.38/linux/go1.4.2 Closing peer session :-(
ℹ 11:24:19|p2p|93a91455…|Geth/v0.9.38/linux/go1.4.2 Peer aborting while being asked for Hashes
> terminate called after throwing an instance of 'std::out_of_range'
what(): map::at
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffbaffd700 (LWP 4348)]
0x00007ffff5881cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56