Skip to content
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
4 changes: 3 additions & 1 deletion raiden/api/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,13 @@ def channel_deposit(

# Wait until the `ChannelNewBalance` event is processed.
with gevent.Timeout(poll_timeout, EthNodeCommunicationError(msg)):
waiting.wait_for_newbalance(
target_address = self.raiden.address
waiting.wait_for_participant_newbalance(
self.raiden,
registry_address,
token_address,
partner_address,
target_address,
target_balance,
self.raiden.alarm.wait_time,
)
Expand Down
7 changes: 3 additions & 4 deletions raiden/network/blockchain_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def block_number(self) -> int:
return self.client.block_number()

def is_synced(self) -> bool:
result = self.client.call('eth_syncing')
result = self.client.rpccall_with_retry('eth_syncing')

# the node is synchronized
if result is False:
Expand Down Expand Up @@ -87,7 +87,7 @@ def estimate_blocktime(self, oldest: int = 256) -> float:

def get_block_header(self, block_number: int):
block_number = block_tag_encoder(block_number)
return self.client.call('eth_getBlockByNumber', block_number, False)
return self.client.rpccall_with_retry('eth_getBlockByNumber', block_number, False)

def next_block(self) -> int:
target_block_number = self.block_number() + 1
Expand Down Expand Up @@ -166,7 +166,7 @@ def registry(self, registry_address: bytes) -> Registry:
return self.address_to_registry[registry_address]

def uninstall_filter(self, filter_id_raw):
self.client.call('eth_uninstallFilter', filter_id_raw)
self.client.rpccall_with_retry('eth_uninstallFilter', filter_id_raw)

def deploy_contract(self, contract_name, contract_path, constructor_parameters=None):
contracts = _solidity.compile_file(contract_path, libraries=dict())
Expand All @@ -177,7 +177,6 @@ def deploy_contract(self, contract_name, contract_path, constructor_parameters=N
)

proxy = self.client.deploy_solidity_contract(
self.node_address,
contract_name,
contracts,
list(),
Expand Down
Loading