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

Channel Settlement Problem #492

@msaxena18

Description

@msaxena18

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions