Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tdev #32

Merged
merged 27 commits into from
Apr 17, 2018
Merged

Tdev #32

Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix close channel
  • Loading branch information
pigxo committed Apr 17, 2018
commit 44c744e682592405a60e16f8fbbaa0bef46a56eb
4 changes: 3 additions & 1 deletion wallet/ChannelManagement/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,14 @@ def chose_channel(channels, publick_key, tx_count, asset_type):
else:
continue


def close_channel(channel_name, wallet):
ch = Channel.channel(channel_name)
peer = ch.get_peer(wallet.url)
tx = trans.TrinityTransaction(channel_name, wallet)
tx.realse_transaction()
mg.SettleMessage.create(channel_name,wallet,wallet.url, peer)
mg.SettleMessage.create(channel_name,wallet,wallet.url, peer, "TNC") #ToDo


def sync_channel_info_to_gateway(channel_name, type):
LOG.info("Debug sync_channel_info_to_gateway channelname {} type {}".format(channel_name, type))
Expand Down