Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Parity version for integration testing to 2.3.5 #1292

Merged
merged 1 commit into from
Mar 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,26 +193,26 @@ jobs:
- image: circleci/python:3.6-stretch
environment:
TOXENV: py36-integration-parity-ipc
PARITY_VERSION: v1.11.11
PARITY_OS: debian
PARITY_VERSION: v2.3.5
PARITY_OS: linux

py36-integration-parity-http:
<<: *parity_steps
docker:
- image: circleci/python:3.6-stretch
environment:
TOXENV: py36-integration-parity-http
PARITY_VERSION: v1.11.11
PARITY_OS: debian
PARITY_VERSION: v2.3.5
PARITY_OS: linux

py36-integration-parity-ws:
<<: *parity_steps
docker:
- image: circleci/python:3.6-stretch
environment:
TOXENV: py36-integration-parity-ws
PARITY_VERSION: v1.11.11
PARITY_OS: debian
PARITY_VERSION: v2.3.5
PARITY_OS: linux

py36-integration-ethtester-pyevm:
<<: *common
Expand Down Expand Up @@ -292,26 +292,26 @@ jobs:
- image: circleci/python:3.7-stretch
environment:
TOXENV: py37-integration-parity-ipc
PARITY_VERSION: v1.11.11
PARITY_OS: debian
PARITY_VERSION: v2.3.5
PARITY_OS: linux

py37-integration-parity-http:
<<: *parity_steps
docker:
- image: circleci/python:3.7-stretch
environment:
TOXENV: py37-integration-parity-http
PARITY_VERSION: v1.11.11
PARITY_OS: debian
PARITY_VERSION: v2.3.5
PARITY_OS: linux

py37-integration-parity-ws:
<<: *parity_steps
docker:
- image: circleci/python:3.7-stretch
environment:
TOXENV: py37-integration-parity-ws
PARITY_VERSION: v1.11.11
PARITY_OS: debian
PARITY_VERSION: v2.3.5
PARITY_OS: linux

py37-integration-ethtester-pyevm:
<<: *common
Expand Down
134 changes: 0 additions & 134 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
build:
context: .
environment:
PARITY_VERSION: v1.11.7
PARITY_VERSION: v2.3.5
volumes:
- .:/code
command: tail -f /dev/null
13 changes: 10 additions & 3 deletions tests/integration/generate_fixtures/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
to_text,
)

from web3.exceptions import (
TransactionNotFound,
)

COINBASE = '0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd'
COINBASE_PK = '0x58d23b55bc9cdce1f18c2500f40ff4ab7245df9a89505e9b1fa4851f623d241d'

Expand All @@ -33,7 +37,7 @@
"eip150Block": 0,
"eip155Block": 10,
"eip158Block": 10,
"eip160Block": 10
"eip160Block": 10,
},
"nonce": "0x0000000000000042",
"alloc": {
Expand Down Expand Up @@ -210,7 +214,10 @@ def mine_transaction_hash(web3, txn_hash):
start_time = time.time()
web3.geth.miner.start(1)
while time.time() < start_time + 120:
receipt = web3.eth.getTransactionReceipt(txn_hash)
try:
receipt = web3.eth.getTransactionReceipt(txn_hash)
except TransactionNotFound:
continue
if receipt is not None:
web3.geth.miner.stop()
return receipt
Expand All @@ -221,7 +228,7 @@ def mine_transaction_hash(web3, txn_hash):


def deploy_contract(web3, name, factory):
web3.personal.unlockAccount(web3.eth.coinbase, KEYFILE_PW)
web3.geth.personal.unlockAccount(web3.eth.coinbase, KEYFILE_PW)
deploy_txn_hash = factory.constructor().transact({'from': web3.eth.coinbase})
print('{0}_CONTRACT_DEPLOY_HASH: '.format(name.upper()), deploy_txn_hash)
deploy_receipt = mine_transaction_hash(web3, deploy_txn_hash)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/generate_fixtures/go_ethereum.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def setup_chain_state(web3):
#
# Block with Transaction
#
web3.personal.unlockAccount(coinbase, common.KEYFILE_PW)
web3.geth.personal.unlockAccount(coinbase, common.KEYFILE_PW)
web3.geth.miner.start(1)
mined_txn_hash = web3.eth.sendTransaction({
'from': coinbase,
Expand Down
28 changes: 14 additions & 14 deletions tests/integration/generate_fixtures/parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@
"durationLimit": "0x0d",
"blockReward": "0x4563918244F40000",
"homesteadTransition": 0,
"eip150Transition": 0,
"eip160Transition": 10,
"eip161abcTransition": 10,
"eip161dTransition": 10
}
}
},
"params": {
"gasLimitBoundDivisor": "0x0400",
"registrar": "0x81a4b044831c4f12ba601adb9274516939e9b8a2",
"eip150Transition": 0,
"eip155Transition": 10,
"eip160Transition": 10,
"eip161abcTransition": 10,
"eip161dTransition": 10,
"accountStartNonce": "0x0",
"maximumExtraDataSize": "0x20",
"minGasLimit": "0x1388",
"networkID": "0x539",
"eip98Transition": "0x7fffffffffffffff"
"eip98Transition": "0x7fffffffffffffff",
},
"genesis": {
"seal": {
Expand Down Expand Up @@ -107,13 +107,12 @@ def get_parity_process(
'--base-path', datadir,
'--ipc-path', ipc_path,
'--no-ws',
'--no-ui',
'--no-warp',
'--chain', chain_config_file_path,
'--keys-path', keys_path,
'--rpcapi', 'all',
'--rpcport', parity_port,
# '--author', common.COINBASE[2:],
'--jsonrpc-apis', 'all',
'--jsonrpc-port', parity_port,
'--fat-db', 'on',
)
print(' '.join(run_command))
try:
Expand Down Expand Up @@ -145,18 +144,18 @@ def parity_export_blocks_process(
'blocks', os.path.join(datadir, 'blocks_export.rlp'),
'--base-path', datadir,
'--no-ws',
'--no-ui',
'--no-warp',
'--chain', chain_config_file_path,
'--rpcapi', 'all',
'--rpcport', parity_port,
# '--author', common.COINBASE[2:],
'--jsonrpc-apis', 'all',
'--jsonrpc-port', parity_port,
'--fat-db', 'on',
)
print(' '.join(run_command))
try:
proc = common.get_process(run_command)
yield proc
finally:
time.sleep(10)
common.kill_proc_gracefully(proc)
output, errors = proc.communicate()
print(
Expand Down Expand Up @@ -241,6 +240,7 @@ def generate_parity_fixture(destination_dir):

time.sleep(10)
connect_nodes(web3, web3_geth)
time.sleep(10)
wait_for_chain_sync(web3, fixture_block_count)

static_data = {
Expand All @@ -262,7 +262,7 @@ def generate_parity_fixture(destination_dir):
def connect_nodes(w3_parity, w3_secondary):
parity_peers = w3_parity.parity.netPeers()
parity_enode = w3_parity.parity.enode()
secondary_node_info = w3_secondary.geth.admin.nodeInfo
secondary_node_info = w3_secondary.geth.admin.nodeInfo()
if secondary_node_info['id'] not in (node.get('id', tuple()) for node in parity_peers['peers']):
w3_secondary.geth.admin.addPeer(parity_enode)

Expand Down
Binary file not shown.
1 change: 0 additions & 1 deletion tests/integration/parity-187-fixture/chain_config.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/integration/parity-187-fixture/network/key

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion tests/integration/parity-188-fixture/network/key

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name": "CrossClient", "dataDir": "CrossClient", "engine": {"Ethash": {"params": {"minimumDifficulty": "0x020000", "difficultyBoundDivisor": "0x0800", "durationLimit": "0x0d", "blockReward": "0x4563918244F40000", "homesteadTransition": 0, "eip150Transition": 0, "eip160Transition": 10, "eip161abcTransition": 10, "eip161dTransition": 10}}}, "params": {"gasLimitBoundDivisor": "0x0400", "registrar": "0x81a4b044831c4f12ba601adb9274516939e9b8a2", "eip155Transition": 10, "accountStartNonce": "0x0", "maximumExtraDataSize": "0x20", "minGasLimit": "0x1388", "networkID": "0x539", "eip98Transition": "0x7fffffffffffffff"}, "genesis": {"seal": {"ethereum": {"nonce": "0x0000000000000042", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000"}}, "difficulty": "0x10000", "author": "0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd", "timestamp": "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData": "0x3535353535353535353535353535353535353535353535353535353535353535", "gasLimit": "0x1000000"}, "accounts": {"0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd": {"balance": "1000000000000000000000000000", "nonce": "0", "builtin": {"name": "ecrecover", "pricing": {"linear": {"base": 3000, "word": 0}}}}, "0x12efdc31b1a8fa1a1e756dfd8a1601055c971e13": {"balance": "1000000000000000000000000000", "nonce": "0", "builtin": {"name": "sha256", "pricing": {"linear": {"base": 60, "word": 12}}}}, "0x39EEed73fb1D3855E90Cbd42f348b3D7b340aAA6": {"balance": "1000000000000000000000000000", "nonce": "0", "builtin": {"name": "ripemd160", "pricing": {"linear": {"base": 600, "word": 120}}}}}}
{"name": "CrossClient", "dataDir": "CrossClient", "engine": {"Ethash": {"params": {"minimumDifficulty": "0x020000", "difficultyBoundDivisor": "0x0800", "durationLimit": "0x0d", "blockReward": "0x4563918244F40000", "homesteadTransition": 0}}}, "params": {"gasLimitBoundDivisor": "0x0400", "registrar": "0x81a4b044831c4f12ba601adb9274516939e9b8a2", "eip150Transition": 0, "eip155Transition": 10, "eip160Transition": 10, "eip161abcTransition": 10, "eip161dTransition": 10, "accountStartNonce": "0x0", "maximumExtraDataSize": "0x20", "minGasLimit": "0x1388", "networkID": "0x539", "eip98Transition": "0x7fffffffffffffff"}, "genesis": {"seal": {"ethereum": {"nonce": "0x0000000000000042", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000"}}, "difficulty": "0x10000", "author": "0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd", "timestamp": "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData": "0x3535353535353535353535353535353535353535353535353535353535353535", "gasLimit": "0x1000000"}, "accounts": {"0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd": {"balance": "1000000000000000000000000000", "nonce": "0", "builtin": {"name": "ecrecover", "pricing": {"linear": {"base": 3000, "word": 0}}}}, "0x12efdc31b1a8fa1a1e756dfd8a1601055c971e13": {"balance": "1000000000000000000000000000", "nonce": "0", "builtin": {"name": "sha256", "pricing": {"linear": {"base": 60, "word": 12}}}}, "0x39EEed73fb1D3855E90Cbd42f348b3D7b340aAA6": {"balance": "1000000000000000000000000000", "nonce": "0", "builtin": {"name": "ripemd160", "pricing": {"linear": {"base": 600, "word": 120}}}}}}
1 change: 1 addition & 0 deletions tests/integration/parity-235-fixture/network/key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9cf55e75533a2380bcb2fbb4ff6f5ae86e7d303a331caf099946207bbe53fb21
Loading