ethereumproject / ecip1017test Goto Github PK
View Code? Open in Web Editor NEWPublic demo of ECIP-1017
Public demo of ECIP-1017
Results from code at #4
(dfs)~/dev/etc/ecip1017test dev % ⟠ ./bin/verify.py
Verify blockchain state....
-------------------------------------------
Download blockchain for local analysis.... (blocks 1..127, it may take 5+ minutes)
Done
-------------------------------------------
-------------------------------------------
Mining stats:
-------------------------------------------
Expected state:
Miner 0x479f3307a0e40a8cd8b772e17ec9f809e0dd03ad should have 25000000000000000000
Miner 0x895b2a4a1beffc42f0eb28fb9be9d8d4478c011f should have 6.1015625e+20
-------------------------------------------
-------------------------------------------
Verifying...
miner 0x479f3307a0e40a8cd8b772e17ec9f809e0dd03ad: balance: 25000000000000000000
Invalid balance for miner 0x479f3307a0e40a8cd8b772e17ec9f809e0dd03ad: 25.0 != 28.75 (exp != act)
0x15af1d78b58c40000 wei != 0x18efc84ad0c7b0000 wei
miner 0x895b2a4a1beffc42f0eb28fb9be9d8d4478c011f: balance: 6.1015625e+20
-------------------------------------------
~/dev/etc/ecip1017test dev *% ⟠ ./bin/status.py
Nodes status
ID PEERS HEIGHT HASH
2017-09-26 09:43:09,944 ERROR Certificate did not match expected hostname: 35.188.72.192. Certificate: {'subjectAltName': (('DNS', 'kubernetes'), ('DNS', 'kubernetes.default'), ('DNS', 'kubernetes.default.svc'), ('DNS', 'kubernetes.default.svc.cluster.local'), ('IP Address', '35.188.72.192'), ('IP Address', '10.19.240.1')), 'notBefore': u'Sep 26 13:55:57 2017 GMT', 'serialNumber': u'17E31F9E974EF7A9471D672918D3519A', 'notAfter': 'Sep 25 13:55:57 2022 GMT', 'version': 3L, 'subject': ((('commonName', u'35.188.72.192'),),), 'issuer': ((('commonName', u'd2096ae7-3eff-489d-a33a-b1fb7573117e'),),)}
Traceback (most recent call last):
File "./bin/status.py", line 70, in <module>
list()
File "./bin/status.py", line 62, in list
pods = api.get_nodes()
File "/Users/ia/dev/etc/ecip1017test/bin/rpc_api.py", line 74, in get_nodes
ret = api.list_namespaced_pod("default", watch=False)
File "/usr/local/lib/python2.7/site-packages/kubernetes/client/apis/core_v1_api.py", line 13060, in list_namespaced_pod
(data) = self.list_namespaced_pod_with_http_info(namespace, **kwargs)
File "/usr/local/lib/python2.7/site-packages/kubernetes/client/apis/core_v1_api.py", line 13162, in list_namespaced_pod_with_http_info
collection_formats=collection_formats)
File "/usr/local/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 335, in call_api
_preload_content, _request_timeout)
File "/usr/local/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 148, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 371, in request
headers=headers)
File "/usr/local/lib/python2.7/site-packages/kubernetes/client/rest.py", line 250, in GET
query_params=query_params)
File "/usr/local/lib/python2.7/site-packages/kubernetes/client/rest.py", line 226, in request
raise ApiException(status=0, reason=msg)
kubernetes.client.rest.ApiException: (0)
Reason: SSLError
hostname '35.188.72.192' doesn't match either of 'kubernetes', 'kubernetes.default', 'kubernetes.default.svc', 'kubernetes.default.svc.cluster.local'
~/dev/etc/ecip1017test dev *% ⟠ ipconfig getifaddr en1
192.168.0.193
For bin/verify.py
Currently it takes 5+ minutes to download, and multithreading could significantly decrease that time
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.