convert amount on channel_new

This commit is contained in:
Victor Shyba 2018-07-15 20:43:16 -03:00 committed by Jack Robison
parent 17aee92dc9
commit 5809ba093d
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1594,6 +1594,7 @@ class Daemon(AuthJSONRPCServer):
'claim_id' : (str) claim ID of the resulting claim
}
"""
amount = int(amount * COIN)
tx = yield self.wallet.claim_new_channel(channel_name, amount)
self.wallet.save()
script = tx.outputs[0].script