Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Channel Settlement Problem #492

Open
msaxena18 opened this issue Nov 7, 2018 · 0 comments
Open

Channel Settlement Problem #492

msaxena18 opened this issue Nov 7, 2018 · 0 comments

Comments

@msaxena18
Copy link

msaxena18 commented Nov 7, 2018

I am trying to transfer some tokens between two MetaMask accounts. I am currently using the Client code from the uraiden example that looks like:

from microraiden import Client

receiver = '0xb6b79519c91edbb5a0fc95f190741ad0c4b1bb4d'
privkey = '0x55e58f57ec2177ea681ee461c6d2740060fd03109036e7e6b26dcf0d16a28169'

with Client(privkey) as client:

channel = client.get_suitable_channel(receiver, 10)
channel.create_transfer(3)
channel.create_transfer(4)

print(
    'Current balance proof:\n'
    'From: {}\n'
    'To: {}\n'
    'Channel opened at block: #{}\n'  # used to uniquely identify this channel
    'Balance: {}\n'                   # total: 7
    'Signature: {}\n'                 # valid signature for a balance of 7 on this channel
    .format(
        channel.sender, channel.receiver, channel.block, channel.balance, channel.balance_sig
    )
)

channel.topup(5)                      # total deposit: 15

channel.create_transfer(5)            # total balance: 12

channel.close()

# Wait for settlement period to end.

channel.settle()

The error I get is: 500 more blocks until this channel can be settled. Aborting.

How do I fix this issue? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant