Skip to content

Commit

Permalink
B does not need a second registration
Browse files Browse the repository at this point in the history
  • Loading branch information
pirapira committed Aug 13, 2019
1 parent 9611773 commit 14d90d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
20 changes: 10 additions & 10 deletions raiden_contracts/data/gas.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
"CustomToken.transfer": 36123,
"CustomToken.transferFrom": 29557,
"MonitoringService.claimReward": 41942,
"MonitoringService.monitor": 207679,
"OneToN.claim": 95296,
"MonitoringService.monitor": 207760,
"OneToN.claim": 95249,
"SecretRegistry.registerSecret": 46892,
"ServiceRegistry.deposit": 527760,
"ServiceRegistry.setURL": 44676,
"TokenNetwork DEPLOYMENT": 4357212,
"TokenNetwork.closeChannel": 124082,
"TokenNetwork.openChannel": 97755,
"TokenNetwork.setTotalDeposit": 44855,
"TokenNetwork.setTotalWithdraw": 103271,
"TokenNetwork.settleChannel": 108464,
"TokenNetwork.unlock 1 locks": 31475,
"TokenNetwork.unlock 6 locks": 58531,
"TokenNetwork.updateNonClosingBalanceProof": 93979,
"TokenNetwork.closeChannel": 124126,
"TokenNetwork.openChannel": 97691,
"TokenNetwork.setTotalDeposit": 44909,
"TokenNetwork.setTotalWithdraw": 103281,
"TokenNetwork.settleChannel": 108518,
"TokenNetwork.unlock 1 locks": 31549,
"TokenNetwork.unlock 6 locks": 58649,
"TokenNetwork.updateNonClosingBalanceProof": 94070,
"TokenNetworkRegistry DEPLOYMENT": 5027825,
"TokenNetworkRegistry createERC20TokenNetwork": 3360447,
"UserDeposit.deposit": 92392,
Expand Down
9 changes: 0 additions & 9 deletions raiden_contracts/tests/test_print_gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,6 @@ def print_gas_monitoring_service(
)
service_registry.functions.deposit(SERVICE_DEPOSIT).call_and_transact({"from": MS})

# B registers itself as a service provider
deposit = service_registry.functions.currentPrice().call()
custom_token.functions.mint(deposit).call_and_transact({"from": B})
custom_token.functions.approve(service_registry.address, deposit).call_and_transact(
{"from": B}
)
service_registry.functions.deposit(deposit).call_and_transact({"from": B})
assert service_registry.functions.hasValidRegistration(B).call()

# open a channel (c1, c2)
channel_identifier = create_channel(A, B)[0]

Expand Down

0 comments on commit 14d90d8

Please sign in to comment.