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 15, 2019
1 parent eefd366 commit e421197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
14 changes: 7 additions & 7 deletions raiden_contracts/data/gas.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"OneToN.claim": 95400,
"SecretRegistry.registerSecret": 46892,
"TokenNetwork DEPLOYMENT": 4357212,
"TokenNetwork.closeChannel": 124109,
"TokenNetwork.closeChannel": 124116,
"TokenNetwork.openChannel": 97755,
"TokenNetwork.setTotalDeposit": 44909,
"TokenNetwork.setTotalWithdraw": 103345,
"TokenNetwork.settleChannel": 108518,
"TokenNetwork.unlock 1 locks": 31549,
"TokenNetwork.unlock 6 locks": 58649,
"TokenNetwork.updateNonClosingBalanceProof": 94053,
"TokenNetwork.setTotalDeposit": 44919,
"TokenNetwork.setTotalWithdraw": 103301,
"TokenNetwork.settleChannel": 108528,
"TokenNetwork.unlock 1 locks": 31539,
"TokenNetwork.unlock 6 locks": 58531,
"TokenNetwork.updateNonClosingBalanceProof": 94043,
"TokenNetworkRegistry DEPLOYMENT": 5027825,
"TokenNetworkRegistry createERC20TokenNetwork": 3360447
}
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 @@ -264,15 +264,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 e421197

Please sign in to comment.