Skip to content

Instantly share code, notes, and snippets.

1. Open https://conwaylife.com/
2. Clear the viewer
3. Copy the code below and paste the code in by "Settings -> Open Clipboard"
```
x = 28, y = 15, rule = B3/S23
2$b6o3b2o4b2o3b6o$2o8b2o4b2o3b6o$2o8b2o2b4o3b2o3b2o$2o8b2o2b2o5b2o3b2o
$2o8b6o5b6o$2o8b4o7b6o$2o8b6o5b2o3b2o$2o8b2o2b2o5b2o3b2o$2o8b2o2b4o3b
2o3b2o$2o8b2o4b2o3b6o$b6o3b2o4b2o3b6o!
```
4. Set theme to "Inverse" in "Settings -> Themes".
{
 "amount": "Bytes[8]" // serialized integer
}
pub struct CellOutput {
pub capacity: Capacity,
pub data: Vec<u8>,
pub lock: Script,
pub type_: Option<Script>,
}
class CTxOut
{
public:
CAmount nValue;
CScript scriptPubKey;
...
}
diff --git a/ethereum/pow/chain.py b/ethereum/pow/chain.py
index 45f856e..1c6ea4e 100644
--- a/ethereum/pow/chain.py
+++ b/ethereum/pow/chain.py
@@ -81,7 +81,6 @@ class Chain(object):
self.genesis = self.get_block_by_number(0)
self.time_queue = []
self.parent_queue = {}
- self.localtime = time.time() if localtime is None else localtime
@janx
janx / failures.log
Created May 6, 2017 01:55
state_revamp_with_pv62 test failures
===================================================================================================== FAILURES ======================================================================================================
___________________________________________________________________________________________________ test_transfer ___________________________________________________________________________________________________
db = <ethereum.db._EphemDB object at 0x7fd4157b89d0>
def test_transfer(db):
> k, v, k2, v2 = accounts()
ethereum/tests/test_chain.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
diff --git a/pyelliptic/openssl.py b/pyelliptic/openssl.py
index c91b272..2e78ceb 100644
--- a/pyelliptic/openssl.py
+++ b/pyelliptic/openssl.py
@@ -525,4 +525,5 @@ if libname is None:
libname = ctypes.util.find_library('libeay32.dll')
if libname is None:
raise Exception("Couldn't load OpenSSL lib ...")
+libname = 'libcrypto.so.1.0.0'
OpenSSL = _OpenSSL(libname)
> for(i=0;i<txs.length;i++) { r = eth.getTransactionReceipt(txs[i]); console.log(txs[i] + ' ' + r['root']); }
0x89fd378ff56871e367d165bd5d88541d61084ead071857d33d0637da1739a2bb 0x1645ba8745dc50b4e4dd5d712b540f4fd94a6bcd161850472658501382ead990
0xc9ff191258aba2feeea5cf34ac08a6d0afab9ebc8cf3d87f036ca28f920498c7 0x5c15fd3e4c61f29c8cba86ef37183cd7cb94c1c101a7b28722faff4b966cd749
0xcf416c536ec1a19ed1fb89e4ec7ffb3cf73aa413b3aa9b77d60e4fd81a4296ba 0x5b04b9a980cf2e6534a39fd30e63e39787c1436316d5a8fef7511cc32d05c345
0x1a452acca7a40e20b2d54fc0c6d55dddc3d8d92dbe01201aceca268f875f4d8a 0x47b8931ed2067df51aa7aebe38bb2de03aaace54fb4a9e97b82f2493b1c9ddf7
0xf0135560a1853cfe614267fd13af85a48f46d337a34263a61183d4a40cbbeefb 0xd9476a4ff7053e09f8da54fc21f4c13fb532a71526e0e98e0883c5ad4caa7cc9
0xcfc66fba16d55d547931dbdb6f5e4a7032f0a18321c016edc0a9e4ce9bb2bebc 0x1964992f9f40eefbd5a4588cbce5427876940c7f2bad96db207e064f030c7c9a
0xca390f8ab4e10928e12a2280f179d693bc59284461d394e7173da0ca0d2731e9 0x17d5ed0006d29a1ae
def deposit(validation_code:str, randao, address):
validation_code_hash = sha3(validation_code:str)
i = 0
success = 0
while i < len(validatorSizes) and not success:
if msg.value <= validatorSizes[i] * 10**18:
success = 1
else:
i += 1
if self.validatorSlotQueueLength[i]:
Tracking 10 opinions
Found 10 guardians in genesis
Initialized guardian index=-1, induction_height=1267650600228229401496703205376, address=0000e104ef0fc6ed8ae0cba28910bacdd62d12b7dd10
List of proposers=[]
Initializing betting strategy
Guardian inducted index=0, my_index=-1, address=00008113f29bdf176335bddf8d773ec233d45021071a
Guardian inducted index=1, my_index=-1, address=0000330233b92720ec2dd3ad7ecc5991de51257e49ef
Guardian inducted index=2, my_index=-1, address=0000ec5b0741a81b9e4b7879f587359f8479a26ba8a4
Guardian inducted index=3, my_index=-1, address=00007a1751c0bbdae6312dcc5ddc7885c220b5b11d0e
Guardian inducted index=4, my_index=-1, address=0000a46cd3f1820fc24f05b9ac2d6cb5d1389fb3db52