fix tests

This commit is contained in:
SomberNight 2019-11-22 22:11:56 +01:00
parent bda9a407d9
commit 770ae6d878
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -1132,6 +1132,7 @@ class Peer(Logger):
if chan.get_state() != channel_states.OPEN:
raise PaymentFailure('Channel not open')
assert amount_msat > 0, "amount_msat is not greater zero"
await asyncio.wait_for(self.initialized.wait(), LN_P2P_NETWORK_TIMEOUT)
# create onion packet
final_cltv = self.network.get_local_height() + min_final_cltv_expiry
hops_data, amount_msat, cltv = calc_hops_data_for_payment(route, amount_msat, final_cltv)