This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.venv) > $ py.test raiden/tests/integration/test_blockchainservice.py [±issue_232 ●●] | |
============================================================================================================ test session starts ============================================================================================================= | |
platform linux2 -- Python 2.7.12, pytest-3.0.3, py-1.4.31, pluggy-0.4.0 | |
rootdir: /home/czepluch/Dropbox/prgrms/ethereum/raiden, inifile: | |
plugins: random-0.2, timeout-1.0.0 | |
collected 2 items | |
raiden/tests/integration/test_blockchainservice.py EF | |
=================================================================================================================== ERRORS =================================================================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-10-20 14:53:07 Starting Parity/v1.3.8-beta/x86_64-linux-gnu/rustc1.12.0 | |
2016-10-20 14:53:07 Using state DB journalling strategy fast | |
2016-10-20 14:53:07 Configured for Frontier/Homestead using Ethash engine | |
2016-10-20 14:53:08 State root not found for block #2425304 (1df68712ce9e9666852848f264179322603c830438a723351bc2574110241401) | |
2016-10-20 14:53:09 Public node URL: enode://22d5b35b7b611ae5c562f4ac667047a80043dcdeacb4de2f4eab58db291ec826f571fc4b908d590ab624086e3c6a6aec5d99bdc8a453b68bfcb3ec0bd3433d3f@192.168.0.100:30303 | |
2016-10-20 14:53:11 Block import failed for #2425305 (0a87…df21) | |
Error: Trie(InvalidStateRoot(7f15c34cf6f57e021d672e6b09a741ae971695db31202428aeef9d0933062ea4)) | |
2016-10-20 14:53:13 Syncing #2425304 1df6…1401 0 blk/s 0 tx/s 0 Mgas/s 1022+ 0 Qed #2427083 1/ 1/25 peers 197 MiB db 71 KiB chain 1 MiB queue 377 KiB sync | |
2016-10-20 14:53:19 Syncing #2425304 1df6…1401 0 blk/s 0 tx/s 0 Mgas/s 3017+ 0 Qed #2430765 1/ 1/25 peers 197 MiB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-10-20 14:11:58 Syncing #2425299 90b1…3bc3 0 blk/s 3 tx/s 0 Mgas/s 0+35463 Qed #2460764 0/25/25 peers 216 MiB db 6 MiB chain 47 MiB queue 6 MiB sync | |
2016-10-20 14:12:03 Block import failed for #2425305 (0a87…df21) | |
Error: Trie(IncompleteDatabase(0e4c96d6a9c9dbf094a335a0874cfff35bcc139ca8a4e40bec763aee3c1e7a07)) | |
2016-10-20 14:12:05 Bad header 2425431 (a761…3ecf) from 88: Parity/v1.3.8-beta/x86_64-linux-gnu/rustc1.12.0, state = ChainHead | |
2016-10-20 14:12:05 Bad header 2425431 (a761…3ecf) from 2: Parity/v1.3.8-beta/x86_64-linux-gnu/rustc1.12.0, state = ChainHead | |
2016-10-20 14:12:05 Bad header 2425431 (a761…3ecf) from 7: Parity/v1.3.8-beta/x86_64-windows-msvc/rustc1.12.0, state = ChainHead | |
2016-10-20 14:12:06 Bad header 2425431 (a761…3ecf) from 70: Geth/v1.5.0-unstable/linux/go1.5.1, state = ChainHead | |
2016-10-20 14:12:06 Bad header 2425431 (a761…3ecf) from 12: Parity/v1.3.8-beta/x86_64-linux-gnu/rustc1.12.0, state = ChainHead | |
2016-10-20 14:12:06 Bad header 2425431 (a761… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================================================== FAILURES =================================================================================================================== | |
__________________________________________________________________________________________________________________ test_cmc ___________________________________________________________________________________________________________________ | |
def test_cmc(): # pylint: disable=too-many-locals,too-many-statements | |
iterable_mapping_path = get_contract_path('IterableMappingNCC.sol') | |
channel_manager_path = get_contract_path('ChannelManagerContract.sol') | |
netting_channel_path = get_contract_path('NettingChannelContract.sol') | |
settle_timeout = 30 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ethereum import tester | |
from raiden.utils import privtoaddr, sha3 | |
from raiden.mtree import merkleroot | |
from raiden.messages import Lock, CancelTransfer, DirectTransfer, MediatedTransfer, Secret | |
from raiden.encoding.signing import recover_publickey, address_from_key, sign | |
ec_code = ''' | |
contract EcTest { | |
function ecTest(bytes message, bytes sig) returns (address) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
import pytest | |
from ethereum import tester | |
from ethereum.utils import sha3, privtoaddr | |
from ethereum.tester import TransactionFailed | |
library_code = ''' | |
library IterableMappingCMC { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
import pytest | |
from ethereum import tester | |
from ethereum.tester import TransactionFailed | |
lib_code = ''' library Test { ... } ''' | |
contract_code = ''' contract Foo { Test.something data } ''' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
import os | |
import pytest | |
import bitcoin | |
from secp256k1 import PrivateKey | |
import pytest | |
from rlp.utils import decode_hex | |
from ethereum import tester, utils, abi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADDRESS OF DAO: 0x3d8377416185EC618ccAe85514A09129B63dBC06 | |
interface: | |
[ { "constant": true, "inputs": [ { "name": "", "type": "uint256", "index": 0, "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": "openToVote", "type": "bool" }, { "name": "proposalPassed", "type": "bool" }, { "name": "numberOfVotes", "type": "uint256" }, { "name": "proposalHash", "type": "bytes32" } ], "type": "function", "displayName": "proposals" }, { "constant": false, "inputs": [ { "name": "proposalNumber", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "proposal Number", "template": "elements_input_uint" }, { "name": "transactionBytecode", "type": "bytes", "index": 1, "typeShort": "bytes", "bits": "", "displayName": "transaction Bytecode" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract MyToken{ | |
string public name; | |
string public symbol; | |
uint8 public decimals; | |
mapping (address => uint256) public balanceOf; | |
event Transfer(address indexed from, address indexed to, uint256 value); |